From mboxrd@z Thu Jan 1 00:00:00 1970 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 1EC77606A322 for ; Wed, 2 Dec 2026 08:29:34 +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=HLCIWk/T 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 ECCC8601FA; Wed, 2 Dec 2026 09:29:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ECCC8601FA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1796200172; bh=5ivEkMNiauRDW/zr1XQ4gNj+4dJiD2Fq+qFlQV57PFg=; 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=HLCIWk/TE44bbpNty/lSe868c0cHuml1w4UQH6b1aAwPf5fvOpzIWnFKHzGD2ryiw /FskY4K7lBYFDIMDDn+Lz5caflOZB+kLS6KLDTUrBDC717od9PNnw0VV91UPVPyp6a 5I9fSoKX+/QwV0pXmOt/uhXf41bFEjnHEjsQp7as= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A84DAF805FC; Wed, 2 Dec 2026 09:28:58 +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 E0F78F805FF; Wed, 2 Dec 2026 09:28:57 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BAF60F804B4; Wed, 2 Dec 2026 09:28:47 +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=1796200125; b=CQ2zERStIyjeTR6i/fA8pWmk+15eGM3lQ0yE3sUHavwrU0wheNjOWJ3sFfrVzjMUAKWA 8j+Wkq3zrHLbtoKQuQnJ1gi0qqJtZSIdG6JoaRyJEhz7NDDj+AFBq74++/CSsvwsAlP/Y bafYpzqqnikodoyQeG/bMGDPtEkhCKpeb8fAIkm18RSpuRlKfMAFJwN5OVfvYaiSxEDr6 g2ZPHbY4BpcXHGSBLXMDXqIJjmsegu9JPBVA7OovPBCg4LC9yAZCiIYJ2L0ImJXfI8Xb7 MIA3r+xdWl/P7kNyH5m7IvxgInl+O5wGjtSdjJFEj5LNetUOzdwcRArI3jdIkISNZ5A== ARC-Message-Signature: i=1; d=alsa-project.org; s=arc; a=rsa-sha256; c=relaxed/simple; t=1796200125; h=MIME-Version:From:To:Message-Id:Subject; bh=5ivEkMNiauRDW/zr1XQ4gNj+4dJiD2Fq+qFlQV57PFg=; b=m5IwL4yEXX94UHk9j7/d3u1vBoj+5cXs53WLUJ38iq+tzqZtx+ol7MSsN8ZkF+UDWIRS GOBsgDALTueuNFH+Gnzmstf5qxWSXkiykEPeZIy0n2d9et1HBtH9bO5gFQrr6Q7ljVxjX X8MgkBiW4Trgetsih27AIk6cQ41RcPjZQSm7uF5HsP56MFbVgbxbywXE4xig7qLSt/RNa q3i1SwwpFziD4o4DSrnqZBjNj/oC708iNstbTX9F/kbfVsqlbcmobj7wookkUd7m43xwC qOKSWAzb3M3zr79wjY32lZXzOjPQPuWeJivWqBJHd6cB/GWyUpwAbvqoPHGnur/Ke9A== 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 0573AF80424 for ; Wed, 2 Dec 2026 09:28:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0573AF80424 X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org Message-Id: <18ed627eac7f0900-webhooks-bot@alsa-project.org> In-Reply-To: <18ed627eac664600-webhooks-bot@alsa-project.org> References: <18ed627eac664600-webhooks-bot@alsa-project.org> Subject: HDA/HiFi-analog: no Headphones device when codec has only 'Headphone Playback Volume' (CS8409/CS42L42, sof-hda-dsp) Date: Wed, 2 Dec 2026 09:28:47 +0100 (CET) Message-ID-Hash: YFSWVF6COFEWXBOBXBNCMVY6236P43TB X-Message-ID-Hash: YFSWVF6COFEWXBOBXBNCMVY6236P43TB 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 issue #937 was opened from wervin: ### Summary On a Dell Inspiron 16 5620 (sof-hda-dsp, Cirrus Logic CS8409/CS42L42 codec) the HiFi verb has no usable `Headphones` device. PipeWire only exposes `Speaker`, and WirePlumber logs: ``` spa.alsa: No sink and source at HiFi: Headphones ``` The kernel driver works: the jack is detected (`Headphone Jack` = on) and audio physically reaches the headphones, but through the `Speaker` device, so `Headphone Playback Volume` is never controlled and there is no Headphones port in the desktop. ### Cause This codec exposes a headphone **volume** but no headphone **switch**: ``` numid=6,iface=CARD,name='Headphone Jack' numid=4,iface=CARD,name='Mic Jack' numid=5,iface=CARD,name='Speaker Phantom Jack' numid=1,iface=MIXER,name='Headphone Playback Volume' numid=2,iface=MIXER,name='Mic Capture Volume' numid=3,iface=MIXER,name='Speaker Playback Switch' ``` `ucm2/HDA/HiFi-analog.conf` only keeps `hpvol` when `Headphone Playback Switch` exists: ``` If.hpvol { Condition { Type ControlExists Control "name='Headphone Playback Switch'" } False.Define.hpvol "" } ``` So `hpvol` becomes empty and `SectionDevice."Headphones"` is not created there. `Intel/sof-hda-dsp/HiFi-sof.conf` then still declares `SectionDevice."Headphones"` (its `If.hp` block, `True` branch when `hpvol` is empty), which leaves a device without `PlaybackPCM`: ``` Device.Headphones { Values { CaptureCTL "_ucm0001.hw:sofhdadsp" PlaybackCTL "_ucm0001.hw:sofhdadsp" TQ HiFi } } ``` Current master has the same `If.hpvol` condition. ### Tested fix Accepting a codec that has only the volume control fixes it here: ```diff --- a/ucm2/HDA/HiFi-analog.conf +++ b/ucm2/HDA/HiFi-analog.conf @@ Type ControlExists Control "name='Headphone Playback Switch'" } - False.Define.hpvol "" + False.If.hpvolonly { + # Codecs such as CS8409/CS42L42 expose only a volume control + Condition { + Type ControlExists + Control "name='Headphone Playback Volume'" + } + False.Define.hpvol "" + } } ``` With this change (tested against 1.2.16.1): - `alsaucm dump text` shows `Headphones` with `PlaybackPCM`, `PlaybackMixerElem Headphone` and `JackControl "Headphone Jack"` - WirePlumber creates the Headphones sink, the route is reported available when the jack is plugged, and it is selected by default - the volume slider drives the hardware `Headphone Playback Volume` - playback through the headphones works ### System - Dell Inspiron 16 5620, Alder Lake PCH-P, `sof-audio-pci-intel-tgl`, machine driver `skl_hda_dsp_generic`, topology `sof-hda-generic-2ch.tplg` - Codec: Cirrus Logic CS8409/CS42L42, vendor id `0x10138409`, subsystem id `0x10280baa` - Ubuntu 26.10, kernel 7.3.0-11-generic - alsa-ucm-conf 1.2.16.1, alsa-lib 1.2.16.1, PipeWire 1.6.8, WirePlumber 0.5.17 `alsa-info` output is attached. [alsa-info.txt](https://github.com/user-attachments/files/35731395/alsa-info.txt) Issue URL : https://github.com/alsa-project/alsa-ucm-conf/issues/937 Repository URL: https://github.com/alsa-project/alsa-ucm-conf