ALSA: usb-audio: Properly match with audio interface class
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2020 08:21:40 +0000 (10:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Aug 2020 09:00:47 +0000 (11:00 +0200)
commit51ab5d77dcb8a50283c0eded08c67a6d275cb910
treee0c5bd5eb92d116330b098d417c2e0a355cab951
parentfa10635fca359f047df6a18b3befd2f1e7304e1a
ALSA: usb-audio: Properly match with audio interface class

There are a few entries in the quirk table that set the device ID with
USB_DEVICE() macro while having an extra bInterfaceClass field.  But
bInterfaceClass field is never checked unless the proper match_flags
is set, so those may match incorrectly with all interfaces.

Introduce another macro to match with the vid/pid pair and the audio
class interface, and apply it to such entries, so that they can match
properly.

Link: https://lore.kernel.org/r/20200817082140.20232-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks-table.h