[alsa-devel] Copy call back for capture substream

Clemens Ladisch clemens at ladisch.de
Fri Apr 29 17:22:14 CEST 2011

kshemanth.vasireddi at wipro.com wrote:
> Yes, I am not clear on what should be returned in pointer call back.
> From my understanding we have return available frames in buffer.

No, it has to return the position in the buffer after the most recently
captured sample.

> My ADC doesn't have buffer so, I maintain a ring buffer of 2 periods.
> ...
> 	.periods_min =		1,
> 	.periods_max =		2,

You need periods_min = 2.

> The information contained in this electronic message ...

This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public.  If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any confidentiality notices in
those e-mails.  Additionally, confidentiality notices in those e-mails
will incur legal processing fees of $42 per line; you have agreed to
this by reading this confidentiality notice.


More information about the Alsa-devel mailing list