Sound not working at all (OSS, ALSA)

Bug #11333 reported by ChristofferS
4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
High
Fabio Massimo Di Nitto

Bug Description

In Gnome sound is not working at all. When I try to use the audio device I get
the error message:

"ALSA device "default" is already in use by another program."

or "OSS device "default" is already in use by another program." depending on
sound card.

I found out that I had to do the following:

"ln -s /dev/audio1 /dev/dsp"

to get OSS sound working.

ALSA still does not work.

Revision history for this message
hazylazysusan (hazylazysusan) wrote :

HI, have the same problem. Soundblaster Live.

Revision history for this message
Matt Zimmerman (mdz) wrote :

"ln -s /dev/audio1 /dev/dsp" is not correct; those are two different types of
devices, and this will not work reliably.

Send the output from:

- dmesg
- aplay -l
- lsmod

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Created an attachment (id=935)
Output of dmesg

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Created an attachment (id=936)
Output of aplay -l

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Created an attachment (id=937)
Output of lsmod

Revision history for this message
Matt Zimmerman (mdz) wrote :

I don't see any messages in your dmesg output which correspond to the sound
drivers loading. Are you sure it is complete?

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

(In reply to comment #6)
> I don't see any messages in your dmesg output which correspond to the sound
> drivers loading. Are you sure it is complete?

Yes, it is complete. As a normal user I did this:

'dmesg > /tmp/dmesg'

and attached the dmesg file to bugzilla. I just tried again, and diffed the two
files:

"diff /tmp/dmesg /home/cs/tmp/dmesg
1c1
< Linux version 2.6.9-1-k7 (buildd@terranova) (gcc version 3.3.5 (Debian
1:3.3.5-5)) #1 Wed Dec 29 14:41:03 UTC 2004
---
> Linux version 2.6.9-1-k7 (buildd@terranova) (gcc version 3.3.5 (Debian
1:3.3.5-5)) #1 Wed Dec 22 14:13:18 UTC 2004
27c27
< Detected 1299.428 MHz processor.
---
> Detected 1299.755 MHz processor.
32c32
< Memory: 251844k/262080k available (1581k kernel code, 9612k reserved, 742k
data, 148k init, 0k highmem)
---
> Memory: 251844k/262080k available (1580k kernel code, 9612k reserved, 740k
data, 148k init, 0k highmem)
37d36
< Capability LSM initialized
158a158
> Capability LSM initialized
162d161
< cdrom: open failed.
197d195
< usb 1-2: new low speed USB device using address 3
201a200
> usb 1-2: new low speed USB device using address 3
209,211d207
< usb 2-2: new full speed USB device using address 3
< hub 2-2:1.0: USB hub found
< hub 2-2:1.0: 2 ports detected
216,217d211
< usb 2-2.1: new full speed USB device using address 4
< usb 2-2.2: new full speed USB device using address 5
220,222d213
< drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0
proto 2 vid 0x043D pid 0x007B
< usbcore: registered new driver usblp
< drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
224a216,222
> portmap: server localhost not responding, timed out
> RPC: failed to contact portmap (errno -5).
> portmap: server localhost not responding, timed out
> RPC: failed to contact portmap (errno -5).
> lockd_up: makesock failed, error=-5
> portmap: server localhost not responding, timed out
> RPC: failed to contact portmap (errno -5).
226c224
< Disabled Privacy Extensions on device c0310740(lo)
---
> Disabled Privacy Extensions on device c030f540(lo)
240a239
> UDF-fs: No VRS found
"

You see, almost no difference (the RPC issue is something that I have fixed).

Lsmod shows that the sound modules are loaded. Should dmesg contain any info
about that ?

Revision history for this message
Matt Zimmerman (mdz) wrote :

Please send output from "cat /dev/sndstat"

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Created an attachment (id=994)
output of 'cat /dev/sndstat'

Revision history for this message
Matt Zimmerman (mdz) wrote :

It would appear that you have two sound devices. One is an onboard sound device
on your motherboard, and the other is a USB headset. By creating a symlink, it
would seem that you are redirecting audio output to the headset. Is that what
you want?

I don't know why you don't have /dev/dsp; that makes no sense to me. What does:

ls -l /dev/dsp* /dev/snd

show?

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Output of 'ls -l /dev/dsp* /dev/snd':

"ls -l /dev/dsp* /dev/snd
crw-rw---- 1 root audio 14, 3 2005-01-05 19:42 /dev/dsp
crw-rw---- 1 root audio 14, 19 2005-01-05 19:42 /dev/dsp1

/dev/snd:
total 0
crw-rw---- 1 root audio 116, 0 2005-01-05 19:42 controlC0
crw-rw---- 1 root audio 116, 32 2005-01-05 19:42 controlC1
crw-rw---- 1 root audio 116, 24 2005-01-05 19:42 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2005-01-05 19:42 pcmC0D0p
crw-rw---- 1 root audio 116, 56 2005-01-05 19:42 pcmC1D0c
crw-rw---- 1 root audio 116, 48 2005-01-05 19:42 pcmC1D0p
crw-rw---- 1 root audio 116, 33 2005-01-05 19:42 timer
"

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #11)
> Output of 'ls -l /dev/dsp* /dev/snd':
>
> "ls -l /dev/dsp* /dev/snd
> crw-rw---- 1 root audio 14, 3 2005-01-05 19:42 /dev/dsp
> crw-rw---- 1 root audio 14, 19 2005-01-05 19:42 /dev/dsp1
>
> /dev/snd:
> total 0
> crw-rw---- 1 root audio 116, 0 2005-01-05 19:42 controlC0
> crw-rw---- 1 root audio 116, 32 2005-01-05 19:42 controlC1
> crw-rw---- 1 root audio 116, 24 2005-01-05 19:42 pcmC0D0c
> crw-rw---- 1 root audio 116, 16 2005-01-05 19:42 pcmC0D0p
> crw-rw---- 1 root audio 116, 56 2005-01-05 19:42 pcmC1D0c
> crw-rw---- 1 root audio 116, 48 2005-01-05 19:42 pcmC1D0p
> crw-rw---- 1 root audio 116, 33 2005-01-05 19:42 timer
> "

Everything seems to be detected correctly. You did not answer the question
about which audio device you wanted to be used, but it sounds like you wanted it
to use your USB headphones rather than the onboard audio, in which case this is
a duplicate of bug #8050.

This bug has been marked as a duplicate of bug 8050.

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Sorry about that.

I would actually like the onboard card to be the default, not the USB headset.

Does it change this bug's status ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.