LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error opening PCM device Device or resource busy (https://www.linuxquestions.org/questions/linux-newbie-8/error-opening-pcm-device-device-or-resource-busy-664628/)

Herbivore 08-22-2008 12:04 PM

Error opening PCM device Device or resource busy
 
Hope I haven't missed an answer; did many searches over several days but could not find a duplicate problem or a solution to a related problem that worked. Tried lsof /dev/snd/{whatever your device name is} but after trying different possibilities would see "No such file or directory".

I realize there could be many causes, so thanks in advance for any suggsetions.

System: Mint 5.0 via Ubuntu 8.04 (Hardy), GNOME 2.22.3, 2GB memory, AMD Athlon 64 3200+

Every time the sound stops, there is a syslog entry that says:

Code:

Aug 22 12:05:28 forest pulseaudio[6421]: module-alsa-sink.c: Error opening PCM device front:0: Device or resource busy
Would this be helpful:

Code:

tmr@forest ~ $ lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
05:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
tmr@forest ~ $

user.log has entries like this:

Code:

Aug 22 15:02:58 forest pulseaudio[6447]: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz.
Thanks for any suggestions. Remember, small brain cage noob here.

Uncle_Theodore 08-22-2008 12:08 PM

Do you have /dev/snd directory in your system? What devices have you tried with lsof, and when does the "File not found" error occurs?
In my system I have
ls /dev/snd
controlC0 hwC0D3 pcmC0D0c pcmC0D0p seq timer
with 2 pcm devices as you can see.

Herbivore 08-23-2008 01:45 AM

Re Error opening PCM device Device or resource busy
 
Quote:

Originally Posted by Uncle_Theodore (Post 3256164)
Do you have /dev/snd directory in your system? What devices have you tried with lsof, and when does the "File not found" error occurs?
In my system I have
ls /dev/snd
controlC0 hwC0D3 pcmC0D0c pcmC0D0p seq timer
with 2 pcm devices as you can see.

In Sound Preferences there are 5 choices:

NVidia CK804 (Alsa mixer)
Realtek ALC850 rev 0 (OSS Mixer)
Playback: ALSA PCM on front:0 (NVidia CK804) via DMA (PulseAudio Mixer)
Capture: Monitor Source of ALSA PCM on fron:0 (NVidia CK804) via DMA (PulseAudio Mixer)
Capture: ALSA PCM on front:0 (NVidia CK804) via DMA (PulseAudio Mixer)

Maybe there is a simultaneous request between them for PCM device front:0: causing the busy error?


Code:

tmr@forest ~ $ ls /dev/snd
controlC0  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2p  seq  timer
tmr@forest ~ $ lsof /dev/snd/controlC0
COMMAND    PID USER  FD  TYPE DEVICE SIZE  NODE NAME
mixer_app 6416  tmr  20w  CHR  116,0      12140 /dev/snd/controlC0
tmr@forest ~ $ lsof /dev/snd/pcmC0D0c
tmr@forest ~ $ lsof /dev/snd/pcmC0D0p
tmr@forest ~ $ lsof /dev/snd/pcmC0D1c
tmr@forest ~ $ lsof /dev/snd/pcmC0D2p
tmr@forest ~ $ lsof /dev/snd/seq
tmr@forest ~ $ lsof /dev/snd/timer
tmr@forest ~ $



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