Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa -- Unable to open slave
View unanswered posts
View posts from last 24 hours

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


Joined: 11 Feb 2011
Posts: 11

PostPosted: Fri Feb 11, 2011 5:16 am    Post subject: Alsa -- Unable to open slave Reply with quote

Hi-- I am new to Gentoo (moving from ubuntu) -- and while I generally like the distribution, I'm really struggling to get sound to work properly.
I'm at the point where I have alsa running on my system without pulseaudio. I am running a 64 bit distribution.
Sound works in kde just fine, but when I run a non-kde app (ie vlc or a browser) I get the following error:
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave

I searched the forums (and google) and there seem to be a number of people who have gotten this error. In terms of concrete things I could get from those posts--I tried making a .asoundrc file and putting this in it:
Code:
cm.!default {
  type plug
  slave {
    pcm "dmix"
  }
  hint {
    show on
    description "DMix"
  }
}


However, this failed.
I welcome any other suggestions.
Thanks!
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Fri Feb 11, 2011 3:32 pm    Post subject: Reply with quote

Are you in the audio group?
_________________
My blog
Back to top
View user's profile Send private message
rosenbat
n00b
n00b


Joined: 11 Feb 2011
Posts: 11

PostPosted: Fri Feb 11, 2011 7:38 pm    Post subject: Reply with quote

Yes I am.
Also -- I tried setting the permissions of /dev/snd to 777 and that did not solve the issue either.
Back to top
View user's profile Send private message
rosenbat
n00b
n00b


Joined: 11 Feb 2011
Posts: 11

PostPosted: Sun Feb 20, 2011 3:56 pm    Post subject: Reply with quote

In the end what solved the issue was including this in the .asoundrc file -- it was thinking the default device was 0, but its actually 1.


Code:
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}




Thanks to[url] http://www.linuxquestions.org/questions/slackware-14/no-sound-with-flash-player-in-firefox-after-adding-nvidia-gt-220-graphics-card-809773/
[/url] for the tip.
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
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