From patchwork Sun Mar 6 15:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Geoffrey D. Bennett" X-Patchwork-Id: 548741 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 63E3BC433F5 for ; Sun, 6 Mar 2022 15:21:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B0BBC174B; Sun, 6 Mar 2022 16:20:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B0BBC174B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646580109; bh=GSdqzw1/RvziA+lOvp3BMqWA5kKlyvwaqxlgHpZDXFA=; h=Date:From:To:Subject:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Qm7AcFEdtbtT5ITYTNTh46sCTSRtOqcWyhF7E5GyfqVZjLFkHnuuY9X0mVgZZi78y bZqlu7qhINaNnISY2dz0cX+C3s5KeWo3HAQuif/sNHwok4LVo+X+Cr2GudGbHbgq+1 YV+1Xeqk0I2DtvncBdIf9VfrHcywVPUxGYin3dXE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3D6C5F80153; Sun, 6 Mar 2022 16:20:59 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C3A1BF8014C; Sun, 6 Mar 2022 16:20:57 +0100 (CET) Received: from m.b4.vu (m.b4.vu [203.16.231.148]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 724F7F8014C for ; Sun, 6 Mar 2022 16:20:50 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 724F7F8014C Received: by m.b4.vu (Postfix, from userid 1000) id E56B16135FCC; Mon, 7 Mar 2022 01:50:40 +1030 (ACDT) Date: Mon, 7 Mar 2022 01:50:40 +1030 From: "Geoffrey D. Bennett" To: alsa-devel@alsa-project.org, Takashi Iwai Subject: [PATCH 0/2] ALSA: scarlett2: Add "Standalone" switch Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Hin-Tak Leung , Vladimir Sadovnikov X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" Hi Takashi, I discovered an internal "standalone" switch on all the Scarlett Gen 2/3 interfaces with internal mixers. After enabling this switch, the interface will act as a standalone mixer (according to its previous configuration) when not connected to a USB host. The interfaces come from the factory with the switch off, and the vendor driver enables it without question. This patch adds a new ALSA control to set the switch on or off. This is the first configuration item that is common between the Gen 2 and 3 interfaces but with a different offset, so the patch is in two parts. The first patch allows for the same configuration item to have a different offset between Gen 2/3 and the second patch adds the new switch. Regards, Geoffrey. Geoffrey D. Bennett (2): ALSA: scarlett2: Split scarlett2_config_items[] into 3 sections ALSA: scarlett2: Add support for the internal "standalone" switch sound/usb/mixer_scarlett_gen2.c | 171 ++++++++++++++++++++++++++------ 1 file changed, 141 insertions(+), 30 deletions(-)