Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Checking to See what application has access to /dev/dsp
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
FunkyChicken
n00b
n00b


Joined: 29 Sep 2002
Posts: 16
Location: Halifax, Nova Scotia, Canada

PostPosted: Sun Oct 20, 2002 12:43 am    Post subject: Checking to See what application has access to /dev/dsp Reply with quote

Hi,

I have been playing with wine, after i had finished the program and exited, i can not hear any sound from and application, i.e xmms, xine, etc. I am using OSS drivers, so only one can access /dev/dsp at a time. How can you check to see what application has access to /dev/dsp

P.S i did a ps -auwx | grep wine , etc to see if there were any zombie process es running, and there was none.

Thanks in Advance
Back to top
View user's profile Send private message
nmr_spectrometer
n00b
n00b


Joined: 07 Oct 2002
Posts: 55

PostPosted: Sun Oct 20, 2002 12:34 pm    Post subject: Reply with quote

try:

Code:

/usr/sbin/lsof | grep dsp


You can do this as a normal user, but you have to specify the path because typically regular users don't have /usr/sbin in the path. lsof "lists open files", and the grep will pick out the lines containing "dsp". If this generates no output then nothing has dsp open.
Back to top
View user's profile Send private message
TuxFriend
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 151

PostPosted: Sun Oct 20, 2002 2:51 pm    Post subject: Reply with quote

nmr_spectrometer wrote:
try:
Code:

/usr/sbin/lsof | grep dsp


1 additional comment: you need to "emerge lsof" first.

TuxFriend
Back to top
View user's profile Send private message
FunkyChicken
n00b
n00b


Joined: 29 Sep 2002
Posts: 16
Location: Halifax, Nova Scotia, Canada

PostPosted: Sun Oct 20, 2002 4:28 pm    Post subject: Reply with quote

Emerged lsof and it does exactly what i want .....

Thanks

Now i tried the wine application and reproduced the same problem (i.e after it has finished and exited i can not play any sound whatsoever - xmms says sound card busy), now when i do a /usr/sbin/lsof | grep dsp .... nothing shows up saying it is using the sound card at that time.

*NOTE*
I unloaded the modules (in this case modprobe -r i810_audio and modprobe -r ac97_codec) and started a sound app and the sound worked again.
Back to top
View user's profile Send private message
nmr_spectrometer
n00b
n00b


Joined: 07 Oct 2002
Posts: 55

PostPosted: Tue Oct 22, 2002 1:37 am    Post subject: Reply with quote

Sorry, I forgot to mention you need to emerge lsof! Gentoo let's you compile and install everything, which is both good and bad. I was getting pissed off when I couldn't find "nslookup" and "telnet"... anyway. It sounds like wine might be locking up the driver, and then letting go of it, so the lsof command shows nothing but you still get no sound. At least you could unload the module, I've not been so lucky at times.

nmr_spectrometer
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