From 08069c3a3d7883058f85de580783ea313dc54126 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Tue, 21 Apr 2020 16:32:48 -0500 Subject: [PATCH] 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 --- ucm2/SOF/HiFi.conf | 88 ++++++++++++++++++++++++++++++++++++++++++++++ ucm2/SOF/SOF.conf | 6 ++++ 2 files changed, 94 insertions(+) create mode 100644 ucm2/SOF/HiFi.conf create mode 100644 ucm2/SOF/SOF.conf 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" +} -- 2.47.1