+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/MonoSpeaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/DigitalMics.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/MonoSpeaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/IN1-InternalMic.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/MonoSpeaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/IN3-InternalMic.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/Speaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/DigitalMics.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/Speaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/IN1-InternalMic.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/Speaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/IN3-InternalMic.conf>
-<codecs/rt5640/HeadsetMic.conf>
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
+++ /dev/null
-# Use case Configuration for bytcr-rt5640
-
-
-SectionVerb {
- EnableSequence [
- cdev "hw:bytcrrt5640"
-
- <platforms/bytcr/PlatformEnableSeq.conf>
- <codecs/rt5640/EnableSeq.conf>
- ]
-
- DisableSequence [
- cdev "hw:bytcrrt5640"
- <platforms/bytcr/PlatformDisableSeq.conf>
- ]
-
- Value {
- PlaybackPCM "hw:bytcrrt5640"
- CapturePCM "hw:bytcrrt5640"
- }
-}
-
-<codecs/rt5640/Speaker.conf>
-<codecs/rt5640/MonoSpeaker.conf>
-<codecs/rt5640/HeadPhones.conf>
-
-<codecs/rt5640/DigitalMics.conf>
-<codecs/rt5640/IN1-InternalMic.conf>
-<codecs/rt5640/IN3-InternalMic.conf>
-<codecs/rt5640/HeadsetMic.conf>
--- /dev/null
+If.spk {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-spk:2"
+ }
+ True {
+ <codecs/rt5640/Speaker.conf>
+ }
+}
+
+If.mono {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-spk:1"
+ }
+ True {
+ <codecs/rt5640/MonoSpeaker.conf>
+ }
+}
+
+<codecs/rt5640/HeadPhones.conf>
+
+If.dmic1 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-mic:dmic1"
+ }
+ True {
+ <codecs/rt5640/DigitalMics.conf>
+ }
+}
+
+If.in1 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-mic:in1"
+ }
+ True {
+ <codecs/rt5640/IN1-InternalMic.conf>
+ }
+}
+
+If.in3 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "cfg-mic:in3"
+ }
+ True {
+ <codecs/rt5640/IN3-InternalMic.conf>
+ }
+}
+
+<codecs/rt5640/HeadsetMic.conf>
--- /dev/null
+If.spk {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-stereo-spk"
+ }
+ True {
+ <codecs/rt5640/Speaker.conf>
+ }
+}
+
+If.mono {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-mono-spk"
+ }
+ True {
+ <codecs/rt5640/MonoSpeaker.conf>
+ }
+}
+
+<codecs/rt5640/HeadPhones.conf>
+
+If.dmic1 {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-dmic1-mic"
+ }
+ True {
+ <codecs/rt5640/DigitalMics.conf>
+ }
+}
+
+If.in1 {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-in1-mic"
+ }
+ True {
+ <codecs/rt5640/IN1-InternalMic.conf>
+ }
+}
+
+If.in3 {
+ Condition {
+ Type String
+ Haystack "${CardLongName}"
+ Needle "-in3-mic"
+ }
+ True {
+ <codecs/rt5640/IN3-InternalMic.conf>
+ }
+}
+
+<codecs/rt5640/HeadsetMic.conf>
--- /dev/null
+# Use case Configuration for bytcr-rt5640
+
+
+SectionVerb {
+ EnableSequence [
+ <platforms/bytcr/PlatformEnableSeq.conf>
+ <codecs/rt5640/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 {
+ <bytcr-rt5640/HiFi-Components.conf>
+ }
+ False {
+ <bytcr-rt5640/HiFi-LongName.conf>
+ }
+}
+Syntax 2
+
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"
}
-
-SectionDefaults [
- cdev "hw:bytcrrt5640"
-]
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Stereo ADC MIXL ADC2 Switch' on"
cset "name='Stereo ADC MIXR ADC2 Switch' on"
cset "name='Internal Mic Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Stereo ADC MIXL ADC2 Switch' off"
cset "name='Stereo ADC MIXR ADC2 Switch' off"
cset "name='Internal Mic Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='DAC MIXL INF1 Switch' on"
cset "name='DAC MIXR INF1 Switch' on"
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
cset "name='Headphone Switch' off"
cset "name='HP Channel Switch' off"
cset "name='HP L Playback Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Headset Mic Switch' on"
cset "name='RECMIXL BST2 Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Stereo ADC MIXL ADC1 Switch' off"
cset "name='Stereo ADC MIXR ADC1 Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Internal Mic Switch' on"
cset "name='RECMIXL BST1 Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Stereo ADC MIXL ADC1 Switch' off"
cset "name='Stereo ADC MIXR ADC1 Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Internal Mic Switch' on"
cset "name='RECMIXL BST1 Switch' off"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='Stereo ADC MIXL ADC1 Switch' off"
cset "name='Stereo ADC MIXR ADC1 Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='DAC MIXL INF1 Switch' on"
cset "name='DAC MIXR INF1 Switch' on"
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
cset "name='Speaker Switch' off"
cset "name='Speaker Channel Switch' off"
cset "name='Speaker L Playback Switch' off"
]
EnableSequence [
- cdev "hw:bytcrrt5640"
-
cset "name='DAC MIXL INF1 Switch' on"
cset "name='DAC MIXR INF1 Switch' on"
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
]
DisableSequence [
- cdev "hw:bytcrrt5640"
cset "name='Speaker Switch' off"
cset "name='Speaker Channel Switch' off"
cset "name='Speaker L Playback Switch' off"