03-27-2020, 02:12 AM
Good afternoon,
I am getting an error:
MPD Error
Failed to open "ALSA default" (alsa); Failed to open ALSA device "hw:0,0": No such file or directory
I am using Hifiberry DAC+ Pro HAT with Raspberry Pi 3B
I know this topic has come up before, and I've read through previous posts. What I've noticed is that most people have done one of two things:
Also, re-flash surely shouldn't be the solution to errors? How often will I need to re-flash? Weekly? Monthly? So with these comments what I am hoping for is a method to address the error that I am seeing, to try to get to the root of it and hopefully end up with a more stable system.
What's really odd about all of this is that everything was working fine for a few weeks. I then had the MPD error but it was 'fixed' with reboots. Now its there all the time. Maybe the Hifiberry DAC+ Pro is failing? I don't know enough to figure out what the problem may be.
Thanks for the help!
I've done some digging around and here is what I notice:
/var/log/mpd/log
ALSA lib pcm_hw.c:1822
_snd_pcm_hw_open) Invalid value for card
Mar 27 12:48 : exception: Failed to open "ALSA default" (alsa)
Mar 27 12:48 : exception: nested: Failed to open ALSA device "hw:0,0": No such file or directory
No I2S audio DAC has the following in the Audio info:
Decoded to: 0 bps
Destination: Local
Output rate: 0 bps
DSP operations
Volume ctl: Disabled (100% volume is output by MPD)
Resampling: 24 bit, 192 kHz, Stereo (SoX very high quality)
Polarity inv: off
Crossfade: off
Crossfeed: off
Parametric EQ: off
Graphic EQ: off
Replaygain: off
Normalize vol: off
Chip options: None
Audio Device
Device: On-board audio device
Chip: Broadcom SoC
Interface: SOC
Formats: U8, S16_LE
Platform: Pi-3B 1GB v1.2
When I add Hifiberry DAC+ Pro I get the following changes in audio info:
Chip options: FIR interpolation with de-emphasis, Gain=0dB, Boost=0dB
Audio Device
Device: HiFiBerry DAC+ Pro
Chip: Burr Brown PCM5122
Interface: I2S
Formats: cat: /proc/asound/card0/pcm0p/sub0/hw_params: No such file or directory
pi@moode:/var/log/mpd $ dmesg | grep hifiberry
[ 6.816423] snd-rpi-hifiberry-dacplus soc
ound: ASoC: CPU DAI (null) not registered - will retry
[ 6.824268] snd-rpi-hifiberry-dacplus soc
ound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
pi@moode:/var/log/mpd $ lsmod | grep hifi
snd_soc_hifiberry_dacplus 16384 0
snd_soc_core 192512 3 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
snd_pcm 102400 5 snd_soc_pcm512x,snd_pcm_dmaengine,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_soc_core
clk_hifiberry_dacpro 16384 0
pi@moode:/var/log/mpd $ sudo aplay -l
aplay: device_list:272: no soundcards found...
I am getting an error:
MPD Error
Failed to open "ALSA default" (alsa); Failed to open ALSA device "hw:0,0": No such file or directory
I am using Hifiberry DAC+ Pro HAT with Raspberry Pi 3B
I know this topic has come up before, and I've read through previous posts. What I've noticed is that most people have done one of two things:
- Turn off I2S audio DAC, restart, turn I2S audio DAC back on, restart -> everything works again
- Re-flash the whole moode audio, turn on I2S audio DAC -> everything works
Also, re-flash surely shouldn't be the solution to errors? How often will I need to re-flash? Weekly? Monthly? So with these comments what I am hoping for is a method to address the error that I am seeing, to try to get to the root of it and hopefully end up with a more stable system.
What's really odd about all of this is that everything was working fine for a few weeks. I then had the MPD error but it was 'fixed' with reboots. Now its there all the time. Maybe the Hifiberry DAC+ Pro is failing? I don't know enough to figure out what the problem may be.
Thanks for the help!
I've done some digging around and here is what I notice:
/var/log/mpd/log
ALSA lib pcm_hw.c:1822

Mar 27 12:48 : exception: Failed to open "ALSA default" (alsa)
Mar 27 12:48 : exception: nested: Failed to open ALSA device "hw:0,0": No such file or directory
No I2S audio DAC has the following in the Audio info:
Decoded to: 0 bps
Destination: Local
Output rate: 0 bps
DSP operations
Volume ctl: Disabled (100% volume is output by MPD)
Resampling: 24 bit, 192 kHz, Stereo (SoX very high quality)
Polarity inv: off
Crossfade: off
Crossfeed: off
Parametric EQ: off
Graphic EQ: off
Replaygain: off
Normalize vol: off
Chip options: None
Audio Device
Device: On-board audio device
Chip: Broadcom SoC
Interface: SOC
Formats: U8, S16_LE
Platform: Pi-3B 1GB v1.2
When I add Hifiberry DAC+ Pro I get the following changes in audio info:
Chip options: FIR interpolation with de-emphasis, Gain=0dB, Boost=0dB
Audio Device
Device: HiFiBerry DAC+ Pro
Chip: Burr Brown PCM5122
Interface: I2S
Formats: cat: /proc/asound/card0/pcm0p/sub0/hw_params: No such file or directory
pi@moode:/var/log/mpd $ dmesg | grep hifiberry
[ 6.816423] snd-rpi-hifiberry-dacplus soc

[ 6.824268] snd-rpi-hifiberry-dacplus soc

pi@moode:/var/log/mpd $ lsmod | grep hifi
snd_soc_hifiberry_dacplus 16384 0
snd_soc_core 192512 3 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
snd_pcm 102400 5 snd_soc_pcm512x,snd_pcm_dmaengine,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_soc_core
clk_hifiberry_dacpro 16384 0
pi@moode:/var/log/mpd $ sudo aplay -l
aplay: device_list:272: no soundcards found...