[pulseaudio-tickets] [PulseAudio] #312: Error opening PCM device hw:1: Device or resource busy

PulseAudio trac-noreply at tango.0pointer.de
Wed Jun 18 13:44:13 PDT 2008


#312: Error opening PCM device hw:1: Device or resource busy
-----------------------+----------------------------------------------------
 Reporter:  d.paleino  |       Owner:  lennart
     Type:  defect     |      Status:  new    
 Priority:  normal     |   Milestone:         
Component:  daemon     |    Severity:  major  
 Keywords:             |  
-----------------------+----------------------------------------------------
 Hi,
 I know this might seem a duplicate of #128, but I have no applications
 running, no hald running, and the soundcard should be "statically
 detected".

 I currently have two "soundcards": one is a modem, one is the effective
 soundcard. They get strangely detected by BIOS: one is hw:0 on time, and
 (randomly) on the next boot it might be hw:1... but this is another story.

 I've tried to "cat file.wav >/dev/dsp1" (dsp1 being the "real" soundcard),
 and it works. I haven't anything sound-related running (oh, well, apart
 padevchooser), and ALSA is stopped.

 Here's the error log:

 {{{
 # LANG=C pulseaudio --system=1 --high-priority=1 --daemonize=false -vvvvvv
 I: core-util.c: Successfully gained nice level -11.
 I: main.c: Found user 'pulse' (UID 113) and group 'pulse' (GID 122).
 I: main.c: Successfully dropped root privileges.
 W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not
 permitted
 W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not
 permitted
 I: main.c: This is PulseAudio 0.9.10
 I: main.c: Page size is 4096 bytes
 I: main.c: Fresh high-resolution timers available! Bon appetit!
 I: module-alsa-sink.c: Successfully opened device hw:1.
 I: module-alsa-sink.c: Successfully enabled mmap() mode.
 I: alsa-util.c: Successfully attached to mixer 'hw:1'
 I: alsa-util.c: Using mixer control "Master".
 I: sink.c: Created sink 0 "alsa_output.hw_1" with sample spec "s16le 2ch
 44100Hz"
 I: source.c: Created source 0 "alsa_output.hw_1.monitor" with sample spec
 "s16le 2ch 44100Hz"
 I: module-alsa-sink.c: Using 4 fragments of size 4352 bytes.
 I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using
 hardware volume control.
 D: module-alsa-sink.c: Thread starting up
 D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
 I: module-alsa-sink.c: Starting playback.
 I: module.c: Loaded "module-alsa-sink" (index: #0; argument:
 "device=hw:1").
 I: module-alsa-source.c: Successfully opened device hw:1.
 I: module-alsa-source.c: Successfully enabled mmap() mode.
 I: alsa-util.c: Successfully attached to mixer 'hw:1'
 I: alsa-util.c: Using mixer control "Capture".
 I: source.c: Created source 1 "alsa_input.hw_1" with sample spec "s16le
 2ch 44100Hz"
 I: module-alsa-source.c: Using 4 fragments of size 4352 bytes.
 I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using
 hardware volume control.
 D: module-alsa-source.c: Thread starting up
 D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
 I: module.c: Loaded "module-alsa-source" (index: #1; argument:
 "device=hw:1").
 D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules
 /module-hal-detect.so': failure
 W: alsa-util.c: Device hw:0 doesn't support 44100 Hz, changed to 37286 Hz.
 W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 1.
 I: module-alsa-sink.c: Successfully opened device hw:0.
 I: module-alsa-sink.c: Successfully enabled mmap() mode.
 I: alsa-util.c: Successfully attached to mixer 'hw:0'
 I: alsa-util.c: Using mixer control "Master".
 I: sink.c: Created sink 1 "alsa_output.hw_0" with sample spec "s16le 1ch
 37286Hz"
 I: source.c: Created source 2 "alsa_output.hw_0.monitor" with sample spec
 "s16le 1ch 37286Hz"
 I: module-alsa-sink.c: Using 4 fragments of size 2204 bytes.
 I: alsa-util.c: ALSA device lacks separate volumes control for channel
 'mono', falling back to software volume control.
 D: module-alsa-sink.c: Thread starting up
 D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+27
 I: module-alsa-sink.c: Starting playback.
 I: module.c: Loaded "module-alsa-sink" (index: #2; argument:
 "device=hw:0").
 E: alsa-util.c: Error opening PCM device hw:1: Device or resource busy
 E: module.c: Failed to load  module "module-alsa-sink" (argument:
 "device=hw:1"): initialization failed.
 E: alsa-util.c: Error opening PCM device hw:1: Device or resource busy
 E: module.c: Failed to load  module "module-alsa-source" (argument:
 "device=hw:1"): initialization failed.
 I: module-detect.c: loaded 1 modules.
 I: module.c: Loaded "module-detect" (index: #3; argument: "").
 D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules
 /module-esound-protocol-unix.so': success
 E: module-protocol-stub.c: Failed to create socket directory
 '/tmp/.esd/socket': Operation not permitted
 E: module.c: Failed to load  module "module-esound-protocol-unix"
 (argument: "socket="/tmp/.esd/socket""): initialization failed.
 E: main.c: Module load failed.
 E: main.c: Failed to initialize daemon.
 I: module.c: Unloading "module-alsa-sink" (index: #0).
 D: module-alsa-sink.c: Thread shutting down
 I: sink.c: Freeing sink 0 "alsa_output.hw_1"
 I: source.c: Freeing source 0 "alsa_output.hw_1.monitor"
 I: module.c: Unloaded "module-alsa-sink" (index: #0).
 I: module.c: Unloading "module-alsa-source" (index: #1).
 D: module-alsa-source.c: Thread shutting down
 I: source.c: Freeing source 1 "alsa_input.hw_1"
 I: module.c: Unloaded "module-alsa-source" (index: #1).
 I: module.c: Unloading "module-alsa-sink" (index: #2).
 D: module-alsa-sink.c: Thread shutting down
 I: sink.c: Freeing sink 1 "alsa_output.hw_0"
 I: source.c: Freeing source 2 "alsa_output.hw_0.monitor"
 I: module.c: Unloaded "module-alsa-sink" (index: #2).
 I: module.c: Unloading "module-detect" (index: #3).
 I: module.c: Unloaded "module-detect" (index: #3).
 I: main.c: Daemon terminated.
 }}}

 Kindly,
 David

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/312>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list