From patchwork Thu Aug 3 02:44:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dengxiang X-Patchwork-Id: 13341603 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54A30C00528 for ; Fri, 4 Aug 2023 09:46:10 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2A9C8DF2; Fri, 4 Aug 2023 11:45:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2A9C8DF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1691142368; bh=RPg+ldLp7Md/Q2X3VhrsjjAlAybedZ/hp81D2bwwHS4=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=bxeh7UHrRYv6L/5jBammt04c0xOoiKhFPFXxYonNW6TNkYwCjJJCXOkzeYhGF0VFk PREBm7zagyJWveCI7wE4pR7B0SW3jjalWRD280EYdvYqANWLJ2K2w0vsMjEktJ6vhY Ne6ccGKAwHTWLj5xL7LPWruYUdOxN7HC8WJiQFmc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D06B7F805CB; Fri, 4 Aug 2023 11:43:15 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6BE99F805CB; Fri, 4 Aug 2023 11:43:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 27340F8025A; Thu, 3 Aug 2023 04:47:06 +0200 (CEST) Received: from mail.nfschina.com (unknown [42.101.60.195]) by alsa1.perex.cz (Postfix) with SMTP id 3A17DF80149 for ; Thu, 3 Aug 2023 04:46:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3A17DF80149 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 X-MailFrom: dengxiang@nfschina.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: DDPEXDKBPEMYEDRGQAC5EXF7LODDNP2O X-Message-ID-Hash: DDPEXDKBPEMYEDRGQAC5EXF7LODDNP2O X-Mailman-Approved-At: Fri, 04 Aug 2023 09:42:54 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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