Re: mpd cannot find default alsa soundcard; sudo -u mpd aplay -D default /Side_Right.wav results in desired audio output.
Hey, > So, try this /etc/mpd.conf: > > group "audio" > > audio_output { > type"alsa" > name"ALSA sound card" > } thanks. I also added the audio group to the mpd line of /etc/passwd. ==> works now. Thank you!
Re: mpd cannot find default alsa soundcard; sudo -u mpd aplay -D default /Side_Right.wav results in desired audio output.
On 12/25/18 9:40 AM, Reco wrote: Hi. On Tue, Dec 25, 2018 at 03:29:32PM +0100, toogley wrote: ==> any ideas? This does not look right: # groups mpd mpd : audio This means that mpd's primary group is not audio. /etc/mpd.conf audio_output { type"alsa" name"ALSA sound card" } An absence of 'group' stanza means, according to the configuration file: # This setting specifies the group that MPD will run as. If not # specified primary group of user specified with "user" setting will be # used (if set). # This is useful if MPD needs to be a member of group such as "audio" to # have permission to use sound card. My suspicion is that mpd simply discards membership of 'audio' group then run as a daemon. So, try this /etc/mpd.conf: group "audio" audio_output { type"alsa" name"ALSA sound card" } You might go over this step-by-step to see if everything is up to snuff. https://www.htpcguides.com/create-an-mpd-music-server-on-debian/
Re: mpd cannot find default alsa soundcard; sudo -u mpd aplay -D default /Side_Right.wav results in desired audio output.
Hi. On Tue, Dec 25, 2018 at 03:29:32PM +0100, toogley wrote: > ==> any ideas? This does not look right: > # groups mpd > mpd : audio This means that mpd's primary group is not audio. > /etc/mpd.conf > > audio_output { > type"alsa" > name"ALSA sound card" > } An absence of 'group' stanza means, according to the configuration file: # This setting specifies the group that MPD will run as. If not # specified primary group of user specified with "user" setting will be # used (if set). # This is useful if MPD needs to be a member of group such as "audio" to # have permission to use sound card. My suspicion is that mpd simply discards membership of 'audio' group then run as a daemon. So, try this /etc/mpd.conf: group "audio" audio_output { type"alsa" name"ALSA sound card" } Reco
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" }