<div dir="ltr">I am getting following error when i try to to paplay<br><div><br># paplay /usr/share/sounds/alsa/Front_Center.wav<br>Failed to drain stream: Timeout<br><br></div><div>Here PA is connected to alsa-driver for playback of sound.<br>
</div><div>I am not sure about the problem here any pointers would be helpful.<br><br></div><div>thanks,<br></div><div>KD<br><br></div><div>The detailed log is below.<br></div><div><br>I: [pulseaudio] protocol-native.c: Got crede[ 421.525807] audio ] 1154_dai_hw_params is completed.<br>
ntials: uid=0 gid=0 success=1<br>D: [pulseaudio] p[ 421.534996] audio ] 1154_pcm_hw_params is completed.<br>rotocol-native.c: SHM possible: yes<br>D: [pulseau[ 421.545005] audio ] 1154_pcm_prepare is completed(ch:2)(bs:16)(sr:48000)(free:318644)(diff:285876).<br>
dio] protocol-native.c: Negotiated SHM: yes<br>I: [ 421.558994] audio ] 1154_pcm_prepare is completed(ch:2)(bs:16)(sr:48000)(free:318644)(diff:285876).<br>[pulseaudio] sink-input.c: Trying to change sample rate<br>I: [pulseaudio] alsa-sink.c: Updating rate for device d[ 421.578020] BUG: scheduling while atomic: alsa-sink/4669/0x00000003<br>
[ 421.585948] Modules linked in: tntfs(PO) venc_hxenc(PO) vdec_vdu(PO) dc_gm(O) pvrsrvkm(O) kdrv_lg115x(O) logfunnel(O) hma(O)<br>[ 421.597232] [<800197b8>] (unwind_backtrace+0x0/0xf8) from [<8043458c>] (__schedule+0x49c/0x4fc)<br>
[ 421.605933] [<8043458c>] (__schedule+0x49c/0x4fc) from [<80432d70>] (schedule_timeout+0x138/0x1c8)<br>[ 421.614901] [<80432d70>] (schedule_timeout+0x138/0x1c8) from [<8002d5a8>] (msleep_interruptible+0x34/0x44)<br>
[ 421.625106] [<8002d5a8>] (msleep_interruptible+0x34/0x44) from [<7f050da8>] (1154_pcm_trigger+0x74/0xf4 [kdrv_lg115x])<br>[ 421.636319] [<7f050da8>] (1154_pcm_trigger+0x74/0xf4 [kdrv_lg115x]) from [<8035bee8>] (soc_pcm_trigger+0x64/0xa0)<br>
[ 421.646761] [<8035bee8>] (soc_pcm_trigger+0x64/0xa0) from [<803339f0>] (snd_pcm_do_start+0x2c/0x30)<br>[ 421.655806] [<803339f0>] (snd_pcm_do_start+0x2c/0x30) from [<80333698>] (snd_pcm_action_single+0x38/0x78)<br>
[ 421.665372] [<80333698>] (snd_pcm_action_single+0x38/0x78) from [<80338bb0>] (snd_pcm_lib_write1+0x2c8/0x314)<br>[ 421.675284] [<80338bb0>] (snd_pcm_lib_write1+0x2c8/0x314) from [<80338ca4>] (snd_pcm_lib_write+0x50/0x5c)<br>
[ 421.684849] [<80338ca4>] (snd_pcm_lib_write+0x50/0x5c) from [<80335630>] (snd_pcm_playback_ioctl1+0x1a0/0x3e0)<br>[ 421.694853] [<80335630>] (snd_pcm_playback_ioctl1+0x1a0/0x3e0) from [<800bc9d0>] (vfs_ioctl+0x30/0x70)<br>
[ 421.704157] [<800bc9d0>] (vfs_ioctl+0x30/0x70) from [<800bcb70>] (do_vfs_ioctl+0x68/0x524)<br>[ 421.712418] [<800bcb70>] (do_vfs_ioctl+0x68/0x524) from [<800bd064>] (sys_ioctl+0x38/0x5c)<br>[ 421.720688] [<800bd064>] (sys_ioctl+0x38/0x5c) from [<800135c0>] (ret_fast_syscall+0x0/0x30)<br>
efault, new rate is 48000<br>I: [p[ 421.730381] audio ] 1154_pcm_trigger is completed(cmd:1).<br>ulseaudio] sink.c: Changed sampl[ 421.737677] audio ] 1154_dai_trigger is completed.<br>ing rate successfully<br>I: [pulseaudio] sink-input.c: Rate changed to 48000 Hz<br>
D: [pulseaudio] sink.c: Suspend cause of sink alsa_output.default is 0x0000, resuming<br>I: [alsa-sink] alsa-sink.c: Trying resume...<br>D: [alsa-sink] alsa-util.c: Maximum hw buffer size is 170 ms<br>D: [alsa-sink] alsa-util.c: Set buffer size first (to 8192 samples), period size second (to 1024 samples).<br>
D: [alsa-sink] alsa-sink.c: hwbuf_unused=0<br>D: [alsa-sink] alsa-sink.c: setting avail_min=1<br>I: [alsa-sink] alsa-sink.c: Resumed successfully...<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.default becomes idle, timeout in 5 seconds.<br>
I: [alsa-sink] alsa-sink.c: Starting playback.<br>I: [alsa-sink] pcm_hw.c: SNDRV_PCM_IOCTL_START failed (-77)<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.default becomes busy.<br>I: [pulseaudio] resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.<br>
D: [pulseaudio] resampler.c: Channel matrix:<br>D: [pulseaudio] resampler.c: I00 <br>D: [pulseaudio] resampler.c: +------<br>D: [pulseaudio] resampler.c: O00 | 1.000<br>D: [pulseaudio] resampler.c: O01 | 1.000<br>
I: [pulseaudio] remap.c: Using mono to stereo remapping<br>I: [pulseaudio] resampler.c: Using resampler 'copy'<br>I: [pulseaudio] resampler.c: Using s16le as working format.<br>D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0<br>
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0<br>I: [pulseaudio] sink-input.c: Created input 0 "/usr/share/sounds/alsa/Front_Center.wav" on alsa_output.default with sample spec s16le 1ch 48000Hz and channel map mono<br>
I: [pulseaudio] sink-input.c: media.format = "WAV (Microsoft)"<br>I: [pulseaudio] sink-input.c: <a href="http://application.name">application.name</a> = "paplay"<br>I: [pulseaudio] sink-input.c: <a href="http://media.name">media.name</a> = "/usr/share/sounds/alsa/Front_Center.wav"<br>
I: [pulseaudio] sink-input.c: native-protocol.peer = "UNIX socket client"<br>I: [pulseaudio] sink-input.c: native-protocol.version = "26"<br>I: [pulseaudio] sink-input.c: <a href="http://application.process.id">application.process.id</a> = "4735"<br>
I: [pulseaudio] sink-input.c: application.process.user = "root"<br>I: [pulseaudio] sink-input.c: application.process.host = "10.195.245.138"<br>I: [pulseaudio] sink-input.c: application.process.binary = "pacat"<br>
I: [pulseaudio] sink-input.c: application.language = "C"<br>I: [pulseaudio] sink-input.c: application.process.machine_id = "10.195.245.138"<br>I: [pulseaudio] sink-input.c: <a href="http://module-stream-restore.id">module-stream-restore.id</a> = "sink-input-by-application-name:paplay"<br>
I: [pulseaudio] protocol-native.c: Requested tlength=2000.00 ms, minreq=20.00 ms<br>D: [pulseaudio] protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.<br>D: [pulseaudio] protocol-native.c: Requested latency=1960.00 ms, Received latency=185.76 ms<br>
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=4194304, tlength=192000, base=2, prebuf=190082, minreq=1920 maxrewind=0<br>D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=4194304, tlength=192000, base=2, prebuf=190082, minreq=1920 maxrewind=0<br>
I: [pulseaudio] protocol-native.c: Final latency 2185.76 ms = 1960.00 ms + 2*20.00 ms + 185.76 ms<br>D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.<br>D: [alsa-sink] protocol-native.c: Requesting rewind due to end of underrun.<br>
D: [alsa-sink] sink-input.c: Do not do any rewind requests, seems to cause loss of audio samples<br>D: [alsa-sink] alsa-sink.c: Requested to rewind 32768 bytes.<br>D: [alsa-sink] alsa-sink.c: Limited to 30976 bytes.<br>D: [alsa-sink] alsa-sink.c: before: 7744<br>
D: [alsa-sink] alsa-sink.c: after: 7744<br>D: [alsa-sink] alsa-sink.c: Rewound 30976 bytes.<br>D: [alsa-sink] sink.c: Processing rewind...<br>D: [alsa-sink] source.c: Processing rewind...<br>D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.default becomes idle, timeout in 5 seconds.<br>
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.default becomes idle, timeout in 5 seconds.<br>D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.<br>I: [pulseaudio] sink-input.c: Freeing input 0 "/usr/share/sounds/alsa/Front_Center.wav"<br>
I: [pulseaudio] client.c: Freed 0 "paplay"<br>I: [pulseaudio] protocol-native.c: Connection died.<br><br></div></div>