Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Trulan Martin <trulanm@gmail.com>
To: patch@alsa-project.org
Cc: alsa-devel@alsa-project.org, Trulan Martin <trulanm@gmail.com>
Subject: [PATCH - Yamaha THR10c 3/3] Yamaha THR10c USB quirk
Date: Sat, 20 Apr 2013 11:31:47 -0400	[thread overview]
Message-ID: <1366471907-16615-4-git-send-email-trulanm@gmail.com> (raw)
In-Reply-To: <1366471907-16615-1-git-send-email-trulanm@gmail.com>
In-Reply-To: [PATCH 0/3] Yamaha THR10 and related USB quirks

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

  parent reply	other threads:[~2013-04-20 15:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2013-04-24  6:06 ` [PATCH 0/3] Yamaha THR10 and related USB quirks Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366471907-16615-4-git-send-email-trulanm@gmail.com \
    --to=trulanm@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=patch@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox