[cdi-devel] [PATCH 1/2] CDI.audio
Kevin Wolf ·
On Tue, Dec 21, 2010 at 04:31:55PM +0100, max at tyndur.org wrote: > From: Max Reitz <max at tyndur.org> > > This adds the CDI.audio header for sound I/O drivers. > > Signed-off-by: Max Reitz <max at tyndur.org> > + * \english > + * > + * Is called by a driver when having completed a buffer (i.e., completely played > + * or recorded). May be called by an ISR. > + * > + * @param stream Stream being concerned. > + * @param buffer Index of the completed buffer. > + * > + * \endenglish > + */ > +void cdi_audio_buffer_completed(struct cdi_audio_stream* stream, size_t buffer); As discussed on IRC, buffer is redundant here because neither sound cards nor my ears support out-of-order execution. ;-) Anyway, I've written a driver for the interface and it seems to work reasonably well, so: Acked-by: Kevin Wolf <kevin at tyndur.org>