Running into a weird issue. I am doing the following on 0.9.22 version of pulseaudio<div><br></div><div>start pulseaudio, and play and audio file.</div><div>when the file is done playing, after 5 seconds, the alsa sink suspends.</div>
<div>then I let the system go to power collapse.</div><div><br></div><div>When I resume and play an audio file again, alsa sink is blocked somewhere, I do not see the message <br><div><div>I: alsa-sink.c: Trying resume...</div>
<div>The PA_SINK_SET_STATE message doesn't seem to be called to the alsa sink.</div><div><br></div><div>Alsa is not blocked at this point, I can do an aplay to hw:0 and hear the output, bypassing pulseaudio.</div><div>
<br></div><div><br></div><div>here is an example from pulseaudio with debug messages enabled, after suspend/resume:</div><div><br></div><div><div>aplay -D media /usr/palm/sounds/phone.wav -vvv &</div><div>root@palm-webos:/var/home/root# I: client.c: Created 2 "Native client (UNIX socket client)"</div>
<div>D: protocol-native.c: Protocol version: remote 19, local 19</div><div>I: protocol-native.c: Got credentials: uid=0 gid=0 success=1</div><div>D: protocol-native.c: SHM possible: yes</div><div>D: protocol-native.c: Negotiated SHM: no</div>
<div>Playing WAVE '/usr/palm/sounds/phone.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo</div><div>D: module-suspend-on-idle.c: Sink pcm_output becomes busy.</div><div>D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0</div>
<div>D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0</div><div>I: sink-input.c: Created input 0 "ALSA Playback" on pcm_output with sample spec s16le 2ch 44100Hz and channel map front-left,front-right</div>
<div>I: sink-input.c: <a href="http://media.name">media.name</a> = "ALSA Playback"</div><div>I: sink-input.c: <a href="http://application.name">application.name</a> = "ALSA plug-in [aplay]"</div>
<div>I: sink-input.c: native-protocol.peer = "UNIX socket client"</div><div>I: sink-input.c: native-protocol.version = "19"</div><div>I: sink-input.c: <a href="http://application.process.id">application.process.id</a> = "3593"</div>
<div>I: sink-input.c: application.process.user = "root"</div><div>I: sink-input.c: application.process.host = "palm-webos"</div><div>I: sink-input.c: application.process.binary = "aplay"</div>
<div>I: sink-input.c: application.language = "C"</div><div>I: sink-input.c: application.process.machine_id = "palm-webos"</div><div>I: protocol-native.c: Requested tlength=500.00 ms, minreq=124.99 ms</div>
<div>D: protocol-native.c: Early requests mode enabled, configuring sink latency to minreq.</div><div>D: memblockq.c: memblockq requested: maxlength=4194304, tlength=88200, base=4, prebuf=66152, minreq=9596 maxrewind=0</div>
<div>D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=88200, base=4, prebuf=66152, minreq=9596 maxrewind=0</div><div>I: protocol-native.c: Final latency 554.42 ms = 391.20 ms + 2*54.40 ms + 54.42 ms</div><div>
D: sink-input.c: SetVolumeWithRamping: Virtual Volume From 1646=0.000016 to 41160=0.247734</div><div>D: sink-input.c: Sink input's soft volume is 41160= 0.247734 </div><div>D: sink-input.c: Volume Ramping: Point 1 is 1=0.000015, Point 2 is 16236=0.247742</div>
<div>I: module-palm-policy.c: parse_message: ramp command received, sink is 4, volumetoset:70, headphones:0</div><div>ALSA <-> PulseAudio PCM I/O Plugin</div><div>Its setup is:</div><div> stream : PLAYBACK</div>
<div> access : RW_INTERLEAVED</div><div> format : S16_LE</div><div> subformat : STD</div><div> channels : 2</div><div> rate : 44100</div><div> exact rate : 44100 (44100/1)</div><div> msbits : 16</div>
<div> buffer_size : 22050</div><div> period_size : 5512</div><div> period_time : 125000</div><div> tstamp_mode : NONE</div><div> period_step : 1</div><div> avail_min : 5512</div><div> period_event : 0</div>
<div> start_threshold : 22050</div><div> stop_threshold : 22050</div><div> silence_threshold: 0</div><div> silence_size : 0</div><div> boundary : 1445068800</div><div>Max peak (11024 samples): 0x00002dd0 ######## 35%</div>
<div>Max peak (11024 samples): 0x0000332c ######## 39%</div><div>Max peak (11024 samples): 0x00003741 ######### 43%</div><div>D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>
D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>Max peak (11024 samples): 0x0000353f ######### 41%</div><div>D: protocol-native.c: Requesting rewind due to end of underrun.</div><div>D: protocol-native.c: Requesting rewind due to end of underrun.</div>
</div><div><br></div><div>Just waits here forever. Sink doesnt get resume call, and alsasink doesn't get resumed either</div><div><br></div><div>Any ideas?</div><div><br></div>-- <br>-baeksanchang<br>
</div></div>