[alsa-devel] infinity wait in snd_pcm_wait_nocheck

김은희 exeriment at gmail.com
Fri Jun 27 04:40:42 CEST 2014


My system plays and captures short streams using by dmix device after boot.
But that system sometimes go infinity wait state when stream plays.
I use alsa-lib-1.0.24.1. but v1.0.27 and 1.0.28 also occur same err.
So I have below questions.
- What event that poll (in snd_pcm_wait_nocheck) wait?
I know snd_pcm_wait function is for wait PCM ready. But I want to know
details.
- How can I avoid that problem?
I changed timeout(in snd_pcm_wait) from -1 to 100. But system go infinity
loop.

And I attach status and params when this problem occurred.
- status
state: RUNNING
owner_pid   : 1213
trigger_time: 5.285075511
tstamp      : 5.333190511
delay       : -832
avail       : 17216
avail_max   : 17216
-----
hw_ptr      : 832
appl_ptr    : 0
- hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 1024
buffer_size: 16384
- sw_params
tstamp_mode: ENABLE
period_step: 1
avail_min: 1024
start_threshold: 1
stop_threshold: 1073741824
silence_threshold: 0
silence_size: 1073741824
boundary: 1073741824

Please reply about it.
Thanks.

-----
Eunhee Kim


More information about the Alsa-devel mailing list