Sound device or resource busy

Asked by VanillaMozilla on 2010-02-03

The problem arose while trying in vain to get Ekiga working.

This test is supposed to test your sound card inputs and outputs by echoing your voice with a short delay. The input is the microphone, and the output is the sound card (or speakers, in this case). I got the test from the Ekiga Wiki.

Two days ago it passed with no problem, even after running Ekiga. Now, after attempting to use Ekiga it always fails. Here is the test and the results.

$ sudo arecord -D plughw:0,0 -c 1 -r 8000 -f S16_LE - | aplay -D plughw:0,0 -c 1 -r 8000 -f S16_LE -arecord: main:608: audio

open error: Device or resource busy
aplay: playback:2297: read error

If I run it from a fresh boot, I get no error message, but there's no echo. If I run it after starting and terminating Ekiga, I get the error message. The Sound Preferences UI shows that the microphone is working; both Input and Output are at normal volume. Input is "Internal Audio Analog Stereo"; Output is "Analog Output".

OK, so what's using the sound devices and what do I do about it? Not really knowing what I'm doing, I tried the following magic that I found on the Internet.

$ lsof |grep snd
pulseaudi 1649 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20
pulseaudi 1649 couture mem CHR 116,8 4293 /dev/snd/pcmC0D0c
pulseaudi 1649 couture 21u CHR 116,10 0t0 4314 /dev/snd/controlC0
pulseaudi 1649 couture 22u CHR 116,10 0t0 4314 /dev/snd/controlC0
pulseaudi 1649 couture 27u CHR 116,8 0t0 4293 /dev/snd/pcmC0D0c
pulseaudi 1649 couture 29u CHR 116,10 0t0 4314 /dev/snd/controlC0
gconf-hel 1654 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20
gnome-set 1684 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20
gnome-vol 1777 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20
gnome-vol 1948 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20
ekiga 2000 couture mem REG 8,5 420372 10822043 /usr/lib/libsndfile.so.1.0.20

OK, I don't know where all those other processes came from, but Ekiga is NOT supposed to be running (I had run it and closed it). So,

$ killall -SIGKILL ekiga

No change. Sound card still not working.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ekiga Edit question
Assignee:
No assignee Edit question
Solved by:
VanillaMozilla
Solved:
2010-02-06
Last query:
2010-02-06
Last reply:

Not only that, but music doesn't play either. Not solved by logging off/on, but

solved by rebooting.

I'm still going to leave this open in case anyone has an easy answer or explanation or hint how to handle this without rebooting. Thanks.

Ubuntu updated, and the problem appears to be solved. :)

Ubuntu updated, and the problem appears to be solved. :)