[alsa-devel] ALSA calling pcm_pointer excessively?

Russell King - ARM Linux linux at arm.linux.org.uk
Fri May 11 01:09:18 CEST 2012


On Thu, May 10, 2012 at 08:43:40PM +0200, Clemens Ladisch wrote:
> Russell King - ARM Linux wrote:
> > On Thu, May 10, 2012 at 07:13:59PM +0200, Clemens Ladisch wrote:
> >> I wrote:
> >>> This (untested) patch tries to avoid too many busy looping.
> >>
> >> Oops, off-by-one error (avail == avail_min should not wait).
> >
> > This is better - it now sits around 2-14% system time.  I guess the
> > five loops is rather arbitary?
> 
> Yes.  The minimum loop limit is two (to handle wraparound at the end of
> the buffer); more than that probably does not actually make sense.

Ok, I'll test with two there tomorrow.


More information about the Alsa-devel mailing list