From patchwork Thu Oct 26 18:00:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Geoffrey D. Bennett" X-Patchwork-Id: 13437779 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 E659CC25B48 for ; Thu, 26 Oct 2023 18:02:04 +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 143D29F6; Thu, 26 Oct 2023 20:01:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 143D29F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698343323; bh=IZhhYaNSKKXc+1G261mwdUMdk4keNXH5Nr07Lo+6Bzw=; h=Date:From:To:Cc:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=dSvXjugvBZ0ssboA4ar9+y5HjQMMsjkhkNKVBxE/0ao5sD26UzxVwvzf+pDiPuHlO 1/ITcGZogMNPUP9pRTogD+WrYx3u1MZZDHr6scMM83uATKXj0kWSZpobyMf7+IznAC KsJsSbxloDQIA06cNB7iYCXZxNlywYhtvtkW+nOw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 926F3F8019B; Thu, 26 Oct 2023 20:00:51 +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 E9F8BF8019B; Thu, 26 Oct 2023 20:00:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A40D1F8019B; Thu, 26 Oct 2023 20:00:47 +0200 (CEST) Received: from m.b4.vu (m.b4.vu [203.16.231.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1373AF8014B for ; Thu, 26 Oct 2023 20:00:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1373AF8014B Received: by m.b4.vu (Postfix, from userid 1000) id 3CD97604F292; Fri, 27 Oct 2023 04:30:36 +1030 (ACDT) Date: Fri, 27 Oct 2023 04:30:36 +1030 From: "Geoffrey D. Bennett" To: Takashi Iwai Cc: alsa-devel@alsa-project.org Subject: [PATCH 0/5] ALSA: scarlett2: cleanup + level meter fix Message-ID: MIME-Version: 1.0 Content-Disposition: inline Message-ID-Hash: 3DZ2UEMDRUAGLTKLTNXXATPUPZRSEZ2X X-Message-ID-Hash: 3DZ2UEMDRUAGLTKLTNXXATPUPZRSEZ2X X-MailFrom: g@b4.vu 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; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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: Hi Takashi, 5 patches here for the scarlett2 driver... Patches 1-4 are renames/cleanup/refactoring in preparation for adding firmware update, Scarlett Gen 4, and Vocaster support. Patch 5 fixes the Level Meter control which was barely useful before, but now works as expected. Thanks, Geoffrey. Geoffrey D. Bennett (5): ALSA: scarlett2: Rename scarlett_gen2 to scarlett2 ALSA: scarlett2: Rename Gen 3 config sets ALSA: scarlett2: Add support for reading firmware version ALSA: scarlett2: Allow passing any output to line_out_remap() ALSA: scarlett2: Remap Level Meter values MAINTAINERS | 2 +- sound/usb/Makefile | 2 +- sound/usb/mixer_quirks.c | 4 +- ...ixer_scarlett_gen2.c => mixer_scarlett2.c} | 361 +++++++++++++++--- sound/usb/mixer_scarlett2.h | 7 + sound/usb/mixer_scarlett_gen2.h | 7 - 6 files changed, 309 insertions(+), 74 deletions(-) rename sound/usb/{mixer_scarlett_gen2.c => mixer_scarlett2.c} (94%) create mode 100644 sound/usb/mixer_scarlett2.h delete mode 100644 sound/usb/mixer_scarlett_gen2.h