[alsa-devel] [PATCH] crec: Always read whole number of fragments when length limit specified

Vinod Koul vinod.koul at intel.com
Mon Dec 7 05:56:21 CET 2015


On Thu, Dec 03, 2015 at 11:25:35AM +0000, Richard Fitzgerald wrote:
> This patch removes the lines that adjusted the read size to exactly
> read to the end of the calculated length in bytes. Doing this could
> lead to invalid fragment sizes being requested which may then cause
> a read error on some codecs.
> 
> Instead we keep reading whole fragments until we have >= length bytes
> of data captured.

Applied, thanks

-- 
~Vinod


More information about the Alsa-devel mailing list