All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaroslav Kysela <perex@perex.cz>
To: "Harsha, Priya" <priya.harsha@intel.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: need help understanding overrun/underrun
Date: Fri, 20 Aug 2010 11:49:32 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1008201146200.10278@eeebox2.perex-int.cz> (raw)
In-Reply-To: <98769532B4BB14429434178695419EAE0523526CDA@bgsmsx501.gar.corp.intel.com>

On Fri, 20 Aug 2010, Harsha, Priya wrote:

> Hi
>
> I had modified the arecord application to call snd_pcm_writei() with the 
> output of snd_pcm_readi(). Basically a loopback.
>
> When we execute, I see the calls return EPIPE (lot of overruns and a few 
> underruns). Can anyone help me understand why there are underrun/overrun 
> being printed? Is it because of the serial call of reads and writes? Is 
> there any issue with the driver I am using? Can you suggest some ways to 
> overcome these messages?

You must queue playback with more samples at the beginning (to 
setup the output latency) otherwise you get the output underrun 
immediatelly. See alsa-lib/test/latency.c for an example.

 					Jaroslav

-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

  reply	other threads:[~2010-08-20  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20  9:44 need help understanding overrun/underrun Harsha, Priya
2010-08-20  9:49 ` Jaroslav Kysela [this message]
2010-08-24 10:53   ` Harsha, Priya
2010-08-24 12:12     ` Jaroslav Kysela

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=alpine.LNX.2.00.1008201146200.10278@eeebox2.perex-int.cz \
    --to=perex@perex.cz \
    --cc=alsa-devel@alsa-project.org \
    --cc=priya.harsha@intel.com \
    /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.