LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   "/dev/dsp" already in use (https://www.linuxquestions.org/questions/linux-software-2/dev-dsp-already-in-use-164021/)

Pooldraft 03-29-2004 11:55 PM

"/dev/dsp" already in use
 
i go to run Rhythmbox .7.0 and i get this error {OSS device "/dev/dsp" already in use by another program} but no sound is playing i look and see if module is loaded it is and it was used by one program (gaim) i shut gaim down then tried again and no sound still!!! Any Ideas.....

Thetargos 03-30-2004 12:55 AM

What is your desktop/distro. Most probably is due to a sound deamon (artsd or esd). Try killing either (depending on your desktop environment, arts = KDE, esd = GNOME):
Code:

$ killall -9 esd
or
$ killall -9 artsd

Try again. Just remember that these deamons were made in the first place to overcome a problem with the OSS-free sound drivers: They don't support poliphony (multiple sound sources) the only way to have this in Linux is to either use the paid OSS drivers, use a sound deamon like esd or artsd or use the ALSA drivers, which support poliphony, depending on your hardware.

My personal recommendation would be to install ALSA, it's not hard at all, really. Plus depending on your audio HW sound quality may be far superior (under certain circumstances).

Punboy 03-30-2004 04:48 AM

If its arts causing the problem, go to kcontrol, under the multimedia section, to sound system, and tell it NOT to start the sound system. Or tell it to free the device after 2 seconds.

Pooldraft 03-30-2004 07:52 AM

Welll i am using Gnome and i tired "killall -9 esd" and got the reply "esd: no process killed" , I then went to console and tried to run "esd" with no luck still busy. My hardware is {810 chipset AC'97 audio}, I then went to Mandrake toubleshoot and tried:

jesse@localhost jesse]$ /sbin/chkconfig --list alsa
alsa 0off 1off 2off 3off 4off 5off 6off
[jesse@localhost jesse]$ /sbin/chkconfig --list sound
sound 0off 1off 2on 3on 4:on 5on 6off

i also changed the module from "i810_audio" to "snd-intel8x0"
but no luck.....

Thetargos 03-30-2004 04:07 PM

Quote:

Originally posted by Pooldraft
Welll i am using Gnome and i tired "killall -9 esd" and got the reply "esd: no process killed" , I then went to console and tried to run "esd" with no luck still busy. My hardware is {810 chipset AC'97 audio}, I then went to Mandrake toubleshoot and tried:

jesse@localhost jesse]$ /sbin/chkconfig --list alsa
alsa 0off 1off 2off 3off 4off 5off 6off
[jesse@localhost jesse]$ /sbin/chkconfig --list sound
sound 0off 1off 2on 3on 4:on 5on 6off

i also changed the module from "i810_audio" to "snd-intel8x0"
but no luck.....

Ok, from what I gather you use both ALSA and OSS drivers? check your symlinks (/dev/dsp). Also if you are using both drivers at the same time, the device will be occupied by one of the drivers. My suggestion would be to edit your modules.conf (modprobe.conf in Mandy 10) file and take out (or comment out) the lines pertainig the i810_audio and install and post install lines, you will most likely have to reboot the system in order for the modules to unload and free the device. My suggestion would be to try separately either ALSA or OSS. Depending on how did you install ALSA you may need to re-run the snddevices script to re-create the devices under /dev/

ideasman 03-30-2004 10:06 PM

Use alsa with oss emulation, then you can have many devoces use /dev/dsp at once.

Pooldraft 04-14-2004 05:56 PM

Happend Again
 
Being the NOOB that i am I reinstalled and had no problem then while i was listening to music it did it again: My modprobe.conf :
Code:

alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
install scsi_hostadapter /sbin/modprobe imm; /sbin/modprobe ppa; /bin/true
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe usb-uhci; /bin/true
remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
alias /dev/nvidia*  nvidia

I am not sure how to isolate the two modules and remove OSS so that i can get ALAS working and configure it to run multiple streams.

Pooldraft 04-15-2004 08:23 AM

I fixed it but still only one stream at a time....how to activate ALAS and OSS emulation?

Thetargos 04-15-2004 03:02 PM

Quote:

Originally posted by Pooldraft
I fixed it but still only one stream at a time....how to activate ALAS and OSS emulation?
My question remains, you want to use both drivers at the same time? or use ALSA's OSS emulation? Please post your modules.conf (or modprobe.conf if you use a 2.6.x kernel).

Pooldraft 04-15-2004 04:58 PM

I would like to just ues ALSA with OSS emulation
modprobe.config:
Code:

alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
install scsi_hostadapter /sbin/modprobe imm; /sbin/modprobe ppa; /bin/true
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe usb-uhci; /bin/true
remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
alias /dev/nvidia*  nvidia

and modules.config
Code:

probeall scsi_hostadapter imm ppa
probeall usb-interface usb-uhci
alias ieee1394-controller ohci1394
alias eth0 eepro100
alias sound-slot-0 snd-intel8x0
above snd-intel8x0 snd-pcm-oss


Thetargos 04-15-2004 09:44 PM

I'd actually better use the modules/modprobe.conf options listed at the alsa project's page... Remember that if you use kernel 2.6 the file used to load modules is modprobe.conf and with kernel 2.4 is modules.conf.

Pooldraft 04-16-2004 01:00 AM

Thanks.....


All times are GMT -5. The time now is 10:57 PM.