Just test if controls for the legacy driver are available
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
TQ "HiFi"
}
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/nau8824/EnableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/nau8824/EnableSeq.conf>
+ ]
- DisableSequence [
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/nau8824/EnableSeq.conf>
+ ]
+ }
+ }
}
<codecs/nau8824/MonoSpeaker.conf>
-
SectionVerb {
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/nau8824/EnableSeq.conf>
- ]
- DisableSequence [
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/nau8824/EnableSeq.conf>
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/nau8824/EnableSeq.conf>
+ ]
+ }
+ }
}
+
<codecs/nau8824/Speaker.conf>
<codecs/nau8824/HeadPhones.conf>