]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Skip generic sync EP parse for secondary EP
authorTakashi Iwai <tiwai@suse.de>
Mon, 6 Jun 2022 16:09:09 +0000 (18:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:24 +0000 (18:36 +0200)
commit012ffca5ba8caf1458cb4195cdceca85d13f78df
treee26faa5ae57e0300568faaa050675584f811d77b
parent936f3a42980601c8585af6a153227fc0c6098a77
ALSA: usb-audio: Skip generic sync EP parse for secondary EP

commit 33f806b3e83debbfa36f46d25af1b10a5a2df01b upstream.

When ep_idx is already non-zero, it means usually a capture stream
that is set up explicity by a fixed-format quirk, and applying the
check for generic (non-implicit-fb) sync EPs might hit incorrectly,
resulting in a bogus sync endpoint for the capture stream.

This patch adds a check for the ep_idx and skip if it's a secondary
endpoint.  It's a part of the fixes for regressions on Saffire 6.

Fixes: 06c75d4c5373 ("ALSA: usb-audio: Add missing ep_idx in fixed EP quirks")
Reported-and-tested-by: André Kapelrud <a.kapelrud@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220606160910.6926-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/pcm.c