alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* a xrun() query
@ 2011-05-11 12:10 Santosh Sivaraj
  0 siblings, 0 replies; only message in thread
From: Santosh Sivaraj @ 2011-05-11 12:10 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-11 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 12:10 a xrun() query Santosh Sivaraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).