+++ /dev/null
-SectionVerb {
- EnableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/es8316/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytchtes8316"
- CapturePCM "hw:bytchtes8316"
- }
-}
-
-<codecs/es8316/MonoSpeaker.conf>
-<codecs/es8316/HeadPhones.conf>
-
-<codecs/es8316/IN1-InternalMic.conf>
-<codecs/es8316/IN2-HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcht-es8316-mono-spk-in1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytchtes8316"
-]
+++ /dev/null
-SectionVerb {
- EnableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/es8316/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytchtes8316"
- CapturePCM "hw:bytchtes8316"
- }
-}
-
-<codecs/es8316/MonoSpeaker.conf>
-<codecs/es8316/HeadPhones.conf>
-
-<codecs/es8316/IN1-HeadsetMic.conf>
-<codecs/es8316/IN2-InternalMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcht-es8316-mono-spk-in2-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytchtes8316"
-]
+++ /dev/null
-SectionVerb {
- EnableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/es8316/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytchtes8316"
- CapturePCM "hw:bytchtes8316"
- }
-}
-
-<codecs/es8316/Speaker.conf>
-<codecs/es8316/HeadPhones.conf>
-
-<codecs/es8316/IN1-InternalMic.conf>
-<codecs/es8316/IN2-HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcht-es8316-stereo-spk-in1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytchtes8316"
-]
+++ /dev/null
-SectionVerb {
- EnableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/es8316/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytchtes8316"
- CapturePCM "hw:bytchtes8316"
- }
-}
-
-<codecs/es8316/Speaker.conf>
-<codecs/es8316/HeadPhones.conf>
-
-<codecs/es8316/IN1-HeadsetMic.conf>
-<codecs/es8316/IN2-InternalMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcht-es8316-stereo-spk-in2-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytchtes8316"
-]
+++ /dev/null
-SectionVerb {
- EnableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/es8316/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytchtes8316"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytchtes8316"
- CapturePCM "hw:bytchtes8316"
- }
-}
-
-<codecs/es8316/Speaker.conf>
-<codecs/es8316/MonoSpeaker.conf>
-<codecs/es8316/HeadPhones.conf>
-
-<codecs/es8316/IN1-InternalMic.conf>
-<codecs/es8316/IN2-InternalMic.conf>
-<codecs/es8316/IN1-HeadsetMic.conf>
-<codecs/es8316/IN2-HeadsetMic.conf>
--- /dev/null
+If.spk {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-spk:2"
+ }
+ True {
+ <codecs/es8316/Speaker.conf>
+ }
+}
+
+If.mono {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-spk:1"
+ }
+ True {
+ <codecs/es8316/MonoSpeaker.conf>
+ }
+}
+
+If.in1 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-mic:in1"
+ }
+ True {
+ <codecs/es8316/IN1-InternalMic.conf>
+ <codecs/es8316/IN2-HeadsetMic.conf>
+ }
+}
+
+If.in2 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-mic:in2"
+ }
+ True {
+ <codecs/es8316/IN1-HeadsetMic.conf>
+ <codecs/es8316/IN2-InternalMic.conf>
+ }
+}
--- /dev/null
+If.spk {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-stereo-spk"
+ }
+ True {
+ <codecs/es8316/Speaker.conf>
+ }
+}
+
+If.mono {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-mono-spk"
+ }
+ True {
+ <codecs/es8316/MonoSpeaker.conf>
+ }
+}
+
+If.in1 {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-in1-mic"
+ }
+ True {
+ <codecs/es8316/IN1-InternalMic.conf>
+ <codecs/es8316/IN2-HeadsetMic.conf>
+ }
+}
+
+If.in2 {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-in2-mic"
+ }
+ True {
+ <codecs/es8316/IN1-HeadsetMic.conf>
+ <codecs/es8316/IN2-InternalMic.conf>
+ }
+}
--- /dev/null
+SectionVerb {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/es8316/EnableSeq.conf>
+ ]
+
+ DisableSequence [
+ <platforms/bytcr/PlatformDisableSeq.conf>
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId}"
+ CapturePCM "hw:${CardId}"
+ }
+}
+
+If.0 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-spk:"
+ }
+ True {
+ <bytcht-es8316/HiFi-Components.conf>
+ }
+ False {
+ <bytcht-es8316/HiFi-LongName.conf>
+ }
+}
+Syntax 2
+
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"
}
-
-SectionDefaults [
- cdev "hw:bytchtes8316"
-]
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Headphone Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Headphone Switch' off"
]
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Differential Mux' lin1-rin1"
cset "name='Headset Mic Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Headset Mic Switch' off"
]
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Differential Mux' lin1-rin1"
cset "name='Internal Mic Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Internal Mic Switch' off"
]
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Differential Mux' lin2-rin2"
cset "name='Headset Mic Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Headset Mic Switch' off"
]
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Differential Mux' lin2-rin2"
cset "name='Internal Mic Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Internal Mic Switch' off"
]
]
EnableSequence [
- cdev "hw:bytchtes8316"
-
# BYT/CHT devices with an ES8316 codec use a single speaker
# connected between the headhpone LOUT and ROUT pins, expecting
# the output to be in a mono differential mode. Presumably this
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Speaker Switch' off"
# DAC settings back to normal for stereo headphones output
cset "name='Playback Polarity' 0"
]
EnableSequence [
- cdev "hw:bytchtes8316"
cset "name='Speaker Switch' on"
]
DisableSequence [
- cdev "hw:bytchtes8316"
cset "name='Speaker Switch' off"
]