[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mpd cannot find default alsa soundcard; sudo -u mpd aplay -D default /Side_Right.wav results in desired audio output.



Hey,

* i run a updated debian stretch
* mpd cannot find the default alsa soundcard.
* sudo -u mpd aplay -D default /Side_Right.wav -> results in the desired audio output.
* also, https://bbs.archlinux.org/viewtopic.php?pid=1372042#p1372042 doesn't help
* switching to pulseaudio doesn't work, results in this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690530 - decided to debug alsa first, as its simpler.


==> any ideas?

/var/log/mpd.log

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver retu
rned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned
error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned e
rror: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or direc
tory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
Dec 25 15:11 : alsa_output: Failed to open "ALSA sound card" [alsa]: Failed to
 open ALSA device "default": No such file or directory
Dec 25 15:11 : output: Failed to open audio output
Dec 25 15:11 : player: problems opening audio device while playing "melodical/
Abel_Korzeniowski-Nocturnal_Animals/09.Mothers.ogg"


# groups mpd
mpd : audio

# aplay -l | head
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

# aplay --list-pcm | head
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC255 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC255 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog


/etc/asound.conf

defaults.pcm.device 0 
defaults.ctl.card 0 
defaults.pcm.card 0
defaults.timer.card 

/etc/mpd.conf

audio_output {
        type            "alsa"
        name            "ALSA sound card"
}


Reply to: