All of lore.kernel.org
 help / color / mirror / Atom feed
* Buffer management questions
@ 2006-03-13 19:24 Carlos Munoz
  2006-03-13 19:25 ` Adrian McMenamin
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos Munoz @ 2006-03-13 19:24 UTC (permalink / raw)
  To: alsa-devel

Hi all,

I'm writing my first alsa driver and I have the following questions 
regarding buffer management (I've read all the documents in the alsa 
site but none answered my questions):

How is the sound data replenished in the dma buffer for playback ? I 
call snd_pcm_lib_malloc_pages() to allocate the buffer. I assume when 
the trigger function is called, there is valid data in the buffer. 
However, once the driver sends all the data in the buffer, how does it 
get more data ? Should I assume the data is there and just wrap around 
the buffer ?

I'm used to the write()/read() function calls to pass data in/out of 
drivers, but don't yet understand how data is passed in the alsa model. 
Any help is appreciated.

Thanks,


Carlos


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

end of thread, other threads:[~2006-03-13 20:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-13 19:24 Buffer management questions Carlos Munoz
2006-03-13 19:25 ` Adrian McMenamin
2006-03-13 20:03   ` Carlos Munoz
2006-03-13 20:07     ` Adrian McMenamin
2006-03-13 20:09       ` Adrian McMenamin
2006-03-13 20:10     ` Takashi Iwai

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.