[PATCH alsa-ucm-conf 2/3] chtnau8824: Add a SST define/variable
Hans de Goede
hdegoede at redhat.com
Wed Dec 16 16:38:37 CET 2020
Add a SST define which gets set to "yes" when using the SST driver
and to "" when not using the SST driver;
And decide if platforms/bytcr/PlatformEnableSeq.conf should be included
or not based on this.
This is a preparation patch for adding SOF support.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
ucm2/chtnau8824/HiFi.conf | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/ucm2/chtnau8824/HiFi.conf b/ucm2/chtnau8824/HiFi.conf
index 105f360..b36588f 100644
--- a/ucm2/chtnau8824/HiFi.conf
+++ b/ucm2/chtnau8824/HiFi.conf
@@ -1,5 +1,16 @@
Define.Speaker "Speaker"
Define.Mic "InternalMic"
+Define.SST "yes"
+
+If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ False {
+ Define.SST ""
+ }
+}
If.cfg-mspk {
Condition {
@@ -33,12 +44,12 @@ SectionVerb {
Include.e.File "/codecs/nau8824/EnableSeq.conf"
- If.Controls {
+ If.SST {
Condition {
- Type ControlExists
- Control "name='media0_in Gain 0 Switch'"
+ Type String
+ Empty "${var:SST}"
}
- True {
+ False {
Include.pe {
File "/platforms/bytcr/PlatformEnableSeq.conf"
Before.EnableSequence "0"
--
2.28.0
More information about the Alsa-devel
mailing list