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@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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 {
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"