From 109a488707d2a0f54750766ccf58f50a14c6088e Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Mon, 13 Apr 2020 10:17:31 -0500 Subject: [PATCH] sof-bytcht-cx2072x: reuse legacy settings Just test if controls for the legacy driver are available Signed-off-by: Pierre-Louis Bossart Signed-off-by: Jaroslav Kysela --- ucm2/bytcht-cx2072x/HiFi.conf | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/ucm2/bytcht-cx2072x/HiFi.conf b/ucm2/bytcht-cx2072x/HiFi.conf index b329ea4..1ac4931 100644 --- a/ucm2/bytcht-cx2072x/HiFi.conf +++ b/ucm2/bytcht-cx2072x/HiFi.conf @@ -1,13 +1,32 @@ SectionVerb { - EnableSequence [ - - - ] - DisableSequence [ - - - ] + If.Controls { + Condition { + Type ControlExists + Control "name='media0_in Gain 0 Switch'" + } + True { + EnableSequence [ + + + ] + + DisableSequence [ + + + ] + } + False { + EnableSequence [ + + ] + + DisableSequence [ + + ] + + } + } } -- 2.47.1