* Buffer management in ALSA
[not found] <mailman.3514.1205879646.2095.alsa-devel@alsa-project.org>
@ 2008-03-19 3:06 ` Aggarwal, Anuj
2008-03-21 0:51 ` Giuliano Pochini
0 siblings, 1 reply; 2+ messages in thread
From: Aggarwal, Anuj @ 2008-03-19 3:06 UTC (permalink / raw)
To: alsa-devel
Hi All,
Can anyone throw some light on the buffer management part in the ALSA
framework? How and where it is implemented? And what is expected from
the driver, which is hooking its code to the framework?
Thanks in advance,
Anuj Aggarwal
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Buffer management in ALSA
2008-03-19 3:06 ` Buffer management in ALSA Aggarwal, Anuj
@ 2008-03-21 0:51 ` Giuliano Pochini
0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Pochini @ 2008-03-21 0:51 UTC (permalink / raw)
To: Aggarwal, Anuj; +Cc: alsa-devel
On Wed, 19 Mar 2008 08:36:06 +0530
"Aggarwal, Anuj" <anuj.aggarwal@ti.com> wrote:
> Hi All,
>
> Can anyone throw some light on the buffer management part in the ALSA
> framework? How and where it is implemented? And what is expected from
> the driver, which is hooking its code to the framework?
Since each card has different requirements the driver has to manage its
buffers. Usually the driver has just to set up the buffer and the
scatter-gather list and then ALSA accesses it with no other support from
the driver. The buffer is supposed di be a "ring", ie. when the card
reaches the end of the buffer, it restarts automatically from the
beginning. If the cards needs the CPU to copy or process the data (e.g. it
doesn't support DMA), then the driver has to provide a callback function
which will be called at the end of each period.
--
Giuliano.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-20 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.3514.1205879646.2095.alsa-devel@alsa-project.org>
2008-03-19 3:06 ` Buffer management in ALSA Aggarwal, Anuj
2008-03-21 0:51 ` Giuliano Pochini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox