Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1699559rwo; Wed, 2 Aug 2023 20:16:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsCIYPz2kuIgjlkBfoYLkwCllRU2kuD9721e/ouDAcFymcGhTCTODOBdtLfVjYVtLrVQxf X-Received: by 2002:a05:6870:6587:b0:1be:e5e1:d1bc with SMTP id fp7-20020a056870658700b001bee5e1d1bcmr12143786oab.35.1691032588908; Wed, 02 Aug 2023 20:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691032588; cv=none; d=google.com; s=arc-20160816; b=YS6DqaYcDNx9d7zAbKoNDXLC8on3L5O2PYiG2AQC/QfY2ukqYlrdjxNRQo25CwFgxV 6pxGJ2GwWBMQpNYZcbGkfTy1iy/gGuxCqFvLNM8hkPxozAO2iWmIscP4iefRbiLg5g6+ qFARk6GyAmFm/XrcddZ9XGINABfJDGtxdXBgT7L/mN6GCBe3Eh91HmDrF56jIGdOZzws qPTchSfK+Y5Uynfc1FZBykCnXRH1Ad6dI8i/bgawWeD83dqGqOPyqwTlMZczr2A3iJ8y Pf0nf9/qJSPKAslICAkuMqa6gpNf2SbRZrFWU6ulOGZohfbtHumsKJsrpFSnLxLsTrIh mUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=e4tIUv0Y7/IzTb6zMFJrYkbwoPV7a7+cJA967lVg67s=; fh=gSnecpEsX3kg5BzX20mPm88AvJCiwBLcDDYeK4IJ0E8=; b=fnb7D2cgheD+8/LDihu9Kd49Q4372QmN9LFyyDUh2B69h9Nsx6RNJh+iYSkDc+4WTo //5iuw+ZZ97lw2d4ecWzuwCRiOq91eW3vp6ohJytKHPY2NolFayKruI0qo51+55dwj4w 4eMPgnzXTdXyaoshaEfCWrmGGus3zgwsTA1xgnMeWngaL3vnDkcf42fg6pgBPdwRmxfz uFVwxCHsNyvvAiFP0MiNzd6PLh1sLo5+ssvfo8FC0BuTFvwbiJdwk8vpRJHTlMZYj6CW tBmWZASGTiZ0KN3uU4UIDWtSVSLpRaDzTxBM2n4/6nfo4M7lQ2V+ngyWRGTZoT/HJ2Ua p/VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z123-20020a633381000000b00563f2ac6eabsi11629069pgz.92.2023.08.02.20.16.16; Wed, 02 Aug 2023 20:16:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233625AbjHCCrP (ORCPT + 99 others); Wed, 2 Aug 2023 22:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233564AbjHCCrN (ORCPT ); Wed, 2 Aug 2023 22:47:13 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id DE7A19B for ; Wed, 2 Aug 2023 19:47:10 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 91E3060679448; Thu, 3 Aug 2023 10:46:49 +0800 (CST) X-MD-Sfrom: dengxiang@nfschina.com X-MD-SrcIP: 180.167.10.98 From: dengxiang To: tiwai@suse.com, perex@perex.cz, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, dengxiang@nfschina.com Subject: [PATCH] ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces. Date: Thu, 3 Aug 2023 10:44:37 +0800 Message-Id: <20230803024437.370069-1-dengxiang@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a USB quirk for Mythware XA001AU USB interface. Signed-off-by: dengxiang --- sound/usb/quirks-table.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index efb4a3311cc5..5d72dc8441cb 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -4507,6 +4507,35 @@ YAMAHA_DEVICE(0x7010, "UB99"), } } }, +{ + /* Advanced modes of the Mythware XA001AU. + * For the standard mode, Mythware XA001AU has ID ffad:a001 + */ + USB_DEVICE_VENDOR_SPEC(0xffad, 0xa001), + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .vendor_name = "Mythware", + .product_name = "XA001AU", + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = (const struct snd_usb_audio_quirk[]) { + { + .ifnum = 0, + .type = QUIRK_IGNORE_INTERFACE, + }, + { + .ifnum = 1, + .type = QUIRK_AUDIO_STANDARD_INTERFACE, + }, + { + .ifnum = 2, + .type = QUIRK_AUDIO_STANDARD_INTERFACE, + }, + { + .ifnum = -1 + } + } + } +}, #undef USB_DEVICE_VENDOR_SPEC #undef USB_AUDIO_DEVICE -- 2.30.2