Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Permission problems w/ALSA after 2005.1 upgrade
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ceo1967
n00b
n00b


Joined: 07 May 2004
Posts: 8

PostPosted: Mon Apr 04, 2005 10:34 pm    Post subject: [SOLVED] Permission problems w/ALSA after 2005.1 upgrade Reply with quote

I jus upgraded to 2005.1, and now sound doesn't work. I'm running the same kernel as before, 2.6.10 with the ALSA and card (intel8x0) drivers compiled into it. alsaplayer works, but gives me the following anyway:

Quote:
ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0ALSA 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
snd_pcm_open: Permission denied (default)
Failed to initialize plugin!
Failed to register plugin: /usr/lib/alsaplayer/output/libalsa_out.so
Failed to load output plugin "alsa". Trying defaults.
ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0ALSA 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
snd_pcm_open: Permission denied (default)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load


xmms comes up with its window all garbled (more so than usual, I mean), and trying to play an mp3 results in:
Quote:
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


So, obviously I have a permissions problem somewhere, but I've no clue where.


Last edited by ceo1967 on Tue Apr 05, 2005 9:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Ninja
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2005
Posts: 127

PostPosted: Tue Apr 05, 2005 7:13 am    Post subject: Reply with quote

I don't know if this would help, but, open up /etc/security/console.perms as root and edit the line:

<console> 0600 <sound> 0600 root.audio

to

<console> 0660 <sound> 0660 root.audio


For future reference, you have 2005.0. 2005.1 has not been released yet.
Back to top
View user's profile Send private message
ceo1967
n00b
n00b


Joined: 07 May 2004
Posts: 8

PostPosted: Tue Apr 05, 2005 9:34 pm    Post subject: Reply with quote

Fixed it. I needed to set the permissions on the alsa devices via udev. I added myself to the audio group and added GROUP="audio" to the lines in /etc/udev/rules.d/50-udev.rules, as follows:
Quote:

# alsa devices
SUBSYSTEM="sound", GROUP="audio"
KERNEL="controlC[0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL="hw[CD0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL="pcm[CD0-9cp]*", NAME="snd/%k", GROUP="audio"
KERNEL="midiC[D0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL="timer", NAME="snd/%k", GROUP="audio"
KERNEL="seq", NAME="snd/%k", GROUP="audio"
Back to top
View user's profile Send private message
curious_bob
l33t
l33t


Joined: 05 Dec 2003
Posts: 636
Location: San Francisco, CA

PostPosted: Wed Apr 06, 2005 11:46 pm    Post subject: Reply with quote

This solved my problem. Thank you so much.
_________________
Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!

The Black Vault The Largest Online Military and Government Research Center
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum