TQ "HiFi"
}
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5645/EnableSeq.conf>
-
- cset "name='Stereo1 ADC1 Mux' 1"
- cset "name='I2S2 Func Switch' on"
- # 3/12 the headphone mic tends to be quite loud
- cset "name='IN1 Boost' 3"
- # 8/8 the internal analog mic tends to be quite soft
- cset "name='IN2 Boost' 8"
- ]
-
- DisableSequence [
- <codecs/rt5645/DisableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ }
}
SectionDevice."Speaker" {
TQ "HiFi"
}
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5645/EnableSeq.conf>
-
- cset "name='Stereo1 ADC1 Mux' 1"
- cset "name='I2S2 Func Switch' on"
- # 3/12 the headphone mic tends to be quite loud
- cset "name='IN1 Boost' 3"
- # 8/8 the internal analog mic tends to be quite soft
- cset "name='IN2 Boost' 8"
- ]
-
- DisableSequence [
- <codecs/rt5645/DisableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ }
}
SectionDevice."Speaker" {
TQ "HiFi"
}
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5645/EnableSeq.conf>
-
- cset "name='Stereo1 ADC1 Mux' 1"
- cset "name='I2S2 Func Switch' on"
- # 3/12 the headphone mic tends to be quite loud
- cset "name='IN1 Boost' 3"
- # 8/8 the internal analog mic tends to be quite soft
- cset "name='IN2 Boost' 8"
- ]
-
- DisableSequence [
- <codecs/rt5645/DisableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ }
}
SectionDevice."Speaker" {
TQ "HiFi"
}
- EnableSequence [
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5645/EnableSeq.conf>
-
- cset "name='Stereo1 ADC1 Mux' 1"
- cset "name='I2S2 Func Switch' on"
- # 3/12 the headphone mic tends to be quite loud
- cset "name='IN1 Boost' 3"
- # 8/8 the internal analog mic tends to be quite soft
- cset "name='IN2 Boost' 8"
- ]
-
- DisableSequence [
- <codecs/rt5645/DisableSeq.conf>
- ]
+ If.Controls {
+ Condition {
+ Type ControlExists
+ Control "name='media0_in Gain 0 Switch'"
+ }
+ True {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ False {
+ EnableSequence [
+ <codecs/rt5645/EnableSeq.conf>
+
+ cset "name='Stereo1 ADC1 Mux' 1"
+ cset "name='I2S2 Func Switch' on"
+ # 3/12 the headphone mic tends to be quite loud
+ cset "name='IN1 Boost' 3"
+ # 8/8 the internal analog mic tends to be quite soft
+ cset "name='IN2 Boost' 8"
+ ]
+
+ DisableSequence [
+ <codecs/rt5645/DisableSeq.conf>
+ ]
+ }
+ }
}
SectionDevice."Speaker" {