diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-04-08 10:56:56 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-04-09 10:57:30 +0300 |
commit | d763145312582c08c4e9ed99d61276cde8488256 (patch) | |
tree | 7922baf73f4c8fe5dc7b0799b8f805bec5a9e1fb /sound/usb/usbaudio.h | |
parent | 473d5ae82d73c3b21160b725af0e247fa94d7832 (diff) | |
download | linux-d763145312582c08c4e9ed99d61276cde8488256.tar.xz |
ALSA: usb-audio: Skip probe of UA-101 devices
UA-101 device and co are supported by another driver, snd-ua101, but
the USB audio class driver (snd-usb-audio) catches all and this
resulted in the lack of functionality like missing MIDI devices.
This patch introduces a sort of deny-listing for those devices to just
return -ENODEV at probe in snd-usb-audio driver, so that it falls back
to the probe by snd-ua101.
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212477
Link: https://lore.kernel.org/r/20210408075656.30184-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/usbaudio.h')
-rw-r--r-- | sound/usb/usbaudio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index 8794c8658ab9..a536ee33d36e 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h @@ -77,6 +77,7 @@ struct snd_usb_audio { */ /* special values for .ifnum */ +#define QUIRK_NODEV_INTERFACE -3 /* return -ENODEV */ #define QUIRK_NO_INTERFACE -2 #define QUIRK_ANY_INTERFACE -1 |