Skip to content

Commit 83de8f8

Browse files
committed
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: 9c9a3b9 ("ALSA: usb-audio: Rename early_playback_start flag with lowlatency_playback") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent eee5d6f commit 83de8f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/usb/pcm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
640640
runtime->delay = 0;
641641

642642
subs->lowlatency_playback = lowlatency_playback_available(runtime, subs);
643-
if (!subs->lowlatency_playback)
643+
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
644+
!subs->lowlatency_playback)
644645
ret = start_endpoints(subs);
645646

646647
unlock:

0 commit comments

Comments
 (0)