[PATCH] pcm: rate: fix last_commit_ptr boundary wrapping

Jaroslav Kysela perex at perex.cz
Fri Dec 30 20:17:12 CET 2022


On 30. 12. 22 17:48, Alan Young wrote:
> Wrap last_commit_ptr using boundary. Was just wrapped to 0, which is
> correct only if the buffer size, and hence the boundary, is an integer
> multiple of the period size.
> 
> Signed-off-by: Alan Young <consult.awy at gmail.com>
> Fixes: 467d69c5bc1 ("Fix CPU hog with combination of rate plugin")
> Fixes: 29041c52207 ("fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode")

Thanks for this fix. Applied to the alsa-lib's repository.

					Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list