From: Pierre-Louis Bossart Date: Mon, 13 Apr 2020 15:09:00 +0000 (-0500) Subject: sof-bytcht-rt5651: reuse legacy settings X-Git-Tag: v1.2.3~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=62e3855b2384ed2a9a0663b63cab7d772d8d378e;p=alsa-ucm-conf.git 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 --- 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 {