Hello all: I recent reported a strange ALSA output problem[1] on the tracker and I don't see why it is closed. It has to do with permissions. I have my "snd" devices setup with the following permissions:
,----[ ls -la /dev/snd ] | drwxr-xr-x 4 root root 260 Jan 15 19:06 . | drwxr-xr-x 21 root root 4620 Jan 15 19:09 .. | drwxr-xr-x 2 root root 60 Jan 15 19:06 by-id | drwxr-xr-x 2 root root 80 Jan 15 19:06 by-path | crw-rw----+ 1 root audio 116, 6 Jan 15 19:06 controlC0 | crw-rw----+ 1 root audio 116, 8 Jan 15 19:06 controlC1 | crw-rw----+ 1 root audio 116, 5 Jan 15 19:06 pcmC0D0c | crw-rw----+ 1 root audio 116, 4 Jan 15 19:06 pcmC0D0p | crw-rw----+ 1 root audio 116, 3 Jan 15 19:06 pcmC0D1p | crw-rw----+ 1 root audio 116, 2 Jan 15 19:06 pcmC0D2p | crw-rw----+ 1 root audio 116, 7 Jan 15 19:06 pcmC1D0c | crw-rw----+ 1 root audio 116, 1 Jan 15 19:06 seq | crw-rw----+ 1 root audio 116, 33 Jan 15 19:06 timer `---- ,----[ ps -aux | grep ^mpd ] | mpd 11035 0.1 0.4 581228 16508 ? Ssl 20:37 0:00 /usr/bin/mpd /etc/mpd.conf `---- and I have MPD in the "audio" group. I verify that I can play sound from the MPD account: ,---- | sudo -u mpd ogg123 /usr/share/sounds/KDE-Sys-App-Error.ogg `---- However, this is what I get in my log when I try playing from the daemon: ,---- | Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device | "default": Permission denied `---- However, it works if I give every account permission to output audio This used to work with the previous version that I was using (0.14.0). For reference, this is what a get if I trying playing from an account not in the "audio" group: ,---- | ALSA lib confmisc.c:768:(parse_card) cannot find card '0' | ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied | ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings | ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied | ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name | ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied | ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Permission denied | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default | === Could not load default driver and no driver specified in config file. Exiting. `---- I am just curious as to what is going on here. Thanks. Charles Footnotes: [1] http://bugs.musicpd.org/view.php?id=3937 -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh)
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team