LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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



Reply
 
Search this Thread
Old 12-20-2005, 09:05 AM   #1
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Rep: Reputation: 30
Exclamation 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?
 
Old 12-20-2005, 12:15 PM   #2
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
bump... please help
 
Old 12-20-2005, 12:39 PM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 30
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.
 
Old 12-20-2005, 12:48 PM   #4
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
how do you add a user to the audio group? i know question, but i have never needed to do that!
 
Old 12-20-2005, 12:52 PM   #5
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
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 :'(
 
Old 12-20-2005, 12:56 PM   #6
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 30
Code:
usermod -G audio ian
should add the user ian to the audio group.
 
Old 12-20-2005, 01:47 PM   #7
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
still is not working

i have tried logging in as root and it works there so why not in my user?


edit ian_hawdon: fixed spelling

Last edited by Ian_Hawdon; 12-21-2005 at 09:16 AM.
 
Old 12-20-2005, 03:32 PM   #8
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
ok, i have found out this is only happening in skype hmm
 
Old 12-20-2005, 03:37 PM   #9
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 31
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)
 
Old 12-21-2005, 04:53 AM   #10
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 322

Original Poster
Rep: Reputation: 30
is there anyway of making an oss aplication think it is an alsa aplication?
 
Old 12-21-2005, 10:09 AM   #11
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa: dmix and surround routing Vookimedlo Linux - Software 13 09-07-2010 01:46 PM
ALSA dmix: Permission Denied Davidian1024 Linux - Software 0 10-09-2005 01:48 PM
alsa dmix in ubuntu compujas Linux - General 2 08-17-2005 09:54 AM
Alsa with Dmix -- Horrible stuttering Adrohak Linux - Software 0 07-25-2005 07:01 PM
ALSA dmix + Skype = no go zenith_zth Linux - Hardware 0 06-12-2005 05:38 PM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration