[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cdi-devel] [PATCH 1/2] CDI.audio



On Tue, Dec 21, 2010 at 04:31:55PM +0100, max@xxxxxxxxxx wrote:
> From: Max Reitz <max@xxxxxxxxxx>
> 
> This adds the CDI.audio header for sound I/O drivers.
> 
> Signed-off-by: Max Reitz <max@xxxxxxxxxx>


> + * \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@xxxxxxxxxx>