This is a note to let you know that I've just added the patch titled ALSA: usb-audio: Don't start stream for capture at prepare to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: alsa-usb-audio-don-t-start-stream-for-capture-at-prepare.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 83de8f83816e8e15227dac985163e3d433a2bf9d Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@xxxxxxx> Date: Fri, 19 Nov 2021 11:26:29 +0100 Subject: ALSA: usb-audio: Don't start stream for capture at prepare From: Takashi Iwai <tiwai@xxxxxxx> commit 83de8f83816e8e15227dac985163e3d433a2bf9d upstream. The recent change made mistakenly the stream for capture started at prepare stage. Add the stream direction check to avoid it. Fixes: 9c9a3b9da891 ("ALSA: usb-audio: Rename early_playback_start flag with lowlatency_playback") Link: https://lore.kernel.org/r/20211119102629.7476-1-tiwai@xxxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/usb/pcm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -640,7 +640,8 @@ static int snd_usb_pcm_prepare(struct sn runtime->delay = 0; subs->lowlatency_playback = lowlatency_playback_available(runtime, subs); - if (!subs->lowlatency_playback) + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && + !subs->lowlatency_playback) ret = start_endpoints(subs); unlock: Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-5.15/alsa-usb-audio-rename-early_playback_start-flag-with-lowlatency_playback.patch queue-5.15/alsa-usb-audio-disable-low-latency-playback-for-free-wheel-mode.patch queue-5.15/alsa-usb-audio-avoid-killing-in-flight-urbs-during-draining.patch queue-5.15/alsa-usb-audio-less-restriction-for-low-latency-playback-mode.patch queue-5.15/alsa-usb-audio-improved-lowlatency-playback-support.patch queue-5.15/alsa-usb-audio-check-available-frames-for-the-next-packet-size.patch queue-5.15/alsa-usb-audio-switch-back-to-non-latency-mode-at-a-later-point.patch queue-5.15/alsa-usb-audio-fix-packet-size-calculation-regression.patch queue-5.15/alsa-usb-audio-don-t-start-stream-for-capture-at-prepare.patch queue-5.15/alsa-usb-audio-disable-low-latency-mode-for-implicit-feedback-sync.patch queue-5.15/alsa-usb-audio-add-spinlock-to-stop_urbs.patch queue-5.15/alsa-usb-audio-restrict-rates-for-the-shared-clocks.patch