0

HifiBerry DAC+ only working sometimes

Hi there,

 

Since updatng to latest Rpi kernel (4.14.31-v7+) I am getting the HifiBerry working only sometimes after boot. It seems to be because ALSA assigns it different device numbers each time I boot. Aplay -L ALWAYS detects it.

When it does not work, Aplay -L says:

 

[code]

pi@raspberrypi:~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=vc4hdmi
    vc4-hdmi,
    Default Audio Device
sysdefault:CARD=vc4hdmi
    vc4-hdmi,
    Default Audio Device
front:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Front speakers
iec958:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct sample mixing device
dsnoop:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct sample snooping device
hw:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Hardware device with all software conversions
default:CARD=sndrpihifiberry
    snd_rpi_hifiberry_dacplus,
    Default Audio Device
sysdefault:CARD=sndrpihifiberry
    snd_rpi_hifiberry_dacplus,
    Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Hardware device with all software conversions

[/code]

And alsamixer will say that it doesn't have any controls.


However, if I reboot several times until it works, I get:

[code]

pi@raspberrypi:~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=sndrpihifiberry
    snd_rpi_hifiberry_dacplus,
    Default Audio Device
sysdefault:CARD=sndrpihifiberry
    snd_rpi_hifiberry_dacplus,
    Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
    snd_rpi_hifiberry_dacplus,
    Hardware device with all software conversions
default:CARD=vc4hdmi
    vc4-hdmi,
    Default Audio Device
sysdefault:CARD=vc4hdmi
    vc4-hdmi,
    Default Audio Device
front:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Front speakers
iec958:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct sample mixing device
dsnoop:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct sample snooping device
hw:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
    vc4-hdmi,
    Hardware device with all software conversions

[/code]

 

I did not do any changes between, just reboot again and again. Also, the "dtparam=audio=on" line in config.txt is commented. It was for loading the snd_bcm2835 module which is not loaded in my system anyway.

 

Any ideas, please?

4 comments

Please sign in to leave a comment.