LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   XMMS: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied (https://www.linuxquestions.org/questions/linux-software-2/xmms-alsa_get_mixer-attaching-to-mixer-hw-0-failed-permission-denied-323333/)

Adrohak 05-14-2005 12:20 AM

XMMS: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied
 
When I run XMMS as a user, I get this error:
Code:

** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied
And I cannot access my sound-card. I can play it as root, so it must be a permissions problem, but how do I change the permissions on "hw:0?"

Adrohak 05-14-2005 12:34 AM

I just noticed that when I press play as a normal user, I get this:
Code:

ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:387:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:945:(snd_func_refer) error evaluating name
ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:3932:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2068:(snd_pcm_open_noupdate) Unknown PCM default

** WARNING **: alsa_setup(): Failed to open pcm device (default): Permission denied
xmms-mad-Message: failed to open audio output: ALSA 1.2.10 output plugin

Any ideas?

Adrohak 05-14-2005 12:38 AM

Also just noticed that when I ran the chmod step in the Alsa set-up guide for ca0106, I got this:
Code:

root : /usr/src/alsa > chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi
chmod: cannot access `/dev/dsp': No such file or directory
chmod: cannot access `/dev/mixer': No such file or directory
chmod: cannot access `/dev/sequencer': No such file or directory
chmod: cannot access `/dev/midi': No such file or directory


ermeyers 06-24-2010 03:10 PM

SOLVED: xmms and gnome-volume-control PERMISSIONS
 
SOLUTION:
Code:

chmod -R a+rw /dev/{audio,dsp,midi,mixer,snd}
fixed two related problems on a CentOS release 4.8 machine.

xmms error:
Code:

WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: Permission denied"
gnome-volume-control error:
Code:

Sorry, no mixer elements and/or devices found


All times are GMT -5. The time now is 03:17 AM.