[alsa-devel] a xrun() query
11 May
2011
11 May
'11
2:10 p.m.
Hi,
I am getting glitches while playing audio with aplay. With little debugging I figured out that the state changes from RUNNING to XRUN at which time the trigger gets called. I also figured out that XRUN state is set in the function:
static int snd_pcm_update_hw_ptr_post(struct snd_pcm_substream *substream, struct snd_pcm_runtime *runtime) { <snip> } else { if (avail >= runtime->stop_threshold) { xrun(substream); return -EPIPE; } } </snip> }
I am not able to find out why the condition (avail > runtime->stop_threshold) becomes true. Can the experts here tell during what use cases/scenarios this happens?
Thanks, Santosh
--
http://fossix.org, http://dot.slashb.in
Luck is a matter of preparation meeting the opportunity.
-- Anon
4974
Age (days ago)
4974
Last active (days ago)
0 comments
1 participants
participants (1)
-
Santosh Sivaraj