From: Jaroslav Kysela Date: Mon, 12 Jan 2026 15:26:08 +0000 (+0100) Subject: HDA-analog: Fix the phantom jack detection if block X-Git-Tag: v1.2.15.3~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3599fc0cadcf65fecd1c48150a53318f11c6827d;p=alsa-ucm-conf.git 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 --- 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" } } }