[pulseaudio-discuss] failure to open pcm for input only device blocks PA

Brian J. Murrell brian at interlinx.bc.ca
Sun Jan 31 08:50:40 PST 2010


Hi,

I have a USB webcam that has a microphone, but of course, no output
capabilities.  When PA starts it seems to get stuck trying to open the
PCM device for this thing, but none exists:

I: main.c: This is PulseAudio 0.9.19
D: main.c: Compilation host: i486-pc-linux-gnu
D: main.c: Compilation CFLAGS: -g -O2 -g -Wall -O3 -Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: main.c: Running on host: Linux i686 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009
D: main.c: Found 2 CPUs.
I: main.c: Page size is 4096 bytes
D: main.c: Compiled with Valgrind support: no
D: main.c: Running in Valgrind mode: no
D: main.c: Optimized build: yes
D: main.c: All asserts enabled.
I: main.c: Machine ID is c5af5645621daea8981bd8ac95e82500.
I: main.c: Session ID is c5af5645621daea8981bd8ac95e82500-1264370619.994350-899039946.
I: main.c: Using runtime directory /home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-runtime.
I: main.c: Using state directory /home/brian/.pulse.
I: main.c: Using modules directory /usr/lib/pulse-0.9.19/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-x86.c: CPU flags: MMX SSE SSE2 SSE3 MMXEXT 3DNOW 3DNOWEXT 
I: svolume_mmx.c: Initialising MMX optimized functions.
I: remap_mmx.c: Initialising MMX optimized remappers.
I: svolume_sse.c: Initialising SSE2 optimized functions.
I: remap_sse.c: Initialising SSE2 optimized remappers.
I: sconv_sse.c: Initialising SSE2 optimized conversions.
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
D: database-tdb.c: Opened TDB database '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-device-volumes.tdb'
I: module-device-restore.c: Sucessfully opened database file '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
D: database-tdb.c: Opened TDB database '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-stream-volumes.tdb'
I: module-stream-restore.c: Sucessfully opened database file '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
D: database-tdb.c: Opened TDB database '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-card-database.tdb'
I: module-card-restore.c: Sucessfully opened database file '/home/brian/.pulse/c5af5645621daea8981bd8ac95e82500-card-database'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9.19/modules/module-udev-detect.so': success
D: module-udev-detect.c: /dev/snd/controlC1 is accessible: yes
D: module-udev-detect.c: /devices/pci0000:00/0000:00:0b.1/usb1/1-1/1-1:1.2/sound/card1 is busy: no
D: module-udev-detect.c: Loading module-alsa-card with arguments 'device_id="1" name="usb-046d_08c5-02" card_name="alsa_card.usb-046d_08c5-02" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1"'
D: dbus-util.c: Successfully connected to D-Bus session bus c8a62f743dbcc8c4ef15bc284b5cc3bd as :1.1157
D: reserve-wrap.c: Successfully acquired reservation lock on device 'Audio1'
D: alsa-mixer.c: Looking at profile output:analog-mono
D: alsa-mixer.c: Checking for playback on Analog Mono (analog-mono)
D: alsa-util.c: Trying hw:1 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC1D0p failed
I: alsa-util.c: Error opening PCM device hw:1: No such file or directory
D: alsa-mixer.c: Looking at profile output:analog-mono+input:analog-mono
D: alsa-mixer.c: Checking for playback on Analog Mono (analog-mono)
D: alsa-util.c: Trying hw:1 with SND_PCM_NO_AUTO_FORMAT ...
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC1D0p failed
I: alsa-util.c: Error opening PCM device hw:1: No such file or directory
...
D: alsa-mixer.c: Looking at profile input:analog-mono
D: alsa-mixer.c: Checking for recording on Analog Mono (analog-mono)
D: alsa-util.c: Trying hw:1 with SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:1
D: alsa-util.c: Maximum hw buffer size is 32768 ms
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
D: alsa-util.c: Set neither period nor buffer size.
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: alsa-util.c: snd_pcm_hw_params failed: Connection timed out
D: alsa-util.c: Trying hw:1 without SND_PCM_NO_AUTO_FORMAT ...
D: alsa-util.c: Managed to open hw:1
D: alsa-util.c: Maximum hw buffer size is 32768 ms
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
D: alsa-util.c: Set neither period nor buffer size.
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed
I: alsa-util.c: snd_pcm_hw_params failed: Connection timed out
...

I was finally able to get PA out of this failure by removing the
snd_usb_audio module.

I can provide an unabridged version of the above log if I've ended up
deleting too much.

Cheers,
b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20100131/70017a99/attachment.pgp>


More information about the pulseaudio-discuss mailing list