Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Yamaha THR10 and related USB quirks
@ 2013-04-20 15:31 Trulan Martin
  2013-04-20 15:31 ` [PATCH 1/3] Yamaha THR10 USB quirk Trulan Martin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Trulan Martin @ 2013-04-20 15:31 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel

The following patches add USB quirks for several Yamaha amps.  Please CC me as I am not subscribed to the mailing list.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] Yamaha THR10 USB quirk
  2013-04-20 15:31 [PATCH 0/3] Yamaha THR10 and related USB quirks Trulan Martin
@ 2013-04-20 15:31 ` Trulan Martin
  2013-04-20 15:31 ` [PATCH - Yamaha THR5a 2/3] Yamaha THR5a " Trulan Martin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Trulan Martin @ 2013-04-20 15:31 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel, Trulan Martin

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),
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH - Yamaha THR5a 2/3] Yamaha THR5a USB quirk
  2013-04-20 15:31 [PATCH 0/3] Yamaha THR10 and related USB quirks Trulan Martin
  2013-04-20 15:31 ` [PATCH 1/3] Yamaha THR10 USB quirk Trulan Martin
@ 2013-04-20 15:31 ` Trulan Martin
  2013-04-20 15:31 ` [PATCH - Yamaha THR10c 3/3] Yamaha THR10c " Trulan Martin
  2013-04-24  6:06 ` [PATCH 0/3] Yamaha THR10 and related USB quirks Takashi Iwai
  3 siblings, 0 replies; 5+ messages in thread
From: Trulan Martin @ 2013-04-20 15:31 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel, Trulan Martin

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),
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH - Yamaha THR10c 3/3] Yamaha THR10c USB quirk
  2013-04-20 15:31 [PATCH 0/3] Yamaha THR10 and related USB quirks Trulan Martin
  2013-04-20 15:31 ` [PATCH 1/3] Yamaha THR10 USB quirk Trulan Martin
  2013-04-20 15:31 ` [PATCH - Yamaha THR5a 2/3] Yamaha THR5a " Trulan Martin
@ 2013-04-20 15:31 ` Trulan Martin
  2013-04-24  6:06 ` [PATCH 0/3] Yamaha THR10 and related USB quirks Takashi Iwai
  3 siblings, 0 replies; 5+ messages in thread
From: Trulan Martin @ 2013-04-20 15:31 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel, Trulan Martin

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),
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] Yamaha THR10 and related USB quirks
  2013-04-20 15:31 [PATCH 0/3] Yamaha THR10 and related USB quirks Trulan Martin
                   ` (2 preceding siblings ...)
  2013-04-20 15:31 ` [PATCH - Yamaha THR10c 3/3] Yamaha THR10c " Trulan Martin
@ 2013-04-24  6:06 ` Takashi Iwai
  3 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2013-04-24  6:06 UTC (permalink / raw)
  To: Trulan Martin; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-24  6:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-20 15:31 [PATCH 0/3] Yamaha THR10 and related USB quirks Trulan Martin
2013-04-20 15:31 ` [PATCH 1/3] Yamaha THR10 USB quirk Trulan Martin
2013-04-20 15:31 ` [PATCH - Yamaha THR5a 2/3] Yamaha THR5a " Trulan Martin
2013-04-20 15:31 ` [PATCH - Yamaha THR10c 3/3] Yamaha THR10c " Trulan Martin
2013-04-24  6:06 ` [PATCH 0/3] Yamaha THR10 and related USB quirks Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox