[alsa-devel] [PATCH - Yamaha THR10c 3/3] Yamaha THR10c USB quirk

Trulan Martin trulanm at gmail.com
Sat Apr 20 17:31:47 CEST 2013


This patch adds a USB quirk for the Yamaha THR10c amp.

Signed-off-by: Trulan Martin <trulanm at gmail.com>

diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index a16cb45..ca50477 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -408,6 +408,35 @@ YAMAHA_DEVICE(0x105d, NULL),
       }
    }
 },
+/*
+ * Yamaha THR10c
+ */
+{
+   USB_DEVICE(0x0499, 0x150c),
+   .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
+      /* .vendor_name = "Yamaha", */
+      /* .product_name = "THR10c", */
+      .ifnum = QUIRK_ANY_INTERFACE,
+      .type = QUIRK_COMPOSITE,
+      .data = (const struct snd_usb_audio_quirk[]) {
+         {
+            .ifnum = 1,
+            .type = QUIRK_AUDIO_STANDARD_INTERFACE
+         },
+         {
+            .ifnum = 2,
+            .type = QUIRK_AUDIO_STANDARD_INTERFACE
+         },
+         {
+            .ifnum = 3,
+            .type = QUIRK_MIDI_YAMAHA
+         },
+         {
+            .ifnum = -1
+         }
+      }
+   }
+},
 YAMAHA_DEVICE(0x2000, "DGP-7"),
 YAMAHA_DEVICE(0x2001, "DGP-5"),
 YAMAHA_DEVICE(0x2002, NULL),
-- 
1.7.10.4



More information about the Alsa-devel mailing list