]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:37 +0000 (09:04 +0100)
commit80cbbeab4ec2e0cb257ec0fb73292a8bf15eb016
treed29b8a62d1b6e49e0500ffbfc520d1d6078cea8c
parentddfc66680dcf8ac99df6ddfc01df2f2335ed3c6e
ALSA: usb-audio: Don't start stream for capture at prepare

commit 50d06d1d4490db2f2637419f5ca77358cad3187c upstream.

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

Fixes: 0b78bb8fcbed ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/pcm.c