All of lore.kernel.org
 help / color / mirror / Atom feed
* Handle large period size end-of-stream situation
@ 2013-04-03 15:07 Patrick Lai
  2013-04-03 16:49 ` Clemens Ladisch
  2013-04-04  5:35 ` Gabriel M. Beddingfield
  0 siblings, 2 replies; 7+ messages in thread
From: Patrick Lai @ 2013-04-03 15:07 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am dealing with a use case requiring passing large buffer down to the
DSP. Application in the user-space passes PCM through mmap interface.
Per my understanding, ALSA is designed to work with DMA. Data is
transferred in chunk equal to period size. At the end of playback,
there may not be enough audio data left in the music stream to fill
entire period. If remaining audio data only takes up very small chunk
of period, playback takes longer to stop. Given that period size I have
to deal with is quite large, this problem is observed easily. If my
understanding is correct, what is the standard/recommended way of
handling end of stream case?

Thanks
Patrick

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

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

end of thread, other threads:[~2013-04-04 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 15:07 Handle large period size end-of-stream situation Patrick Lai
2013-04-03 16:49 ` Clemens Ladisch
2013-04-03 22:22   ` Patrick Lai
2013-04-04  5:35 ` Gabriel M. Beddingfield
2013-04-04  9:27   ` Clemens Ladisch
2013-04-04 15:09     ` Gabriel M. Beddingfield
2013-04-04 17:08       ` 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.