Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eduard Gilmutdinov <edgilmutdinov@gmail.com>
To: alsa-devel@alsa-project.org
Cc: mark@xwax.org, daniel@zonque.org
Subject: [RFC PATCH 2/2] Add support for capture through external audio card Focusrite Saffire 6 USB
Date: Tue, 13 May 2014 10:08:51 +0600	[thread overview]
Message-ID: <1399954131-26516-3-git-send-email-edgilmutdinov@gmail.com> (raw)
In-Reply-To: <1399954131-26516-1-git-send-email-edgilmutdinov@gmail.com>

Signed-off-by: Eduard Gilmutdinov <edgilmutdinov@gmail.com>
---
 sound/usb/quirks-table.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index f652b10..a61e57d 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -2539,6 +2539,30 @@ YAMAHA_DEVICE(0x7010, "UB99"),
 					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
 					.endpoint = 0x01,
 					.ep_attr = USB_ENDPOINT_XFER_ISOC,
+					.maxpacksize = 0x024c,
+					.rates = SNDRV_PCM_RATE_44100 |
+						 SNDRV_PCM_RATE_48000,
+					.rate_min = 44100,
+					.rate_max = 48000,
+					.nr_rates = 2,
+					.rate_table = (unsigned int[]) {
+						44100, 48000
+					}
+				}
+			},
+			{
+				.ifnum = 0,
+				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
+				.data = &(const struct audioformat) {
+					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
+					.channels = 2,
+					.iface = 0,
+					.altsetting = 1,
+					.altset_idx = 1,
+					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
+					.endpoint = 0x82,
+					.ep_attr = USB_ENDPOINT_XFER_ISOC,
+					.maxpacksize = 0x0126,
 					.rates = SNDRV_PCM_RATE_44100 |
 						 SNDRV_PCM_RATE_48000,
 					.rate_min = 44100,
-- 
1.9.2

      parent reply	other threads:[~2014-05-13  4:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13  4:08 [RFC PATCH 0/2] Add support for audio cards with multiple endpoints on the one interface Eduard Gilmutdinov
2014-05-13  4:08 ` [RFC PATCH 1/2] Adds a check of the state of endpoints on the interface before invoking the usb_set_interface Eduard Gilmutdinov
2014-05-13  4:08 ` Eduard Gilmutdinov [this message]

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=1399954131-26516-3-git-send-email-edgilmutdinov@gmail.com \
    --to=edgilmutdinov@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=daniel@zonque.org \
    --cc=mark@xwax.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