]> 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)
commit12136820dc916f95ae5e44ae2ac6ab27fd0e2ef6
tree795a9cda7d9fa3cf07f8c3a7d7a61dd53496649b
parentf030a7bb7b1f7de16c1c716a587185e209e25800
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