]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: hw: fix the silence size setup in drain
authorJaroslav Kysela <perex@perex.cz>
Wed, 3 May 2023 20:24:47 +0000 (22:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 3 May 2023 20:27:40 +0000 (22:27 +0200)
commit58077e2f0d896ff848f3551518b1d9fc6c97d695
tree4fce978a9115a825dc972f70b3c076105a84fa17
parent798f387fe9e5b5ddd705229ec7fff14f54c4e24e
pcm: hw: fix the silence size setup in drain

The silence size cannot exceed the silence threshold. Move the check
from the manual condition to the common code. This may happen for
small ring buffers (where the 1/10th second is too large).

Suggested-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_hw.c