LinuxQuestions.org
Visit Jeremy's Blog.
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 09-02-2009, 10:18 AM   #1
perplxxt
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora 29
Posts: 23

Rep: Reputation: 0
/dev/dsp doesn't exist


I am trying to use mplayer on FC11. "-ao oss" and "-ao pulse" don't work, because /dev/dsp doesn't exist. "-ao alsa" has problems with freezing every second or so. I can unfreeze the playback by hitting the space bar twice (pause/unpause). But of course it isn't practical to do so every second. Also, playback is prohibitively slow with the alsa driver.

How can I get /dev/dsp created so I can use the other sound drivers?

Thanks,

P.
 
Old 09-02-2009, 10:23 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
You have provided no hardware info and no info on what driver is actually being loaded so your question can't be answered in any particular detail. Basically, the "other sound drivers" create /dev/dsp. If you are using a driver that does not create it, then that driver is probably creating its own /dev entry.

You need to unload the driver you don't want and force the load of the driver you do want. How you do this depends on the driver and why the wrong one is getting loaded. You might want to blacklist the driver that currently gets loaded, and you might want to make an appropriate entry in /etc/modules or /etc/modules.conf.
 
Old 09-02-2009, 01:18 PM   #3
perplxxt
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora 29
Posts: 23

Original Poster
Rep: Reputation: 0
The audio hardware is "Intel 82801/BAM AC'97 audio controller".
lsmod says sound modules are:
snd_intel8x0
snd_ac97_codec
ac97_bus
snd_pcm
snd_timer
snd
pcspkr
soundcore
snd_page_alloc
.

Perplxxt
 
Old 09-03-2009, 03:18 PM   #4
perplxxt
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora 29
Posts: 23

Original Poster
Rep: Reputation: 0
I found a work-around.

alias mplayer='padsp mplayer'

The "padsp" program causes accesses of /dev/dsp to be routed through the Pulse Audio system. Then I put "ao=oss" into my ~/.mplayer/config file, to use the OSS driver instead of the ALSA driver. It works much better now.
 
Old 09-03-2009, 05:27 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you maybe not have alsa compiled in your kernel?
 
Old 09-04-2009, 09:09 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
you should have alsa compiled with OSS emulation. --with-oss=yes

you might also need to modprobe the oss modules. after boot. ogle tends to not want to run until I do this on one of my boxes.

modprobe snd-mixer-oss
modprobe snd-pcm-oss
modprobe snd-seq-oss

/dev/dsp might not exist, but /dev/dsp1 might. And you might need to setup a udev rule for /dev/dsp, or manually ln -s /dev/dsp1 /dev/dsp to create it. And various other tricks depending on how audio is handled on your system.
 
Old 09-07-2009, 08:04 AM   #7
perplxxt
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora 29
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Shadow_7 View Post
you should have alsa compiled with OSS emulation. --with-oss=yes

you might also need to modprobe the oss modules. after boot. ogle tends to not want to run until I do this on one of my boxes.

modprobe snd-mixer-oss
modprobe snd-pcm-oss
modprobe snd-seq-oss

/dev/dsp might not exist, but /dev/dsp1 might. And you might need to setup a udev rule for /dev/dsp, or manually ln -s /dev/dsp1 /dev/dsp to create it. And various other tricks depending on how audio is handled on your system.
I use the software that came with the Fedora 11 distribution. How would I be able to tell whether alsa has OSS compiled in?

No /dev/dsp* exists. Seting up a udev rule is a bit beyond my competence. As I already have a workaround, I think I will leave well enough alone, but thanks for your advice.

P.
 
Old 09-18-2009, 07:14 PM   #8
OR13
Member
 
Registered: Jun 2006
Distribution: Fedora 14
Posts: 51

Rep: Reputation: 15
Automatically loading snd-*-oss

Quote:
Originally Posted by Shadow_7 View Post
modprobe snd-mixer-oss
modprobe snd-pcm-oss
modprobe snd-seq-oss
This helped me and solved a few sound problems I experienced.
I wonder, how can I make my machine load these modules automatically every time I boot my computer?

Thanks...
 
Old 09-18-2009, 11:20 PM   #9
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Loading those modules will create /dev/dsp (OSS emulation). To add them by default, create a file in /etc/modprobe.d/
 
  


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
/dev/dsp does not exist vbisis Slackware 7 12-18-2008 02:49 PM
/dev/dsp says file don't exist - but it does? lugoteehalt Linux - Newbie 3 07-13-2007 12:09 PM
/dev/dsp does not exist juwaidah1990 Linux - Hardware 4 06-20-2007 02:04 PM
nforce2 device/dev/dsp does not exist byewindoze Linux - Hardware 0 05-16-2006 06:55 AM
/dev/dsp Doesn't exist worldgnat Linux - Hardware 2 01-02-2006 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 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
Open Source Consulting | Domain Registration