All of lore.kernel.org
 help / color / mirror / Atom feed
* Buffer underrun in a not empty playback buffer
@ 2012-07-25  6:33 Christian Gruber
  2012-07-25  7:01 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Gruber @ 2012-07-25  6:33 UTC (permalink / raw)
  To: alsa-devel

I had a problem with an ALSA-driver, which causes an underrun in the playback stream 
before the playback buffer was completely empty (snd_pcm_avail() < playback buffer size). 
The driver developer told me, that this is correct, since for correct DMA transfer a 
minimum buffer filling level is required.

Is this an allowed ALSA-driver behaviour or does the ALSA-driver developer has to hide all 
DMA internals to the application developer so that an underrun just occurs, when the 
playback buffer is empty? If yes, how can I get to know about the required minimum buffer 
filling level before an underrun occurs?

Regards,
Christian

-- 
---------------------------------------------------------------
Dipl.-Ing. Christian Gruber
voiceINTERconnect GmbH
Ammonstraße 35
01067 Dresden
Germany

Tel.:   +49 (0) 351 - 407 526 67
Fax.:   +49 (0) 351 - 407 526 55
---------------------------------------------------------------
www.voiceinterconnect.de
... smart signal processing for electronic devices

Geschäftsführung:               Eingetragen im Handelsregister:
Dr.-Ing. Diane Hirschfeld,      Amtsgericht Dresden HRB 19466
Ludwig Linkenheil

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-25 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25  6:33 Buffer underrun in a not empty playback buffer Christian Gruber
2012-07-25  7:01 ` Clemens Ladisch
2012-07-25 10:13   ` Christian Gruber
2012-07-25 10:41     ` Clemens Ladisch

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.