All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: How does ALSA detect underrun in OSS emulation?
Date: Mon, 25 Feb 2008 09:38:38 -0600	[thread overview]
Message-ID: <47C2E0FE.2020207@freescale.com> (raw)
In-Reply-To: <s5hhcfxt5ih.wl%tiwai@suse.de>

Takashi Iwai wrote:

> It's just as same as on ALSA native API, checks the validity of the
> current position reported by pointer callback in
> snd_pcm_period_elapsed().

Are you talking about this code in snd_pcm_update_hw_ptr_pos?

	pos = substream->ops->pointer(substream);
	if (pos == SNDRV_PCM_POS_XRUN)
		return pos; /* XRUN */

What if my 'pointer' function never returns SNDRV_PCM_POS_XRUN?  How else can I 
get an underrun detected?

-- 
Timur Tabi
Linux kernel developer at Freescale

  reply	other threads:[~2008-02-25 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 15:22 How does ALSA detect underrun in OSS emulation? Timur Tabi
2008-02-25 15:33 ` Takashi Iwai
2008-02-25 15:38   ` Timur Tabi [this message]
2008-02-25 15:45     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47C2E0FE.2020207@freescale.com \
    --to=timur@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.