]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: pcm: Return 0 when size < start_threshold in capture
authorRicardo Biehl Pasquali <pasqualirb@gmail.com>
Sat, 25 Aug 2018 19:53:23 +0000 (16:53 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Nov 2024 13:58:07 +0000 (14:58 +0100)
commitd4fe52d4912d5f2fce0d97b5b79eb7c65a073416
treee7bc0ba1cd48b3820aabf5762eba391bd9bc8417
parent38cbf13b2e7a31362babe411f7c2c3c52cd2734b
ALSA: pcm: Return 0 when size < start_threshold in capture

[ Upstream commit 62ba568f7aef4beb0eda945a2b2a91b7a2b8f215 ]

In __snd_pcm_lib_xfer(), when capture, if state is PREPARED
and size is less than start_threshold nothing can be done.
As there is no error, 0 is returned.

Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: 4413665dd6c5 ("ALSA: usb-audio: Add quirks for Dell WD19 dock")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/pcm_lib.c