From: Pierre-Louis Bossart Date: Mon, 13 Apr 2020 15:17:31 +0000 (-0500) Subject: sof-bytcht-cx2072x: reuse legacy settings X-Git-Tag: v1.2.3~15 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=109a488707d2a0f54750766ccf58f50a14c6088e;p=alsa-ucm-conf.git 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 --- 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 [ + + ] + + } + } }