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)
commit62ba568f7aef4beb0eda945a2b2a91b7a2b8f215
tree795a9cda7d9fa3cf07f8c3a7d7a61dd53496649b
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
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