From: Pierre-Louis Bossart Date: Tue, 21 Apr 2020 21:32:48 +0000 (-0500) Subject: SOF: bytcht selections X-Git-Tag: v1.2.3~9 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=08069c3a3d7883058f85de580783ea313dc54126;p=alsa-ucm-conf.git SOF: bytcht selections Use the SOF driver name to load a config, using a File inclusion based on the legacy card name. Suggested-by: Jaroslav Kysela Signed-off-by: Pierre-Louis Bossart Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/SOF/HiFi.conf b/ucm2/SOF/HiFi.conf new file mode 100644 index 0000000..66f0cb9 --- /dev/null +++ b/ucm2/SOF/HiFi.conf @@ -0,0 +1,88 @@ + +If.bytcht_rt5640 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht rt5640" + } + True { + + } +} + +If.bytcht_rt5651 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht rt5651" + } + True { + + } +} + +If.bytcht_cx2072x { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht cx2072x" + } + True { + + } +} + +If.bytcht_es8316 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht es8316" + } + True { + + } +} + +If.bytcht_rt5672 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht rt5672" + } + True { + + } +} + +If.bytcht_nau8824 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht nau8824" + } + True { + + } +} + +If.bytcht_rt5645 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht rt5645" + } + True { + + } +} + +If.bytcht_rt5650 { + Condition { + Type String + Haystack "${CardName}" + Needle "bytcht rt5650" + } + True { + + } +} diff --git a/ucm2/SOF/SOF.conf b/ucm2/SOF/SOF.conf new file mode 100644 index 0000000..d7a0518 --- /dev/null +++ b/ucm2/SOF/SOF.conf @@ -0,0 +1,6 @@ +Syntax 2 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Play HiFi quality Music" +}