From patchwork Tue May 13 04:08:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduard Gilmutdinov X-Patchwork-Id: 4162251 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F1459F1C0 for ; Tue, 13 May 2014 04:10:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EFB020320 for ; Tue, 13 May 2014 04:10:41 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5D0E1202FF for ; Tue, 13 May 2014 04:10:40 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C9077265470; Tue, 13 May 2014 06:10:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id ABA7E265329; Tue, 13 May 2014 06:09:24 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 53A3D265329; Tue, 13 May 2014 06:09:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by alsa0.perex.cz (Postfix) with ESMTP id 53FCC2652EE for ; Tue, 13 May 2014 06:09:11 +0200 (CEST) Received: by mail-la0-f42.google.com with SMTP id el20so2617382lab.1 for ; Mon, 12 May 2014 21:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/un/BZpHX9F8cEGzzgecXm1wBJrdbMkWXbg8mbtVf+Q=; b=lo0Emdo2bk30wGcs2t/EdDZLl3bR55spxzejrDjlWXj9f7N91RgmNrXlvEcgT/n1YC 9C1W1sBeqvJmPD7WRI/eOiIfTRN9ozIObZuG/zH2XBW/iHwa+lhWB+seWkE6YmAm8SEE znh4BgwnvYpO19wKyw7WGI6Isj8f5z64wW9D4SiXEOXJPWwXl0iO/k/pFrJKhLHeZ0od CxQcjMs2iTi2ckkyhV0zYpJor8uFtVgXbPvl9b7CdVxsVCLlShlZpradlgP9h9o9rTzl kX5NURaqO3+EA0tK5wFUsO22e1pE6R/W8HrObnrlXVaetfqXJd1Mw2EBudPqm8P20H6P VAZw== X-Received: by 10.152.170.169 with SMTP id an9mr16285257lac.14.1399954150859; Mon, 12 May 2014 21:09:10 -0700 (PDT) Received: from localhost.localdomain ([46.191.160.54]) by mx.google.com with ESMTPSA id n3sm2930726lan.3.2014.05.12.21.09.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 May 2014 21:09:10 -0700 (PDT) From: Eduard Gilmutdinov To: alsa-devel@alsa-project.org Date: Tue, 13 May 2014 10:08:51 +0600 Message-Id: <1399954131-26516-3-git-send-email-edgilmutdinov@gmail.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1399954131-26516-1-git-send-email-edgilmutdinov@gmail.com> References: <1399954131-26516-1-git-send-email-edgilmutdinov@gmail.com> Cc: mark@xwax.org, daniel@zonque.org Subject: [alsa-devel] [RFC PATCH 2/2] Add support for capture through external audio card Focusrite Saffire 6 USB X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Eduard Gilmutdinov --- 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,