LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2006, 06:24 PM   #1
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Rep: Reputation: 15
Sound programs cannot find /dev/dsp when I try to play MP3 files.


I have recently recompiled my kernel with sound card support and ALSA built in.

When I try to play an MP3 file, every audio program displays errors related to /dev/dsp. I have done some research and found that ALSA may not even be associated with /dev/dsp (that it is actually for OSS). So why are the applications looking for it? I usually use amaroK.

According to lspci | grep audio, I have:

Code:
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
I am certain my system can play audio because it works on Windows.

Here is my lsmod output:

Code:
Module                  Size  Used by
nvidia               4085648  - 
md5                     3816  - 
ipv6                  230496  - 
af_packet              20176  - 
parport_pc             32772  - 
parport                33416  - 
8250_pnp                8712  - 
8250                   20148  - 
serial_core            18728  - 
floppy                 55524  - 
shpchp                 42432  - 
pci_hotplug             9740  - 
intel_agp              21284  - 
agpgart                32764  - 
ehci_hcd               27120  - 
usbcore               118340  - 
via_rhine              21772  - 
mii                     5224  - 
crc32                   4168  - 
ide_cd                 38564  - 
cdrom                  36128  - 
rtc                    11772  - 
ext3                  124336  - 
jbd                    50780  - 
ide_disk               15464  - 
ide_generic             1320  - 
via82cxxx               8620  - 
trm290                  4236  - 
triflex                 3784  - 
slc90e66                5480  - 
sis5513                14672  - 
siimage                11144  - 
serverworks             8656  - 
sc1200                  7016  - 
rz1000                  2696  - 
piix                    9900  - 
pdc202xx_old           10216  - 
pdc202xx_new            8104  - 
opti621                 4204  - 
ns87415                 4232  - 
hpt366                 17608  - 
hpt34x                  4968  - 
generic                 4524  - 
cy82c693                4524  - 
cs5530                  5096  - 
cmd64x                 10884  - 
atiixp                  5624  - 
amd74xx                13412  - 
alim15x3               11188  - 
aec62xx                 7048  - 
ide_core              114440  - 
sd_mod                 15544  - 
scsi_mod              135528  - 
unix                   24784  -
I use version 2.6.16 of the Linux kernel.
 
Old 03-27-2006, 07:29 PM   #2
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
it looks like your modules aren't loaded, you should have something like
Code:
snd_pcm_oss            41504  0
snd_mixer_oss          14208  1 snd_pcm_oss
snd_via82xx            20244  0
snd_ac97_codec         80288  1 snd_via82xx
snd_ac97_bus            2048  1 snd_ac97_codec
snd_pcm                67592  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              18052  1 snd_pcm
snd_page_alloc          8200  2 snd_via82xx,snd_pcm
snd_mpu401_uart         5504  1 snd_via82xx
snd_rawmidi            17824  1 snd_mpu401_uart
snd_seq_device          6796  1 snd_rawmidi
try running "alsaconf"
then "alsamixer"
then "alsactl store"
 
Old 03-27-2006, 11:53 PM   #3
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrisortiz
try running "alsaconf"
then "alsamixer"
then "alsactl store"
I have access to none of those commands. It seems like my biggest problem is the modules. Before I built ALSA into the kernel, alsaconf couldn't find the modules either. So, how would I go about retrieving/loading them?
 
Old 03-28-2006, 11:58 AM   #4
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
hmm. I found something in my dmesg that may be another clue.

Code:
Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC).
ALSA device list:
  No soundcards found.
Although, strictly speaking, don't have a sound card, I think the sound devices are integrated into my motherboard. Does it matter?
 
Old 03-30-2006, 07:59 PM   #5
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
Quote:
Although, strictly speaking, don't have a sound card, I think the sound devices are integrated into my motherboard. Does it matter?
no it shouldn't
all those commands are in /sbin did you try running them as root?
 
Old 03-30-2006, 08:20 PM   #6
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrisortiz
no it shouldn't
all those commands are in /sbin did you try running them as root?
Yes I did, they didn't work. I think I've almost got it working, however: but my terrible luck has produced another problem. I found the menu for the appropriate sound modules in menuconfig, and now I'm having trouble recompiling the kernel, even though I've sucessfully done it before! See my other thread: http://www.linuxquestions.org/questi...d.php?t=429890

I guess Linux doesn't want things to be too easy for me? Who knows.
 
Old 03-30-2006, 08:27 PM   #7
demented_are_go
Member
 
Registered: Mar 2006
Distribution: Fedora Solaris Slackware
Posts: 50

Rep: Reputation: 15
You could have a look at this : http://www.tux.org/~tbr/sound-debian/ never ran Debian, but there's a part there about the modules, that might help
 
Old 03-30-2006, 09:29 PM   #8
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Okay! I've now recompiled the kernel and made significant progress. Applications will now play music. The only problem is that I cannot hear anything. I've read that ALSA is muted by default. The problem is that I have no alsamixer (most likley because ALSA is built in to the kernel) and I cannot get it unmuted (if that's, in fact, the problem). Any ideas?
 
Old 03-30-2006, 09:34 PM   #9
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Ah, never mind! It works in XMMS! Just not in amaroK. Thanks guys!
 
Old 03-30-2006, 09:59 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The correct module for your sound card is snd-intel8x0 or snd-hda.

I recommend re-compile your kernel again with out OSS and ALSA drivers. Just leave sound core set as a module. Then re-install ALSA. Also you do not need hotplug for PCI. Re-compiling the kernel is not needed to get sound to work because you can get the software from ALSA site. Compiling both OSS and ALSA takes longer than to compile the kernel.
 
  


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
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 01:27 PM
/dev/dsp (no sound) ericb Linux - Hardware 1 01-10-2006 12:12 PM
no sound from /dev/dsp Dargason Linux - Software 24 01-06-2006 03:49 PM
Error when I try to play MP3 gstream error dev/dsp/ in use d_dallis_gr Linux - Newbie 2 07-18-2005 01:16 PM
sound : /dev/dsp j-charles Linux - Newbie 4 02-28-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration