]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Aug 2018 05:27:55 +0000 (07:27 +0200)
commit8fe7415f7a4172c98356b2f8d1a5025bea98cf62
tree795a9cda7d9fa3cf07f8c3a7d7a61dd53496649b
parent0ff97265403d59a684be8666710156706ccfd8fa
ALSA: pcm: Return 0 when size < start_threshold in capture

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>
sound/core/pcm_lib.c