From 62e3855b2384ed2a9a0663b63cab7d772d8d378e Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Mon, 13 Apr 2020 10:09:00 -0500 Subject: [PATCH] sof-bytcht-rt5651: 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/bytcr-rt5651/HiFi.conf | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/ucm2/bytcr-rt5651/HiFi.conf b/ucm2/bytcr-rt5651/HiFi.conf index 8a9a402..3f664d7 100644 --- a/ucm2/bytcr-rt5651/HiFi.conf +++ b/ucm2/bytcr-rt5651/HiFi.conf @@ -2,14 +2,28 @@ SectionVerb { - EnableSequence [ - - - ] - DisableSequence [ - - ] + If.Controls { + Condition { + Type ControlExists + Control "name='media0_in Gain 0 Switch'" + } + True { + EnableSequence [ + + + ] + + DisableSequence [ + + ] + } + False { + EnableSequence [ + + ] + } + } } If.0 { -- 2.47.1