From 3599fc0cadcf65fecd1c48150a53318f11c6827d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 12 Jan 2026 16:26:08 +0100 Subject: [PATCH] HDA-analog: Fix the phantom jack detection if block The hpvol assignment should depend on speaker/line out detection. Link: https://github.com/alsa-project/alsa-ucm-conf/issues/685 Fixes: 4ead6a9 ("HDA-analog: Use phantom jacks to determine the device for single output") Signed-off-by: Jaroslav Kysela --- ucm2/HDA/HiFi-analog.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ucm2/HDA/HiFi-analog.conf b/ucm2/HDA/HiFi-analog.conf index 894d026..06db24e 100644 --- a/ucm2/HDA/HiFi-analog.conf +++ b/ucm2/HDA/HiFi-analog.conf @@ -108,12 +108,18 @@ If.outnone { } True.Define.lovol "Master" } - If.last { + If.none { Condition { - Type ControlExists - Control "name='Master Playback Switch'" + Type String + Empty "${var:spkvol}${var:lovol}" + } + True.If.default { + Condition { + Type ControlExists + Control "name='Master Playback Switch'" + } + True.Define.hpvol "Master" } - True.Define.hpvol "Master" } } } -- 2.47.3