diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-07-29 10:38:48 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-08-02 10:05:54 +0300 |
commit | ce47d47e5cc8768ba6db4a5a6fb166b176fe12e6 (patch) | |
tree | 31ac5e6ebf3f7d8151231b0c99d744189e526ba8 /sound/usb/usbaudio.h | |
parent | 4d4dee0aefec36e6d1568e844a9e75a2e165cb93 (diff) | |
download | linux-ce47d47e5cc8768ba6db4a5a6fb166b176fe12e6.tar.xz |
ALSA: usb-audio: Move media-controller API quirk into quirk_flags
The devices that can have media-controller API entries are currently
specified via tables in quirks-table.h, as a part of descriptor
override. This can fit better to the new quirk_flags, as we just need
a matching with the given ID and create the MC entries accordingly.
Link: https://lore.kernel.org/r/20210729073855.19043-3-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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index 37195ac26ac9..ece244637798 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h @@ -116,7 +116,6 @@ struct snd_usb_audio_quirk { const char *product_name; int16_t ifnum; uint16_t type; - bool shares_media_device; const void *data; }; @@ -136,8 +135,11 @@ extern bool snd_usb_skip_validation; * QUIRK_FLAG_GET_SAMPLE_RATE: * Skip reading sample rate for devices, as some devices behave inconsistently * or return error + * QUIRK_FLAG_SHARE_MEDIA_DEVICE: + * Create Media Controller API entries */ #define QUIRK_FLAG_GET_SAMPLE_RATE (1U << 0) +#define QUIRK_FLAG_SHARE_MEDIA_DEVICE (1U << 1) #endif /* __USBAUDIO_H */ |