Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-20-2005, 08:05 AM
#1
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Rep:
Permission to use alsa dmix
Hi,
Alsa is not playing by the rules
i am trying to get my nforce 3 (on my laptop) to run full duplex:
here is my asound.conf file:
Code:
pcm.intel8x0 {
type hw
card 0
device 0
}
pcm.dmixer {
type dmix
ipc_key 1111
slave {
pcm intel8x0
}
}
pcm.!default {
type plug
slave {
pcm dmixer
format S16_LE
}
}
pcm.dsp {
type plug
slave.pcm "dmixer"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
and here is the status of my /dev/dsp:
Code:
ian@linux:/etc> ls -la /dev/dsp
crw-rw----+ 1 root audio 14, 3 2005-12-20 13:47 /dev/dsp
and my /dev/snd:
Code:
ian@linux:/etc> ls -la /dev/snd
total 0
drwxr-xr-x 2 root root 180 2005-12-20 13:47 .
drwxr-xr-x 11 root root 15540 2005-12-20 13:47 ..
crw-rw----+ 1 ian audio 116, 0 2005-12-20 13:47 controlC0
crw-rw----+ 1 ian audio 116, 24 2005-12-20 13:47 pcmC0D0c
crw-rw----+ 1 ian audio 116, 16 2005-12-20 13:47 pcmC0D0p
crw-rw----+ 1 ian audio 116, 25 2005-12-20 13:47 pcmC0D1c
crw-rw----+ 1 ian audio 116, 18 2005-12-20 13:47 pcmC0D2p
crw-rw----+ 1 root audio 116, 1 2005-12-20 13:47 seq
crw-rw----+ 1 ian audio 116, 33 2005-12-20 13:47 timer
when i am using a music aplication and i run another program that uses sound, it just dosnt work :'(
when i am using amaroK and then run asound in the console i get this:
Code:
ian@linux:/etc> aplay
ALSA lib pcm_dmix.c:818:(snd_pcm_dmix_open) unable to open slave
aplay: main:540: audio open error: Permission denied
what is going on?
12-20-2005, 11:15 AM
#2
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
bump... please help
12-20-2005, 11:39 AM
#3
Member
Registered: Aug 2004
Distribution: LFS
Posts: 349
Rep:
Code:
crw-rw----+ 1 root audio 14, 3 2005-12-20 13:47 /dev/dsp
/dev/dsp permissions allow user
root and members of the group
audio write access, ensure your login is a member of the audio group and it should work.
12-20-2005, 11:48 AM
#4
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
how do you add a user to the audio group? i know
question, but i have never needed to do that!
12-20-2005, 11:52 AM
#5
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
ok forget that, here is what i have done:
Code:
linux:/home/ian # usermod ian -G audio
linux:/home/ian # aplay
ALSA lib pcm_dmix.c:818:(snd_pcm_dmix_open) unable to open slave
aplay: main:540: audio open error: Permission denied
as you see, it still doesnt work :'(
12-20-2005, 11:56 AM
#6
Member
Registered: Aug 2004
Distribution: LFS
Posts: 349
Rep:
Code:
usermod -G audio ian
should add the user ian to the audio group.
12-20-2005, 12:47 PM
#7
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
Last edited by Ian_Hawdon; 12-21-2005 at 08:16 AM .
12-20-2005, 02:32 PM
#8
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
ok, i have found out this is only happening in skype hmm
12-20-2005, 02:37 PM
#9
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
DMIXing only works in Alsa applications. If you run just ONE Oss app, it will block off the soundcard for every other app including Alsa apps.
Basically, you can run as many Alsa apps at one time as you want. But you can only run one and only one OSS app.(and if you run an oss app you can't run any alsa apps until you close the oss app)
12-21-2005, 03:53 AM
#10
Member
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu 11.10, Ubuntu 10.04 LTS Server
Posts: 313
Original Poster
Rep:
is there anyway of making an oss aplication think it is an alsa aplication?
12-21-2005, 09:09 AM
#11
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
Yes there is.
For some apps, you can run "aoss appname" if you have the alsa-oss program installed. It doesn't work with every program though.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 07:40 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News