Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1E94606A322 for ; Fri, 4 Dec 2026 04:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=alsa-project.org header.i=@alsa-project.org header.a=rsa-sha256 header.s=default header.b=oFJazRc6 Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (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 alsa0.perex.cz (Postfix) with ESMTPS id 8535260331; Fri, 4 Dec 2026 05:09:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8535260331 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1796357396; bh=g/i0LkthFHJrz4kGw+SZN9DdDpwhhYPKZswKCWuHIo8=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=oFJazRc6N8GSeSSaYKpHCcC5g0n2YKzQ4YfNFNxVUmR5eh5aUMe/A8bgaOgc3shqe fzBQBqBjkBVF6j8SXaFjagxcpWmlsaDDBc7sLaVgRyChBZii+2X3Y/VAt+IAtYr6hD 2sMDAXhlOR0crbzzYzj/eEvxPe5AJL0mmCDAn2/U= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A91E8F805EC; Fri, 4 Dec 2026 05:09:22 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C528CF805FE; Fri, 4 Dec 2026 05:09:21 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 797CAF80580; Fri, 4 Dec 2026 05:09:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: alsa1.perex.cz; arc=none smtp.remote-ip=45.14.194.44 ARC-Seal: i=1; d=alsa-project.org; s=arc; a=rsa-sha256; cv=none; t=1796357354; b=CQfFbomoTQ6pIlWzl3IjnTgWix/J4fSHGBfSPInwdwnpGVIqew8YhTnNf8jSL0DP/NiI HJqfARppgoEfGZ8aaYfFRVLFcP4QyIljxAX0+kJrWWmAqY3f0/LEicH9Hx+onqVPI7vAA dnvpGMg1GEKeU8OfYg5r2YWEpqx/8A2d5bYAAraZVe8la5Gb3BnlVy250RaMyhWD/ptKA OcJuKmrGDUaMPOBoJtIyXA2MPYeEVLKpc5f7atfwhPIu20P1grVaPNPMa32S7kJEeE9gH j0rnx48wTwtjM6C2YqoSwkR6jPC6fwgk/e1eVBukHnRmJ4758icj0MC+jfJbxM2lHnQ== ARC-Message-Signature: i=1; d=alsa-project.org; s=arc; a=rsa-sha256; c=relaxed/simple; t=1796357354; h=MIME-Version:From:To:Message-Id:Subject; bh=g/i0LkthFHJrz4kGw+SZN9DdDpwhhYPKZswKCWuHIo8=; b=h/eUfkLcl5QK1NL69o+P5HO2ihiJXVvW3QMe7uZSnu6aGkcxzQBydrb5VhRX4Dxnx4pb vONYpud7xZ1xqkSTUT+jjoN3Qx6MwoqOr5O8e27YhFVQxlgYdjdQaud7jMWzKGwe7sXn6 pu4xiMin8ZnIkOub38bpp0GaDvo/GOaXdrIlNHjdLXSnHfAC5DfxCBmN8cqSCCiMV7H1Y tWH9DasxwmxWpctjZUEC8BqyXIpnxLv8hB6i4tyZhaUxCQEvHQGjWu9DKEpRUAR3ITeDZ 0fRSNM5yK8PeUE4WkKiwqH6N1A/1UnnVJN0rn1E7r8j8lpMawC+2neL7+vQVTl/bwjA== ARC-Authentication-Results: i=1; alsa1.perex.cz; arc=none smtp.remote-ip=45.14.194.44 Received: from webhooks-bot.alsa-project.org (vmi2259423.contaboserver.net [45.14.194.44]) by alsa1.perex.cz (Postfix) with ESMTP id D748AF80185 for ; Fri, 4 Dec 2026 05:09:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D748AF80185 X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub pull_request - edited To: alsa-devel@alsa-project.org Message-Id: <18edf17e90121d00-webhooks-bot@alsa-project.org> In-Reply-To: References: Subject: ucm2: sof-soundwire: fix TAS2783 and RT721 volume on ASUS ProArt PX13 Date: Fri, 4 Dec 2026 05:09:15 +0100 (CET) Message-ID-Hash: HB3A67Q2ADVZQUATLOVDMX7Y4EMI34JV X-Message-ID-Hash: HB3A67Q2ADVZQUATLOVDMX7Y4EMI34JV X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 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: alsa-project/alsa-ucm-conf pull request #941 was edited from cathay4t: This series fixes the internal speaker and headphone hardware volume/mute on the ASUS ProArt PX13 HN7306EA (AMD ACP SoundWire, RT721 + 2x TAS2783). ## Problem The UCM Speaker and Headphones devices only mapped their playback PCMs, so PipeWire's ACP fell back to software volume/mute controls. - TAS2783: the two amplifiers expose one mono `Speaker Volume` control each plus per-amplifier DAPM speaker switches. There is no stereo `Speaker Playback Volume`/`Switch` pair for ACP to bind. - TAS2783: `BootSequence` used `Left Spk`, `Right Spk`, `Left Spk2` and `Right Spk2`, but the actual controls are `Left Spk Switch` etc. - RT721: the Headphones device exposed `rt721 FU05 Playback Volume` and `Headphone Switch` as separate controls. ACP derives the switch name from `PlaybackMixerElem`, so it could not bind them as a hardware volume/mute pair. ## Changes - `fec8ba0` `ucm2: sof-soundwire: expose TAS2783 speaker hardware volume` Create a stereo `Speaker Playback Volume`/`Switch` from the two mono TAS2783 volume controls and the two speaker switches, and bind it to the Speaker device. This is limited to the two-amplifier topology; one- and four-amplifier systems keep the existing behavior. - `269581a` `ucm2: codecs/tas2783: fix speaker switch names in BootSequence` Use the real DAPM control names. - `38386b5` `ucm2: sof-soundwire/rt721: expose headphone hardware volume and mute` Bind the Headphones device to the `rt721 FU05` mixer element and create a virtual `rt721 FU05 Playback Switch` from `Headphone Switch`. Guard the remap with `HeadsetCodec1` for RT721 headset configurations. ## Testing Tested on ASUS ProArt PX13 HN7306EA (AMD ACP SoundWire, RT721 + 2x TAS2783) with kernel 7.4.0-rc5-00107: - Speaker: `tas2783-1`/`tas2783-2` change `153,153` -> `174,174` -> `153,153` when the sink volume changes 40% -> 60% -> 40%. - Speaker mute toggles `Left Spk Switch` and `Right Spk Switch` off/on. - Headphones: `rt721 FU05` changes `32,32` -> `70,70` -> `32,32` when the sink volume changes 20% -> 60% -> 20%. - Headphones mute toggles `Headphone Switch` off/on. - Both Speaker and Headphones sinks report `HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME`. - `alsaucm -c hw:1 dump text` shows the expected `PlaybackMixer`, `PlaybackMixerElem`, `PlaybackVolume` and `PlaybackSwitch` values. - The card remained stable during the final test; there was no new ASoC error or card reset. ## Notes - The TAS2783 remap is intentionally two-amplifier only. Four-amplifier systems keep the existing software-volume fallback. - The RT721 virtual switch remap is guarded by `HeadsetCodec1`, so it is only added for RT721 headset configurations. Request URL : https://github.com/alsa-project/alsa-ucm-conf/pull/941 Patch URL : https://github.com/alsa-project/alsa-ucm-conf/pull/941.patch Repository URL: https://github.com/alsa-project/alsa-ucm-conf