From: Pierre-Louis Bossart Date: Mon, 13 Apr 2020 15:00:16 +0000 (-0500) Subject: sof-bytcht-rt5640: reuse legacy settings X-Git-Tag: v1.2.3~17 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d0a796a55cd0c8d2ad76fdbd590de41a0b1ac813;p=alsa-ucm-conf.git sof-bytcht-rt5640: 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-rt5640/HiFi.conf b/ucm2/bytcr-rt5640/HiFi.conf index e71eb22..89795cb 100644 --- a/ucm2/bytcr-rt5640/HiFi.conf +++ b/ucm2/bytcr-rt5640/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 {