[pulseaudio-discuss] 0.9.17 regression: USB device disappears after suspend/resume

Cameron Hutchison lists at xdna.net
Tue Sep 15 02:21:08 PDT 2009


Colin Guthrie <gmane at colin.guthr.ie> writes:

>'Twas brillig, and Cameron Hutchison at 13/09/09 22:49 did gyre and gimble:
>> Lennart Poettering <lennart at poettering.net> writes:
>> 
>>>> D: alsa-util.c: Got POLLERR from ALSA
>>>> W: alsa-util.c: Got POLLNVAL from ALSA
>> 
>>> This suggests that your driver does not survive the suspend/resume due
>>> to some reason. Is it possible that you also updated the kernel at the
>>> same time as updating PA?
>> 
>> I had updated the kernel to 2.6.31, but I tried rolling back to 2.6.30.5
>> and I still had the problem. Suspend/resume worked with PA 0.9.15 and
>> 2.6.30.5. I get the reported problem with PA 0.9.17 with both 2.6.30.5
>> and 2.6.31.

>Hmm, would you be able to get full pulseaudio -vvv output during the 
>suspend/resume cycle?

Ok. Appended here.

I rolled back PA to 0.9.15 and retested and confirmed that 0.9.15 works
with everything else the same. After the -vvv output below is a second
one, this one from PA 0.9.15.

There was a lot more output on PA 0.9.15. Hopefully I didn't cut it too
short. I can capture it again if I did.


----- PA 0.9.17 output -----
D: alsa-sink.c: Wakeup from ALSA!
D: alsa-sink.c: Wakeup from ALSA!
D: alsa-util.c: Got POLLERR from ALSA
W: alsa-util.c: Got POLLNVAL from ALSA
D: alsa-util.c: PCM state is DISCONNECTED
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_DROP failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_PREPARE failed
W: alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device
I: module.c: Unloading "module-alsa-sink" (index: #4).
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
I: sink.c: Created sink 1 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "Dummy Output"
I: sink.c:     device.class = "abstract"
I: sink.c:     device.icon_name = "audio-card"
I: source.c: Created source 1 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of Dummy Output"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
D: module-null-sink.c: Thread starting up
D: module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: module.c: Loaded "module-null-sink" (index: #18; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
D: module-rescue-streams.c: No sink inputs to move away.
D: module-rescue-streams.c: No evacuation source found.
D: core-subscribe.c: Dropped redundant event due to change event.
D: module-suspend-on-idle.c: Sink alsa_output.0.analog-stereo becomes idle, timeout in 5 seconds.
D: core.c: Hmm, no streams around, trying to vacuum.
I: source-output.c: Freeing output 0 "Peak detect"
D: core-subscribe.c: Dropped redundant event due to remove event.
D: alsa-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "alsa_output.0.analog-stereo"
I: source.c: Freeing source 0 "alsa_output.0.analog-stereo.monitor"
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_DROP failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_DROP failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_FREE failed
I: module.c: Unloaded "module-alsa-sink" (index: #4).
D: core-subscribe.c: Dropped redundant event due to change event.
D: module-stream-restore.c: Not restoring device for stream source-output-by-application-id:org.PulseAudio.pavucontrol, because already set
D: module-intended-roles.c: Not setting device for stream Peak detect, because already set.
D: module-suspend-on-idle.c: Sink auto_null becomes busy.
D: resampler.c: Channel matrix:
D: resampler.c:        I00   I01 
D: resampler.c:     +------------
D: resampler.c: O00 | 1.000 1.000
I: remap.c: Using generic matrix remapping
I: resampler.c: Using resampler 'peaks'
I: resampler.c: Using float32le as working format.
D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
I: source-output.c: Created output 1 "Peak detect" on auto_null.monitor with sample spec float32le 1ch 25Hz and channel map mono
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=0, base=4, prebuf=1, minreq=0 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=4194304, base=4, prebuf=4, minreq=4 maxrewind=0
I: protocol-native.c: Final latency 60.00 ms = 40.00 ms + 20.00 ms
D: bluetooth-util.c: dbus: interface=org.bluez.Manager, path=/, member=AdapterAdded
D: bluetooth-util.c: Adapter /org/bluez/2426/hci0 created
D: module-console-kit.c: dbus: interface=org.bluez.Manager, path=/, member=AdapterAdded


----- PA 0.9.15 output -----
D: alsa-sink.c: Wakeup from ALSA!
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HWSYNC failed
D: alsa-sink.c: snd_pcm_avail: No such device
E: alsa-sink.c: snd_pcm_avail: No such device
I: module.c: Unloading "module-alsa-card" (index: #4).
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
I: sink.c: Created sink 1 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "Null Output"
I: sink.c:     device.class = "abstract"
I: sink.c:     device.icon_name = "audio-card"
I: module-device-restore.c: Restoring volume for source auto_null.monitor.
I: module-device-restore.c: Restoring mute state for source auto_null.monitor.
I: source.c: Created source 1 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of Null Output"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
D: module-null-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
D: module-suspend-on-idle.c: Sink auto_null becomes idle.
I: module.c: Loaded "module-null-sink" (index: #17; argument: "sink_name=auto_null").
D: module-rescue-streams.c: No sink inputs to move away.
I: module-rescue-streams.c: Failed to move source output 0 "PulseAudio Volume Control" to auto_null.monitor.
D: core-subscribe.c: Dropped redundant event due to change event.
D: module-suspend-on-idle.c: Sink alsa_output.usb_device_46d_a0e_noserial_if0 becomes idle.
D: core.c: Hmm, no streams around, trying to vacuum.
I: source-output.c: Freeing output 0 "Peak detect"
D: core-subscribe.c: Dropped redundant event due to remove event.
D: alsa-sink.c: Thread shutting down
I: sink.c: Freeing sink 0 "alsa_output.usb_device_46d_a0e_noserial_if0"
I: source.c: Freeing source 0 "alsa_output.usb_device_46d_a0e_noserial_if0.monitor"
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_DROP failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_DROP failed
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_FREE failed
I: card.c: Freed 0 "alsa_card.usb_device_46d_a0e_noserial_if0"
I: module.c: Unloaded "module-alsa-card" (index: #4).
D: core-subscribe.c: Dropped redundant event due to change event.
D: module-hal-detect.c: dbus: interface=org.freedesktop.Hal.Device.AccessControl, path=/org/freedesktop/Hal/devices/usb_device_46d_a0e_noserial_if0_alsa_playback_0, member=ACLRemoved
D: module-suspend-on-idle.c: Sink auto_null becomes busy.




More information about the pulseaudio-discuss mailing list