Skip to contentSkip to conversation

ALSA: pcm: Revert capture stream behavior change in blocking mode

PATCH Ricardo Biehl Pasquali 2 participants 2 messages Feb 8, 2019

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Takashi Iwai

e.g. one thread goes to a write loop in blocking mode while another thread controls the start/stop of the stream manually.

You meant a read loop. Agreed.

What about adding a comment like:

/*
* If size < start_threshold, wait indefinitely. Another
* thread may start capture
*/

So no one will bring this idea again.

pasquali

#1 lore raw
Quoted 7 lines · Ricardo Biehl Pasquali
Quoted 2 lines · Takashi Iwai

e.g. one thread goes to a write loop in blocking mode while another thread controls the start/stop of the stream manually.

You meant a read loop. Agreed.

Quoted 8 lines

What about adding a comment like:

/*
* If size < start_threshold, wait indefinitely. Another
* thread may start capture
*/

So no one will bring this idea again.

Yes, more comment might be helpful.
Feel free to submit a patch to add that.

thanks,

Takashi