Well unfortunatly it appears to not work for me. Pulseaudio detects the card and profiles correctly but when it comes to playing it dies.
Here is my verbose output: I: alsa-sink.c: Trying resume... D: alsa-util.c: Maximum hw buffer size is 21824 ms D: alsa-util.c: Set buffer size first (to 4608 samples), period size second (to 1536 samples). D: alsa-sink.c: hwbuf_unused=0 D: alsa-sink.c: setting avail_min=1 I: alsa-sink.c: Resumed successfully... D: module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.iec958-ac3-surround-51 becomes idle, timeout in 5 seconds. I: alsa-sink.c: Starting playback. I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_START failed D: module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.iec958-ac3-surround-51 becomes busy. D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=12, prebuf=0, minreq=1 maxrewind=0 D: memblockq.c: memblockq sanitized: maxlength=33554436, tlength=33554436, base=12, prebuf=0, minreq=12 maxrewind=0 I: sink-input.c: Created input 0 "ALSA Playback" on alsa_output.pci-0000_00_1b.0.iec958-ac3-surround-51 with sample spec s16le 6ch 48000Hz and channel map front-left,front-right,rear-left,rear-right,front-center,lfe I: sink-input.c: media.name = "ALSA Playback" I: sink-input.c: application.name = "ALSA plug-in [speaker-test]" I: sink-input.c: native-protocol.peer = "UNIX socket client" I: sink-input.c: native-protocol.version = "16" I: sink-input.c: application.process.id = "3829" I: sink-input.c: application.process.user = "danny" I: sink-input.c: application.process.host = "danny-desktop" I: sink-input.c: application.process.binary = "speaker-test" I: sink-input.c: application.language = "en_GB.utf8" I: sink-input.c: window.x11.display = ":0.0" I: sink-input.c: application.process.machine_id = "40751868c16b3a1bccd1c2ce4c024cf4" I: sink-input.c: application.process.session_id = "40751868c16b3a1bccd1c2ce4c024cf4-1278919834.226667-76606340" I: sink-input.c: module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [speaker-test]" I: protocol-native.c: Requested tlength=7281.75 ms, minreq=1820.44 ms D: protocol-native.c: Early requests mode enabled, configuring sink latency to minreq. D: memblockq.c: memblockq requested: maxlength=4194304, tlength=4194288, base=12, prebuf=3145716, minreq=55296 maxrewind=0 D: memblockq.c: memblockq sanitized: maxlength=4194312, tlength=4194288, base=12, prebuf=3145716, minreq=55296 maxrewind=0 I: protocol-native.c: Final latency 7377.75 ms = 7089.75 ms + 2*96.00 ms + 96.00 ms D: core-subscribe.c: Dropped redundant event due to change event. D: protocol-native.c: Requesting rewind due to end of underrun. D: alsa-sink.c: Requested to rewind 55296 bytes. D: alsa-sink.c: Limited to 55296 bytes. D: alsa-sink.c: before: 4608 E: alsa-sink.c: snd_pcm_rewind() failed: Unknown error 4608 D: alsa-sink.c: process_rewind: Unknown error 4608 E: alsa-sink.c: process_rewind: Unknown error 4608 I: module.c: Unloading "module-alsa-card" (index: #4).
It looks like it is still trying to rewind. Was there anything other than this patch I needed to add?
Well unfortunatly it appears to not work for me.
Pulseaudio detects the card and profiles correctly but when it comes to playing it dies.
Here is my verbose output: suspend- on-idle. c: Sink alsa_output. pci-0000_ 00_1b.0. iec958- ac3-surround- 51 becomes idle, timeout in 5 seconds. IOCTL_START failed suspend- on-idle. c: Sink alsa_output. pci-0000_ 00_1b.0. iec958- ac3-surround- 51 becomes busy. pci-0000_ 00_1b.0. iec958- ac3-surround- 51 with sample spec s16le 6ch 48000Hz and channel map front-left, front-right, rear-left, rear-right, front-center, lfe protocol. peer = "UNIX socket client" protocol. version = "16" process. id = "3829" process. user = "danny" process. host = "danny-desktop" process. binary = "speaker-test" language = "en_GB.utf8" process. machine_ id = "40751868c16b3a 1bccd1c2ce4c024 cf4" process. session_ id = "40751868c16b3a 1bccd1c2ce4c024 cf4-1278919834. 226667- 76606340" stream- restore. id = "sink-input- by-application- name:ALSA plug-in [speaker-test]"
I: alsa-sink.c: Trying resume...
D: alsa-util.c: Maximum hw buffer size is 21824 ms
D: alsa-util.c: Set buffer size first (to 4608 samples), period size second (to 1536 samples).
D: alsa-sink.c: hwbuf_unused=0
D: alsa-sink.c: setting avail_min=1
I: alsa-sink.c: Resumed successfully...
D: module-
I: alsa-sink.c: Starting playback.
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_
D: module-
D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=12, prebuf=0, minreq=1 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=33554436, tlength=33554436, base=12, prebuf=0, minreq=12 maxrewind=0
I: sink-input.c: Created input 0 "ALSA Playback" on alsa_output.
I: sink-input.c: media.name = "ALSA Playback"
I: sink-input.c: application.name = "ALSA plug-in [speaker-test]"
I: sink-input.c: native-
I: sink-input.c: native-
I: sink-input.c: application.
I: sink-input.c: application.
I: sink-input.c: application.
I: sink-input.c: application.
I: sink-input.c: application.
I: sink-input.c: window.x11.display = ":0.0"
I: sink-input.c: application.
I: sink-input.c: application.
I: sink-input.c: module-
I: protocol-native.c: Requested tlength=7281.75 ms, minreq=1820.44 ms
D: protocol-native.c: Early requests mode enabled, configuring sink latency to minreq.
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=4194288, base=12, prebuf=3145716, minreq=55296 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194312, tlength=4194288, base=12, prebuf=3145716, minreq=55296 maxrewind=0
I: protocol-native.c: Final latency 7377.75 ms = 7089.75 ms + 2*96.00 ms + 96.00 ms
D: core-subscribe.c: Dropped redundant event due to change event.
D: protocol-native.c: Requesting rewind due to end of underrun.
D: alsa-sink.c: Requested to rewind 55296 bytes.
D: alsa-sink.c: Limited to 55296 bytes.
D: alsa-sink.c: before: 4608
E: alsa-sink.c: snd_pcm_rewind() failed: Unknown error 4608
D: alsa-sink.c: process_rewind: Unknown error 4608
E: alsa-sink.c: process_rewind: Unknown error 4608
I: module.c: Unloading "module-alsa-card" (index: #4).
It looks like it is still trying to rewind.
Was there anything other than this patch I needed to add?