From patchwork Thu Oct 27 08:13:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Hasler X-Patchwork-Id: 9400717 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7DE06600BA for ; Fri, 28 Oct 2016 00:39:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DA292A403 for ; Fri, 28 Oct 2016 00:39:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 622602A408; Fri, 28 Oct 2016 00:39:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62AAF2A403 for ; Fri, 28 Oct 2016 00:39:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AE5E226750B; Fri, 28 Oct 2016 02:39:18 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5AFE82674CB; Fri, 28 Oct 2016 02:36:57 +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 2CCFA26733D; Thu, 27 Oct 2016 10:13:18 +0200 (CEST) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by alsa0.perex.cz (Postfix) with ESMTP id 35216267335 for ; Thu, 27 Oct 2016 10:13:13 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id y138so1393987wme.1 for ; Thu, 27 Oct 2016 01:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=uQYIuw6mYHl6pt6sT/tl6QkiiJxtiVhUFTojw+XtWW4=; b=zgTn6S8Tqk57vuFF/ukZAnCp60I2iFuKAzfevLnyQUqvLNwVrQCIwBVB2KUi7FlJ7x P81ESfE9qW1Kq7cpyn9uNaw+SziVrPj+hHjx4PqcIJrDQ0WB2e3Tz+PMQDe9yjMegRq6 w4YCQerjUVH6gYJABN330X1hFKv/x4eXu15HhdeUMQeoF5fNSnGWg+ydz26QQI6q7Mgd Ow0VkIO95vL48go+2tMoicOFZ33seeEGmlX7pYRjZZxJ1DCgvJjdPLR+fV9xOi+kJSKR b95u2odb+v8y/1bcUqPTlIteZe6bXqExSdliru1vrMyFCpKuo2zSqyegCgkGu9So0J+Y eYcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=uQYIuw6mYHl6pt6sT/tl6QkiiJxtiVhUFTojw+XtWW4=; b=RSJHGfK2VUZGCxYlwI4fVFGOpzUW1tSFjHLuwD8gA3m6VnSQZELyMMJ34nSIKEZQJj E7nnE0QHkwL0ilnnMX/euu+RO1qkS4L2+pYf1GF9VPxvGcCwrOF7sP8Sev2pjUBEMeFl 4+80qO+m6DA/6W4DfaZ+16tFgxyebH/nZq3JQyfymKToLub/2A2R0zp9qR7Rc+VMalDi WJ2GygsyE7C36E+XDHovjlG7DvF+EUxLrLi4mlbo11HcRW3YxBA9M9HW45qZrWHOoiMe PtoZB5K5vn14EDSLrh5YHAp0mHCieOYzNv6PV//cThmVt6qru89/GPRVlsgz/vxzoEyg dadg== X-Gm-Message-State: ABUngvcLbff/iFJhMZlXnBVdmsNLAPi/GNuY5snVgs7ok3mBVgKfkjfrQUifO1HjQf0RMA== X-Received: by 10.28.95.213 with SMTP id t204mr12501208wmb.18.1477555992412; Thu, 27 Oct 2016 01:13:12 -0700 (PDT) Received: from arch-desktop ([2a02:908:672:a420:922b:34ff:fe11:2b9f]) by smtp.gmail.com with ESMTPSA id us3sm7007503wjb.32.2016.10.27.01.13.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2016 01:13:11 -0700 (PDT) Date: Thu, 27 Oct 2016 10:13:05 +0200 From: Marcel Hasler To: alsa-devel@alsa-project.org Message-ID: <20161027081305.GA14323@arch-desktop> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-Mailman-Approved-At: Thu, 27 Oct 2016 22:41:44 +0200 Subject: [alsa-devel] [PATCH] snd-usb-audio: Add quirk for Syntek STK1160. 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The stk1160 chip needs QUIRK_AUDIO_ALIGN_TRANSFER. This patch resolves the issue reported on the mailing list (http://marc.info/?l=linux-sound&m=139223599126215&w=2) and also fixes bug 180071 (https://bugzilla.kernel.org/show_bug.cgi?id=180071). Signed-off-by: Marcel Hasler --- sound/usb/quirks-table.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index c60a776..8a59d47 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -2907,6 +2907,23 @@ AU0828_DEVICE(0x2040, 0x7260, "Hauppauge", "HVR-950Q"), AU0828_DEVICE(0x2040, 0x7213, "Hauppauge", "HVR-950Q"), AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"), +/* Syntek STK1160 */ +{ + .match_flags = USB_DEVICE_ID_MATCH_DEVICE | + USB_DEVICE_ID_MATCH_INT_CLASS | + USB_DEVICE_ID_MATCH_INT_SUBCLASS, + .idVendor = 0x05e1, + .idProduct = 0x0408, + .bInterfaceClass = USB_CLASS_AUDIO, + .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .vendor_name = "Syntek", + .product_name = "STK1160", + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_AUDIO_ALIGN_TRANSFER + } +}, + /* Digidesign Mbox */ { /* Thanks to Clemens Ladisch */