From 226c9b7b01b5f84a094ebe3f44a64e00b245942a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 23 Jun 2023 05:14:30 +0800 Subject: [PATCH] Intel/sof-essx8336: Fix HiFi.conf 1. Switch Headphone on/off in Headphones enable/disable sequence. This should be obvious. 2. "Headset Switch" is not recognized and triggers errors running "alsaucm -c hw:0 set _verb Hifi". Change it to "Headset Mic Switch". And in the disable sequence we should turn it off, not on. Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/328 Signed-off-by: Xi Ruoyao Signed-off-by: Jaroslav Kysela --- ucm2/Intel/sof-essx8336/HiFi.conf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ucm2/Intel/sof-essx8336/HiFi.conf b/ucm2/Intel/sof-essx8336/HiFi.conf index 974a80a..2be5aa5 100644 --- a/ucm2/Intel/sof-essx8336/HiFi.conf +++ b/ucm2/Intel/sof-essx8336/HiFi.conf @@ -82,6 +82,7 @@ SectionDevice."Speaker" { DisableSequence [ cset "name='Speaker Switch' off" ] + Value { PlaybackPriority 100 PlaybackPCM "hw:${CardId}" @@ -99,6 +100,14 @@ SectionDevice."Headphones" { "Speaker" ] + EnableSequence [ + cset "name='Headphone Switch' on" + ] + + DisableSequence [ + cset "name='Headphone Switch' off" + ] + Value { PlaybackPriority 300 PlaybackPCM "hw:${CardId}" @@ -123,12 +132,12 @@ SectionDevice."Headset" { } EnableSequence [ - cset "name='Headset Switch' on" + cset "name='Headset Mic Switch' on" cset "name='Digital Mic Mux' 'dmic disable'" ] DisableSequence [ - cset "name='Headset Switch' on" + cset "name='Headset Mic Switch' off" ] Value { -- 2.47.1