RPI 1 model B + pimusicbox 0.7 + hifiberry old DAC

Hi, I’m trying to repurpose an old model B to radio player and I have an old version of the very first hifiberry DAC that was intended for model B. I’m using pimusicbox and although I’ve configured the output settings to use Hifiberry DAC/DAC+/etc… I can’t get the any sound. Everything works fine if I play through the normal headphone jack, so I suspect it might be a pimusicbox compatibility issue with my old DAC. Can anyone help with this? Or know what is the last pimusicbox version to support the original hifiberry DAC?
Cheers

I think I have the same dac somewhere. I didn’t intend to remove support for that dac at any point. Could you post your startup log

http://docs.pimusicbox.com/en/latest/troubleshooting/

Sure:


Initializing MusicBox…


Setting sound configuration…
Probing sound devices:
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []

  • Found internal device: card0
  • Found internal device: card0
  • Found unknown device ‘sndrpihifiberrydac’ on card1
    Probing sound devices:
    card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
    card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
    card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
  • Found internal device: card0
  • Found internal device: card0
  • Found i2s device: card1
    Selected card=1 (i2s=1 output=hifiberry-dac usb=1 intc=0)
    Using audio card1 (hifiberry-dac)
    MusicBox name is MusicBox
    Stopping Samba daemons: nmbd smbd.
    Starting Samba daemons: nmbd smbd.
    Starting Dropbear SSH server: dropbear.
    Starting daemon monitor: monit.
    Scanning music-files, please wait…
    /usr/local/lib/python2.7/dist-packages/mopidy/ext.py:201: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
    extension_class = entry_point.load(require=False)
    INFO Starting Mopidy 1.1.2
    INFO Loading config from builtin defaults
    INFO Loading config from /etc/mopidy/mopidy.conf
    INFO Loading config from command line options

It’s this any help @kingosticks?

The log looks like it’s finding the DAC just fine and even setting the default audio device to use it (card 1). It’s odd that you are hearing anything through the onboard audio (card 0) after this.

I’m trying not to spend any time on 0.7 but I will have to dust off my old pi to check this out properly over Easter when I have some spare time. The contents of your /etc/asound.conf and /boot/config.txt would also be useful in the meantime.

To clarify, card 0 works when I leave the audio config set to auto.

When I choose to use Hifiberry DAC from the options I can’t hear anything.

This is /etc/asound.conf:

pcm.!default {
    type hw
    card 1
}
ctl.!default {
    type hw
    card 1
}

and this is /boot/config.txt

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes

#uncomment this if you have no sound on your hdmi output
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or no display
#config_hdmi_boost=4

[pi1]

# Pi Zero also matches this filter and we don't want to underclock.
#arm_freq=800
#core_freq=250
#sdram_freq=400

[all]

# Set variable over_voltage
over_voltage=0

# Set variable gpu_mem
gpu_mem=16

force_hdmi_open=1

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Enable hardware watchdog
dtparam=watchdog=on
# Musicbox audio: (DO NOT EDIT BELOW THIS LINE)
dtoverlay=hifiberry-dac

Thanks again for your help. Maybe it’s the dac that is just toast

I’ve justset up my old hifiberry dac with Raspian and had to # comment out the line
dtparam=audio=on
before it would work from DAC instead of 3.5mm anologue. Definitely worth a shot.