[alsa-devel] [PATCH 0/3] Yamaha THR10 and related USB quirks
The following patches add USB quirks for several Yamaha amps. Please CC me as I am not subscribed to the mailing list.
This patch adds a USB quirk for the Yamaha THR10 amp.
Signed-off-by: Trulan Martin trulanm@gmail.com
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 64d25a7..741680a 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -353,6 +353,32 @@ YAMAHA_DEVICE(0x105d, NULL), } } }, +{ + USB_DEVICE(0x0499, 0x1507), + .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { + /* .vendor_name = "Yamaha", */ + /* .product_name = "THR10", */ + .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),
This patch adds a USB quirk for the Yamaha THR5a amp.
Signed-off-by: Trulan Martin trulanm@gmail.com
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 741680a..a16cb45 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -379,6 +379,35 @@ YAMAHA_DEVICE(0x105d, NULL), } } }, +/* + * Yamaha THR5a + */ +{ + USB_DEVICE(0x0499, 0x150a), + .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { + /* .vendor_name = "Yamaha", */ + /* .product_name = "THR5a", */ + .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),
This patch adds a USB quirk for the Yamaha THR10c amp.
Signed-off-by: Trulan Martin trulanm@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),
At Sat, 20 Apr 2013 11:31:44 -0400, Trulan Martin wrote:
The following patches add USB quirks for several Yamaha amps. Please CC me as I am not subscribed to the mailing list.
The patches look OK but could you fix trivial coding style issues (use tabs, etc) scripts/checkpatch.pl complains, and resubmit the patches? Some warnings around the cast may remain, but space issues can be fixed trivially.
thanks,
Takashi
participants (2)
-
Takashi Iwai
-
Trulan Martin