ALSA: pcm: Comment why read blocks when PCM is not running
authorRicardo Biehl Pasquali <pasqualirb@gmail.com>
Wed, 13 Feb 2019 02:57:51 +0000 (00:57 -0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Feb 2019 07:01:05 +0000 (08:01 +0100)
commit932a81519572156a88dbc2349d183c603446f9c4
tree0e88452ce44a24650e853d917eb17f7c6ae77585
parent5a23f385686fe0e9cd8e19cb09dff9a3b68082de
ALSA: pcm: Comment why read blocks when PCM is not running

This avoids bringing back the problem introduced by
62ba568f7aef ("ALSA: pcm: Return 0 when size <
start_threshold in capture") and fixed in 00a399cad1a0
("ALSA: pcm: Revert capture stream behavior change in
blocking mode"), which prevented the user from starting
capture from another thread.

Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c