On Sun, 30 Oct 2022 23:50:02 +0100, Ash Logan wrote:
Hello!
I have an M-Audio Micro USB soundcard, which works great, though I have to manually add the USB IDs to snd-usb-audio when I want to use it.
echo 0763 201a > /sys/module/snd_usb_audio/drivers/usb:snd-usb-audio/new_id
I was hoping you could add the IDs somewhere in the driver to enable it by default, since the output, input and even bass boost "feature" seem to work just fine.
Below is the lsusb information for this device.
Could you try the patch below?
thanks,
Takashi
-- 8< -- From: Takashi Iwai tiwai@suse.de Subject: [PATCH] ALSA: usb-audio: Add quirk entry for M-Audio Micro
M-Audio Micro (0762:201a) defines the descriptor as vendor-specific, while the content seems class-compliant. Just overriding the probe makes the device working.
Reported-by: Ash Logan ash@heyquark.com Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/7ecd4417-d860-4773-c1c1-b07433342390@heyquark.com Signed-off-by: Takashi Iwai tiwai@suse.de --- sound/usb/quirks-table.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 06dfdd45cff8..874fcf245747 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -2049,6 +2049,10 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, +{ + /* M-Audio Micro */ + USB_DEVICE_VENDOR_SPEC(0x0763, 0x201a), +}, { USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030), .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {