]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Don't start stream for capture at prepare
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 Nov 2021 10:26:29 +0000 (11:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Nov 2021 10:27:50 +0000 (11:27 +0100)
commit6b3b5d90e8d8c8c6a92bc829512a11e81342c4c7
tree09015cc0be774b0b4dd8b9744aa6582ceb42b04c
parent7ff65ffab6502801f7f1c527c77cf8e98b9f7244
ALSA: usb-audio: Don't start stream for capture at prepare

The recent change made mistakenly the stream for capture started at
prepare stage.  Add the stream direction check to avoid it.

Fixes: bcbdf4316da1 ("ALSA: usb-audio: Rename early_playback_start flag with lowlatency_playback")
Link: https://lore.kernel.org/r/20211119102629.7476-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c