ucm2: use Include (Syntax 3)

Instead the unconditional include, use the Include configuration
directive which can load some files when evaluated (on demand only).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-05 18:20:58 +02:00
commit 0a8dd118f7
71 changed files with 814 additions and 1006 deletions

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -5,13 +5,17 @@ SectionVerb {
EnableSequence [
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 1"
<codecs/wcd934x/DefaultEnableSeq.conf>
<codecs/wsa881x/DefaultEnableSeq.conf>
]
Include.wcde.File "/codecs/wcd934x/DefaultEnableSeq.conf"
Include.wsae.File "/codecs/wsa881x/DefaultEnableSeq.conf"
Include.wcdd {
File "/codecs/wcd934x/DefaultDisableSeq.conf"
Before.DisableSequence "0"
}
DisableSequence [
<codecs/wcd934x/DefaultDisableSeq.conf>
cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 0"
]
@ -23,15 +27,10 @@ SectionVerb {
SectionDevice."Speaker" {
Comment "Speaker playback"
EnableSequence [
<codecs/wcd934x/SpeakerEnableSeq.conf>
<codecs/wsa881x/SpeakerEnableSeq.conf>
]
DisableSequence [
<codecs/wsa881x/SpeakerDisableSeq.conf>
<codecs/wcd934x/SpeakerDisableSeq.conf>
]
Include.wcde.File "/codecs/wcd934x/SpeakerEnableSeq.conf"
Include.wsae.File "/codecs/wsa881x/SpeakerEnableSeq.conf"
Include.wsad.File "/codecs/wsa881x/SpeakerDisableSeq.conf"
Include.wcdd.File "/codecs/wcd934x/SpeakerDisableSeq.conf"
Value {
PlaybackPriority 100

View file

@ -1,13 +1,10 @@
If.bytcht_rt5640 {
Condition {
Type String
Haystack "${CardName}"
Needle "bytcht rt5640"
}
True {
<bytcr-rt5640/HiFi.conf>
}
True.Include.main.File "/bytcr-rt5640/HiFi.conf"
}
If.bytcht_rt5651 {
@ -16,9 +13,7 @@ If.bytcht_rt5651 {
Haystack "${CardName}"
Needle "bytcht rt5651"
}
True {
<bytcr-rt5651/HiFi.conf>
}
True.Include.main.File "/bytcr-rt5651/HiFi.conf"
}
If.bytcht_cx2072x {
@ -27,9 +22,7 @@ If.bytcht_cx2072x {
Haystack "${CardName}"
Needle "bytcht cx2072x"
}
True {
<bytcht-cx2072x/HiFi.conf>
}
True.Include.main.File "/bytcht-cx2072x/HiFi.conf"
}
If.bytcht_es8316 {
@ -38,9 +31,7 @@ If.bytcht_es8316 {
Haystack "${CardName}"
Needle "bytcht es8316"
}
True {
<bytcht-es8316/HiFi.conf>
}
True.Include.main.File "/bytcht-es8316/HiFi.conf"
}
If.bytcht_rt5672 {
@ -49,9 +40,7 @@ If.bytcht_rt5672 {
Haystack "${CardName}"
Needle "bytcht rt5672"
}
True {
<cht-bsw-rt5672/HiFi.conf>
}
True.Include.main.File "/cht-bsw-rt5672/HiFi.conf"
}
If.bytcht_nau8824 {
@ -60,9 +49,7 @@ If.bytcht_nau8824 {
Haystack "${CardName}"
Needle "bytcht nau8824"
}
True {
<chtnau8824/HiFi.conf>
}
True.Include.main.File "/chtnau8824/HiFi.conf"
}
If.bytcht_rt5645 {
@ -71,9 +58,7 @@ If.bytcht_rt5645 {
Haystack "${CardName}"
Needle "bytcht rt5645"
}
True {
<chtrt5645/HiFi.conf>
}
True.Include.main.File "/chtrt5645/HiFi.conf"
}
If.bytcht_rt5650 {
@ -82,9 +67,7 @@ If.bytcht_rt5650 {
Haystack "${CardName}"
Needle "bytcht rt5650"
}
True {
<chtrt5650/HiFi.conf>
}
True.Include.main.File "/chtrt5650/HiFi.conf"
}
If.bytcht_max98090 {
@ -93,7 +76,5 @@ If.bytcht_max98090 {
Haystack "${CardName}"
Needle "bytcht max98090"
}
True {
<chtmax98090/HiFi.conf>
}
True.Include.main.File "/chtmax98090/HiFi.conf"
}

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -109,4 +109,4 @@ SectionDevice."Headset" {
}
}
<broxton-rt298/Hdmi.conf>
Include.hdmi.File "/broxton-rt298/Hdmi.conf"

View file

@ -1,7 +1,7 @@
# UCM for Intel Broxton platforms
# For Audio in I2S mode
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -1,36 +1,23 @@
SectionVerb {
Include.e.File "/codecs/cx2072x/EnableSeq.conf"
Include.d.File "/codecs/cx2072x/DisableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/cx2072x/EnableSeq.conf>
]
DisableSequence [
<codecs/cx2072x/DisableSeq.conf>
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/cx2072x/EnableSeq.conf>
]
DisableSequence [
<codecs/cx2072x/DisableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
<codecs/cx2072x/Speaker.conf>
<codecs/cx2072x/HeadPhones.conf>
Include.spk.File "/codecs/cx2072x/Speaker.conf"
Include.hp.File "/codecs/cx2072x/HeadPhones.conf"
<codecs/cx2072x/InternalMic.conf>
<codecs/cx2072x/HeadsetMic.conf>
Include.imic.File "/codecs/cx2072x/InternalMic.conf"
Include.hsmic.File "/codecs/cx2072x/HeadsetMic.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -4,9 +4,7 @@ If.spk {
Haystack "${CardComponents}"
Needle "cfg-spk:2"
}
True {
<codecs/es8316/Speaker.conf>
}
True.Include.spk.File "/codecs/es8316/Speaker.conf"
}
If.mono {
@ -15,12 +13,10 @@ If.mono {
Haystack "${CardComponents}"
Needle "cfg-spk:1"
}
True {
<codecs/es8316/MonoSpeaker.conf>
}
True.Include.mspk.File "/codecs/es8316/MonoSpeaker.conf"
}
<codecs/es8316/HeadPhones.conf>
Include.hs.File "/codecs/es8316/HeadPhones.conf"
If.in1 {
Condition {
@ -29,8 +25,8 @@ If.in1 {
Needle "cfg-mic:in1"
}
True {
<codecs/es8316/IN1-InternalMic.conf>
<codecs/es8316/IN2-HeadsetMic.conf>
Include.mic.File "/codecs/es8316/IN1-InternalMic.conf"
Include.hsmic.File "/codecs/es8316/IN2-HeadsetMic.conf"
}
}
@ -41,7 +37,7 @@ If.in2 {
Needle "cfg-mic:in2"
}
True {
<codecs/es8316/IN1-HeadsetMic.conf>
<codecs/es8316/IN2-InternalMic.conf>
Include.hsmic.File "/codecs/es8316/IN1-HeadsetMic.conf"
Include.mic.File "/codecs/es8316/IN2-InternalMic.conf"
}
}

View file

@ -4,9 +4,7 @@ If.spk {
Haystack "${CardLongName}"
Needle "-stereo-spk"
}
True {
<codecs/es8316/Speaker.conf>
}
True.Include.spk.File "/codecs/es8316/Speaker.conf"
}
If.mono {
@ -15,12 +13,10 @@ If.mono {
Haystack "${CardLongName}"
Needle "-mono-spk"
}
True {
<codecs/es8316/MonoSpeaker.conf>
}
True.Include.mspk.File "/codecs/es8316/MonoSpeaker.conf"
}
<codecs/es8316/HeadPhones.conf>
Include.hs.File "/codecs/es8316/HeadPhones.conf"
If.in1 {
Condition {
@ -29,8 +25,8 @@ If.in1 {
Needle "-in1-mic"
}
True {
<codecs/es8316/IN1-InternalMic.conf>
<codecs/es8316/IN2-HeadsetMic.conf>
Include.mic.File "/codecs/es8316/IN1-InternalMic.conf"
Include.hsmic.File "/codecs/es8316/IN2-HeadsetMic.conf"
}
}
@ -41,7 +37,7 @@ If.in2 {
Needle "-in2-mic"
}
True {
<codecs/es8316/IN1-HeadsetMic.conf>
<codecs/es8316/IN2-InternalMic.conf>
Include.hsmic.File "/codecs/es8316/IN1-HeadsetMic.conf"
Include.mic.File "/codecs/es8316/IN2-InternalMic.conf"
}
}

View file

@ -1,24 +1,15 @@
SectionVerb {
Include.e.File "/codecs/es8316/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/es8316/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/es8316/EnableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -29,10 +20,6 @@ If.0 {
Haystack "${CardComponents}"
Needle "cfg-spk:"
}
True {
<bytcht-es8316/HiFi-Components.conf>
}
False {
<bytcht-es8316/HiFi-LongName.conf>
}
True.Include.comp.File "/bytcht-es8316/HiFi-Components.conf"
False.Include.long.File "/bytcht-es8316/HiFi-LongName.conf"
}

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -4,9 +4,7 @@ If.spk {
Haystack "${CardComponents}"
Needle "cfg-spk:2"
}
True {
<codecs/rt5640/Speaker.conf>
}
True.Include.spk.File "/codecs/rt5640/Speaker.conf"
}
If.mono {
@ -15,12 +13,10 @@ If.mono {
Haystack "${CardComponents}"
Needle "cfg-spk:1"
}
True {
<codecs/rt5640/MonoSpeaker.conf>
}
True.Include.mspk.File "/codecs/rt5640/MonoSpeaker.conf"
}
<codecs/rt5640/HeadPhones.conf>
Include.hs.File "/codecs/rt5640/HeadPhones.conf"
If.dmic1 {
Condition {
@ -28,9 +24,7 @@ If.dmic1 {
Haystack "${CardComponents}"
Needle "cfg-mic:dmic1"
}
True {
<codecs/rt5640/DigitalMics.conf>
}
True.Include.dmic.File "/codecs/rt5640/DigitalMics.conf"
}
If.in1 {
@ -39,9 +33,7 @@ If.in1 {
Haystack "${CardComponents}"
Needle "cfg-mic:in1"
}
True {
<codecs/rt5640/IN1-InternalMic.conf>
}
True.Include.mic1.File "/codecs/rt5640/IN1-InternalMic.conf"
}
If.in3 {
@ -50,9 +42,7 @@ If.in3 {
Haystack "${CardComponents}"
Needle "cfg-mic:in3"
}
True {
<codecs/rt5640/IN3-InternalMic.conf>
}
True.Include.mic3.File "/codecs/rt5640/IN3-InternalMic.conf"
}
<codecs/rt5640/HeadsetMic.conf>
Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"

View file

@ -4,9 +4,7 @@ If.spk {
Haystack "${CardLongName}"
Needle "-stereo-spk"
}
True {
<codecs/rt5640/Speaker.conf>
}
True.Include.spk.File "/codecs/rt5640/Speaker.conf"
}
If.mono {
@ -15,12 +13,10 @@ If.mono {
Haystack "${CardLongName}"
Needle "-mono-spk"
}
True {
<codecs/rt5640/MonoSpeaker.conf>
}
True.Include.mspk.File "/codecs/rt5640/MonoSpeaker.conf"
}
<codecs/rt5640/HeadPhones.conf>
Include.hs.File "/codecs/rt5640/HeadPhones.conf"
If.dmic1 {
Condition {
@ -28,9 +24,7 @@ If.dmic1 {
Haystack "${CardLongName}"
Needle "-dmic1-mic"
}
True {
<codecs/rt5640/DigitalMics.conf>
}
True.Include.dmic.File "/codecs/rt5640/DigitalMics.conf"
}
If.in1 {
@ -39,9 +33,7 @@ If.in1 {
Haystack "${CardLongName}"
Needle "-in1-mic"
}
True {
<codecs/rt5640/IN1-InternalMic.conf>
}
True.Include.mic1.File "/codecs/rt5640/IN1-InternalMic.conf"
}
If.in3 {
@ -50,9 +42,7 @@ If.in3 {
Haystack "${CardLongName}"
Needle "-in3-mic"
}
True {
<codecs/rt5640/IN3-InternalMic.conf>
}
True.Include.mic3.File "/codecs/rt5640/IN3-InternalMic.conf"
}
<codecs/rt5640/HeadsetMic.conf>
Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"

View file

@ -1,27 +1,17 @@
# Use case Configuration for bytcr-rt5640
SectionVerb {
Include.e.File "/codecs/rt5640/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/rt5640/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/rt5640/EnableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -32,10 +22,6 @@ If.0 {
Haystack "${CardComponents}"
Needle "cfg-spk:"
}
True {
<bytcr-rt5640/HiFi-Components.conf>
}
False {
<bytcr-rt5640/HiFi-LongName.conf>
}
True.Include.comp.File "/bytcr-rt5640/HiFi-Components.conf"
False.Include.long.File "/bytcr-rt5640/HiFi-LongName.conf"
}

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -5,7 +5,7 @@ If.spk {
Needle "cfg-spk:2"
}
True {
<codecs/rt5651/Speaker.conf>
Include.spk.File "/codecs/rt5651/Speaker.conf"
}
}
@ -16,7 +16,7 @@ If.mono {
Needle "cfg-spk:1"
}
True {
<codecs/rt5651/MonoSpeaker.conf>
Include.mspk.File "/codecs/rt5651/MonoSpeaker.conf"
}
}
@ -27,10 +27,10 @@ If.headphones {
Needle "cfg-hp:lrswap"
}
True {
<codecs/rt5651/HeadPhones-swapped.conf>
Include.hp.File "/codecs/rt5651/HeadPhones-swapped.conf"
}
False {
<codecs/rt5651/HeadPhones.conf>
Include.hp.File "/codecs/rt5651/HeadPhones.conf"
}
}
@ -41,12 +41,12 @@ If.dmic {
Needle "cfg-mic:dmic"
}
True {
<codecs/rt5651/DigitalMic.conf>
<codecs/rt5651/IN2-HeadsetMic.conf>
Include.dmic.File "/codecs/rt5651/DigitalMic.conf"
Include.hsmic.File "/codecs/rt5651/IN2-HeadsetMic.conf"
SectionDevice."Mic".ConflictingDevice.0 "Headset"
}
False {
<codecs/rt5651/IN3-HeadsetMic.conf>
Include.hsmic.File "/codecs/rt5651/IN3-HeadsetMic.conf"
}
}
@ -57,7 +57,7 @@ If.in2 {
Needle "cfg-mic:in2"
}
True {
<codecs/rt5651/IN2-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN2-InternalMic.conf"
}
}
@ -68,7 +68,7 @@ If.in12 {
Needle "cfg-mic:in12"
}
True {
<codecs/rt5651/IN12-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN12-InternalMic.conf"
}
False {
If.in1 {
@ -78,7 +78,7 @@ If.in12 {
Needle "cfg-mic:in1"
}
True {
<codecs/rt5651/IN1-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN1-InternalMic.conf"
}
}
}

View file

@ -5,7 +5,7 @@ If.spk {
Needle "-stereo-spk"
}
True {
<codecs/rt5651/Speaker.conf>
Include.spk.File "/codecs/rt5651/Speaker.conf"
}
}
@ -16,7 +16,7 @@ If.mono {
Needle "-mono-spk"
}
True {
<codecs/rt5651/MonoSpeaker.conf>
Include.mspk.File "/codecs/rt5651/MonoSpeaker.conf"
}
}
@ -27,10 +27,10 @@ If.headphones {
Needle "-mic-hp-swapped"
}
True {
<codecs/rt5651/HeadPhones-swapped.conf>
Include.hp.File "/codecs/rt5651/HeadPhones-swapped.conf"
}
False {
<codecs/rt5651/HeadPhones.conf>
Include.hp.File "/codecs/rt5651/HeadPhones.conf"
}
}
@ -41,11 +41,11 @@ If.dmic1 {
Needle "-dmic1-mic"
}
True {
<codecs/rt5651/DigitalMic.conf>
<codecs/rt5651/IN2-HeadsetMic.conf>
Include.dmic.File "/codecs/rt5651/DigitalMic.conf"
Include.hsmic.File "/codecs/rt5651/IN2-HeadsetMic.conf"
}
False {
<codecs/rt5651/IN3-HeadsetMic.conf>
Include.hsmic.File "/codecs/rt5651/IN3-HeadsetMic.conf"
}
}
@ -56,7 +56,7 @@ If.in1 {
Needle "-in1-mic"
}
True {
<codecs/rt5651/IN1-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN1-InternalMic.conf"
}
}
@ -67,7 +67,7 @@ If.in2 {
Needle "-in2-mic"
}
True {
<codecs/rt5651/IN2-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN2-InternalMic.conf"
}
}
@ -78,6 +78,6 @@ If.in12 {
Needle "-in12-mic"
}
True {
<codecs/rt5651/IN12-InternalMic.conf>
Include.mic.File "/codecs/rt5651/IN12-InternalMic.conf"
}
}

View file

@ -3,25 +3,17 @@
SectionVerb {
Include.e.File "/codecs/rt5651/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/rt5651/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/rt5651/EnableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -33,9 +25,9 @@ If.0 {
Needle "cfg-spk:"
}
True {
<bytcr-rt5651/HiFi-Components.conf>
Include.comp.File "/bytcr-rt5651/HiFi-Components.conf"
}
False {
<bytcr-rt5651/HiFi-LongName.conf>
Include.long.File "/bytcr-rt5651/HiFi-LongName.conf"
}
}

View file

@ -1,6 +1,6 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -1,36 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/cht-bsw-rt5672
SectionVerb {
Include.e.File "/codecs/rt5672/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/rt5672/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/rt5672/EnableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
<codecs/rt5672/Speaker.conf>
Include.spk.File "/codecs/rt5672/Speaker.conf"
RenameDevice."Speaker1" "Speaker"
RemoveDevice."Speaker2" "Speaker2"
<codecs/rt5672/HeadPhones.conf>
Include.hp.File "/codecs/rt5672/HeadPhones.conf"
<codecs/rt5672/DMIC2.conf>
Include.dmic.File "/codecs/rt5672/DMIC2.conf"
RenameDevice."Mic2" "Mic"
RemoveDevice."Mic1" "Mic1"
<codecs/rt5672/HeadsetMic.conf>
Include.hsmic.File "/codecs/rt5672/HeadsetMic.conf"

View file

@ -2,33 +2,22 @@
SectionVerb {
Include.e.File "/codecs/rt5672/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/rt5672/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/rt5672/EnableSeq.conf>
]
}
Before.EnableSequence "0"
True.Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
}
}
<codecs/rt5672/Speaker.conf>
<codecs/rt5672/MonoSpeaker.conf>
<codecs/rt5672/HeadPhones.conf>
Include.spk.File "/codecs/rt5672/Speaker.conf"
Include.mspk.File "/codecs/rt5672/MonoSpeaker.conf"
Include.hp.File "/codecs/rt5672/HeadPhones.conf"
<codecs/rt5672/DMIC1.conf>
<codecs/rt5672/DMIC2.conf>
<codecs/rt5672/HeadsetMic.conf>
Include.dmic1.File "/codecs/rt5672/DMIC1.conf"
Include.dmic2.File "/codecs/rt5672/DMIC2.conf"
Include.hsmic.File "/codecs/rt5672/HeadsetMic.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi-stereo-dmic2.conf"

View file

@ -1,6 +1,6 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/cht-bsw-rt5672
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -3,21 +3,16 @@ SectionVerb {
TQ "HiFi"
}
Include.e.File "/codecs/max98090/EnableSeq.conf"
If.platform {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
]
Before.EnableSequence "0"
True.Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
}
}
EnableSequence [
<codecs/max98090/EnableSeq.conf>
]
If.Quawks {
Condition {
@ -35,7 +30,7 @@ SectionVerb {
}
}
<codecs/max98090/Headphones.conf>
<codecs/max98090/Speaker.conf>
<codecs/max98090/InternalMic.conf>
<codecs/max98090/HeadsetMic.conf>
Include.hs.File "/codecs/max98090/Headphones.conf"
Include.spk.File "/codecs/max98090/Speaker.conf"
Include.mic.File "/codecs/max98090/InternalMic.conf"
Include.hsmic.File "/codecs/max98090/HeadsetMic.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"

View file

@ -5,31 +5,23 @@ SectionVerb {
TQ "HiFi"
}
Include.e.File "/codecs/nau8824/EnableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/nau8824/EnableSeq.conf>
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/nau8824/EnableSeq.conf>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
<codecs/nau8824/MonoSpeaker.conf>
<codecs/nau8824/HeadPhones.conf>
Include.mspk.File "/codecs/nau8824/MonoSpeaker.conf"
Include.hp.File "/codecs/nau8824/HeadPhones.conf"
<codecs/nau8824/InternalMic.conf>
<codecs/nau8824/HeadsetMic.conf>
Include.mic.File "/codecs/nau8824/InternalMic.conf"
Include.hsmic.File "/codecs/nau8824/HeadsetMic.conf"

View file

@ -1,31 +1,29 @@
SectionVerb {
Value {
TQ "HiFi"
}
Include.e.File "/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>
]
Include.pe {
File "/platforms/bytcr/PlatformEnableSeq.conf"
Before.EnableSequence "0"
}
False {
EnableSequence [
<codecs/nau8824/EnableSeq.conf>
]
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
Include.spk.File "/codecs/nau8824/Speaker.conf"
Include.hp.File "/codecs/nau8824/HeadPhones.conf"
<codecs/nau8824/Speaker.conf>
<codecs/nau8824/HeadPhones.conf>
<codecs/nau8824/InternalMic.conf>
<codecs/nau8824/HeadsetMic.conf>
Include.mic.File "/codecs/nau8824/InternalMic.conf"
Include.hsmic.File "/codecs/nau8824/HeadsetMic.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "chtnau8824 internal card"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "chtnau8824 internal card"

View file

@ -4,44 +4,27 @@ SectionVerb {
TQ "HiFi"
}
Include.ce.File "/codecs/rt5645/EnableSeq.conf"
Include.cd.File "/codecs/rt5645/DisableSeq.conf"
EnableSequence [
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"
]
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
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>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -58,9 +41,7 @@ SectionDevice."Speaker" {
"Headphones"
]
EnableSequence [
<codecs/rt5645/SpeakerEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/SpeakerEnableSeq.conf"
DisableSequence [
cset "name='Ext Spk Switch' off"
@ -81,9 +62,7 @@ SectionDevice."Headphones" {
"Speaker"
]
EnableSequence [
<codecs/rt5645/HeadphonesEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/HeadphonesEnableSeq.conf"
DisableSequence [
cset "name='Headphone Switch' off"
@ -99,18 +78,15 @@ SectionDevice."Mic" {
CapturePCM "hw:${CardId}"
}
EnableSequence [
<codecs/rt5645/DigitalMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/DigitalMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/DigitalMicDisableSeq.conf"
EnableSequence [
cset "name='Stereo1 DMIC Mux' DMIC1"
cset "name='Stereo1 ADC2 Mux' DMIC"
cset "name='Mono ADC L2 Mux' DMIC"
cset "name='Mono ADC R2 Mux' DMIC"
]
DisableSequence [
<codecs/rt5645/DigitalMicDisableSeq.conf>
]
}
SectionDevice."Headset" {
@ -122,9 +98,10 @@ SectionDevice."Headset" {
JackControl "Headset Mic Jack"
}
EnableSequence [
<codecs/rt5645/HSMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/HSMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/HSMicDisableSeq.conf"
EnableSequence [
cset "name='Sto1 ADC MIXL ADC2 Switch' off"
cset "name='Sto1 ADC MIXR ADC2 Switch' off"
@ -133,8 +110,4 @@ SectionDevice."Headset" {
cset "name='Mono ADC MIXL ADC2 Switch' off"
cset "name='Mono ADC MIXR ADC2 Switch' off"
]
DisableSequence [
<codecs/rt5645/HSMicDisableSeq.conf>
]
}

View file

@ -4,44 +4,27 @@ SectionVerb {
TQ "HiFi"
}
Include.ce.File "/codecs/rt5645/EnableSeq.conf"
Include.cd.File "/codecs/rt5645/DisableSeq.conf"
EnableSequence [
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"
]
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
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>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -58,9 +41,7 @@ SectionDevice."Speaker" {
"Headphones"
]
EnableSequence [
<codecs/rt5645/SpeakerEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/SpeakerEnableSeq.conf"
DisableSequence [
cset "name='Ext Spk Switch' off"
@ -81,9 +62,7 @@ SectionDevice."Headphones" {
"Speaker"
]
EnableSequence [
<codecs/rt5645/HeadphonesEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/HeadphonesEnableSeq.conf"
DisableSequence [
cset "name='Headphone Switch' off"
@ -99,9 +78,10 @@ SectionDevice."Mic" {
CapturePCM "hw:${CardId}"
}
EnableSequence [
<codecs/rt5645/DigitalMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/DigitalMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/DigitalMicDisableSeq.conf"
EnableSequence [
cset "name='Stereo1 DMIC Mux' DMIC2"
cset "name='Stereo1 ADC2 Mux' DMIC"
cset "name='Mono DMIC L Mux' DMIC2"
@ -109,10 +89,6 @@ SectionDevice."Mic" {
cset "name='Mono ADC L2 Mux' DMIC"
cset "name='Mono ADC R2 Mux' DMIC"
]
DisableSequence [
<codecs/rt5645/DigitalMicDisableSeq.conf>
]
}
SectionDevice."Headset" {
@ -124,9 +100,10 @@ SectionDevice."Headset" {
JackControl "Headset Mic Jack"
}
EnableSequence [
<codecs/rt5645/HSMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/HSMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/HSMicDisableSeq.conf"
EnableSequence [
cset "name='Sto1 ADC MIXL ADC2 Switch' off"
cset "name='Sto1 ADC MIXR ADC2 Switch' off"
@ -135,8 +112,4 @@ SectionDevice."Headset" {
cset "name='Mono ADC MIXL ADC2 Switch' off"
cset "name='Mono ADC MIXR ADC2 Switch' off"
]
DisableSequence [
<codecs/rt5645/HSMicDisableSeq.conf>
]
}

View file

@ -4,44 +4,26 @@ SectionVerb {
TQ "HiFi"
}
Include.ce.File "/codecs/rt5645/EnableSeq.conf"
Include.cd.File "/codecs/rt5645/DisableSeq.conf"
EnableSequence [
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"
cset "name='IN2 Boost' 8"
]
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
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>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -58,12 +40,12 @@ SectionDevice."Speaker" {
"Headphones"
]
Include.e.File "/codecs/rt5645/SpeakerEnableSeq.conf"
EnableSequence [
# Monospeaker: Mix right to left
cset "name='Stereo DAC MIXL DAC R1 Switch' 1"
cset "name='Stereo DAC MIXR DAC R1 Switch' 0"
<codecs/rt5645/SpeakerEnableSeq.conf>
]
DisableSequence [
@ -85,12 +67,12 @@ SectionDevice."Headphones" {
"Speaker"
]
Include.e.File "/codecs/rt5645/HeadphonesEnableSeq.conf"
EnableSequence [
# Undo monospeaker mixing
cset "name='Stereo DAC MIXL DAC R1 Switch' 0"
cset "name='Stereo DAC MIXR DAC R1 Switch' 1"
<codecs/rt5645/HeadphonesEnableSeq.conf>
]
DisableSequence [
@ -99,7 +81,10 @@ SectionDevice."Headphones" {
]
}
<codecs/rt5645/AnalogMic.conf>
Include.amic {
File "/codecs/rt5645/AnalogMic.conf"
Before.SectionDevice "Headset"
}
SectionDevice."Headset" {
Comment "Headset Microphone"
@ -110,9 +95,10 @@ SectionDevice."Headset" {
JackControl "Headset Mic Jack"
}
EnableSequence [
<codecs/rt5645/HSMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/HSMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/HSMicDisableSeq.conf"
EnableSequence [
cset "name='Sto1 ADC MIXL ADC2 Switch' off"
cset "name='Sto1 ADC MIXR ADC2 Switch' off"
@ -121,8 +107,4 @@ SectionDevice."Headset" {
cset "name='Mono ADC MIXL ADC2 Switch' off"
cset "name='Mono ADC MIXR ADC2 Switch' off"
]
DisableSequence [
<codecs/rt5645/HSMicDisableSeq.conf>
]
}

View file

@ -4,44 +4,27 @@ SectionVerb {
TQ "HiFi"
}
Include.ce.File "/codecs/rt5645/EnableSeq.conf"
Include.cd.File "/codecs/rt5645/DisableSeq.conf"
EnableSequence [
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"
]
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
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>
]
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
@ -58,9 +41,7 @@ SectionDevice."Speaker" {
"Headphones"
]
EnableSequence [
<codecs/rt5645/SpeakerEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/SpeakerEnableSeq.conf"
DisableSequence [
cset "name='Ext Spk Switch' off"
@ -81,9 +62,7 @@ SectionDevice."Headphones" {
"Speaker"
]
EnableSequence [
<codecs/rt5645/HeadphonesEnableSeq.conf>
]
Include.e.File "/codecs/rt5645/HeadphonesEnableSeq.conf"
DisableSequence [
cset "name='Headphone Switch' off"
@ -91,7 +70,10 @@ SectionDevice."Headphones" {
]
}
<codecs/rt5645/AnalogMic.conf>
Include.amic {
File "/codecs/rt5645/AnalogMic.conf"
Before.SectionDevice "Headset"
}
SectionDevice."Headset" {
Comment "Headset Microphone"
@ -102,9 +84,10 @@ SectionDevice."Headset" {
JackControl "Headset Mic Jack"
}
EnableSequence [
<codecs/rt5645/HSMicEnableSeq.conf>
Include.e.File "/codecs/rt5645/HSMicEnableSeq.conf"
Include.d.File "/codecs/rt5645/HSMicDisableSeq.conf"
EnableSequence [
cset "name='Sto1 ADC MIXL ADC2 Switch' off"
cset "name='Sto1 ADC MIXR ADC2 Switch' off"
@ -113,8 +96,4 @@ SectionDevice."Headset" {
cset "name='Mono ADC MIXL ADC2 Switch' off"
cset "name='Mono ADC MIXR ADC2 Switch' off"
]
DisableSequence [
<codecs/rt5645/HSMicDisableSeq.conf>
]
}

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "Intel SoC Audio Device"
SectionUseCase."HiFi" {
File "HiFi-dmic1.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "Intel SoC Audio Device"
SectionUseCase."HiFi" {
File "HiFi-dmic2.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "Intel SoC Audio Device"
SectionUseCase."HiFi" {
File "HiFi-mono-speaker-analog-mic.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
Comment "Intel SoC Audio Device"
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -5,45 +5,28 @@ SectionVerb {
TQ "HiFi"
}
Include.e.File "/codecs/rt5645/EnableSeq.conf"
Include.d.File "/codecs/rt5645/DisableSeq.conf"
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
Before.EnableSequence "0"
True {
EnableSequence [
<platforms/bytcr/PlatformEnableSeq.conf>
<codecs/rt5645/EnableSeq.conf>
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
EnableSequence [
cset "name='Speaker HWEQ' 1,164,237,135,1,165,0,0,1,166,237,135,1,167,0,0,1,192,30,196,1,193,0,0,1,194,30,196,1,195,0,0,1,196,31,180,1,197,0,75,1,198,31,180,1,199,31,180,1,200,0,75,1,201,31,180,0,177,51,224"
cset "name='DAC1 Playback Volume' 77,77"
cset "name='Speaker ClassD Playback Volume' 4"
cset "name='I2S2 Func Switch' off"
cset "name='RT5650 IF1 ADC Mux' 0"
]
DisableSequence [
<platforms/bytcr/PlatformDisableSeq.conf>
<codecs/rt5645/DisableSeq.conf>
]
}
False {
EnableSequence [
<codecs/rt5645/EnableSeq.conf>
cset "name='Speaker HWEQ' 1,164,237,135,1,165,0,0,1,166,237,135,1,167,0,0,1,192,30,196,1,193,0,0,1,194,30,196,1,195,0,0,1,196,31,180,1,197,0,75,1,198,31,180,1,199,31,180,1,200,0,75,1,201,31,180,0,177,51,224"
cset "name='DAC1 Playback Volume' 77,77"
cset "name='Speaker ClassD Playback Volume' 4"
cset "name='I2S2 Func Switch' off"
cset "name='RT5650 IF1 ADC Mux' 0"
]
DisableSequence [
<codecs/rt5645/DisableSeq.conf>
]
}
}
}
SectionDevice."Speaker" {
@ -58,9 +41,7 @@ SectionDevice."Speaker" {
"Headphones"
]
EnableSequence [
<codecs/rt5645/SpeakerEnableSeq.conf>
]
Include.spk.File "/codecs/rt5645/SpeakerEnableSeq.conf"
DisableSequence [
cset "name='Ext Spk Switch' off"
@ -82,9 +63,7 @@ SectionDevice."Headphones" {
"Speaker"
]
EnableSequence [
<codecs/rt5645/HeadphonesEnableSeq.conf>
]
Include.hse.File "/codecs/rt5645/HeadphonesEnableSeq.conf"
DisableSequence [
cset "name='Headphone Switch' off"
@ -123,15 +102,15 @@ SectionDevice."Mic2" {
JackHWMute "Mic1"
}
EnableSequence [
<codecs/rt5645/HSMicEnableSeq.conf>
Include.hsmice.File "/codecs/rt5645/HSMicEnableSeq.conf"
EnableSequence [
cset "name='IN1 Boost' 1"
]
DisableSequence [
<codecs/rt5645/HSMicDisableSeq.conf>
Include.hsmicd.File "/codecs/rt5645/HSMicDisableSeq.conf"
DisableSequence [
cset "name='IN1 Boost' 0"
]
}

View file

@ -1,5 +1,5 @@
Comment "Intel SoC Audio Device"
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"

View file

@ -1,3 +1,4 @@
DisableSequence [
# Output Configuration
cset "name='I2S DAC1L Switch' off"
cset "name='I2S DAC1R Switch' off"
@ -5,3 +6,4 @@ cset "name='I2S DAC1R Switch' off"
# Input Configuration
cset "name='I2S ADC1L Switch' off"
cset "name='I2S ADC1R Switch' off"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# Disable all inputs / outputs
cset "name='Ext Spk Switch' off"
cset "name='Headphone Switch' off"
@ -11,3 +12,4 @@ cset "name='I2S DAC1R Switch' on"
# Input Configuration
cset "name='I2S ADC1L Switch' on"
cset "name='I2S ADC1R Switch' on"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# Disable all inputs / outputs
cset "name='Speaker Switch' off"
cset "name='Headphone Switch' off"
@ -17,3 +18,4 @@ cset "name='ADC PGA Gain Volume' 10"
cset "name='Left Headphone Mixer Left DAC Switch' on"
cset "name='Right Headphone Mixer Right DAC Switch' on"
cset "name='ALC Capture Switch' on"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='Left Speaker Mixer Left DAC Switch' on"
cset "name='Right Speaker Mixer Right DAC Switch' on"
cset "name='Digital EQ 3 Band Switch' off"
@ -23,3 +24,4 @@ cset "name='Speaker Volume' 10"
cset "name='Speaker Left Mixer Volume' 3"
cset "name='Speaker Right Mixer Volume' 3"
cset "name='Playback Path DC Blocking' on"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# Playback TDM configuration
cset "name='DACL Channel Source' 0"
cset "name='DACR Channel Source' 1"
@ -13,3 +14,4 @@ cset "name='THD for key media' 10"
cset "name='THD for key voice command' 16"
cset "name='THD for key volume up' 38"
cset "name='THD for key volume down' 115"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# RT5640 default output routing
cset "name='OUT MIXL DAC L1 Switch' on"
cset "name='OUT MIXR DAC R1 Switch' on"
@ -39,3 +40,4 @@ cset "name='IN3 Boost' 8"
cset "name='Internal Mic Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='ADC Capture Switch' on"
]

View file

@ -1,5 +1,7 @@
DisableSequence [
cset "name='Sto1 ADC MIXL ADC2 Switch' off"
cset "name='Sto1 ADC MIXR ADC2 Switch' off"
cset "name='Mono ADC MIXL ADC2 Switch' off"
cset "name='Mono ADC MIXR ADC2 Switch' off"
cset "name='Int Mic Switch' off"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='Int Mic Switch' on"
cset "name='Sto1 ADC MIXL ADC1 Switch' off"
@ -8,3 +9,4 @@ cset "name='Mono ADC MIXL ADC1 Switch' off"
cset "name='Mono ADC MIXR ADC1 Switch' off"
cset "name='Mono ADC MIXL ADC2 Switch' on"
cset "name='Mono ADC MIXR ADC2 Switch' on"
]

View file

@ -1,3 +1,4 @@
DisableSequence [
# Disable audio output path
cset "name='codec_out1 mix 0 pcm0_in Switch' off"
cset "name='media0_out mix 0 media1_in Switch' off"
@ -13,3 +14,4 @@ cset "name='media_loop2_out mix 0 codec_in0 Switch' off"
cset "name='media_loop2_out Gain 0 Switch' off"
cset "name='pcm1_out Gain 0 Switch' off"
cset "name='codec_in0 Gain 0 Switch' off"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# Output Configuration
cset "name='DAC1 L Mux' IF1 DAC"
cset "name='DAC1 R Mux' IF1 DAC"
@ -44,3 +45,4 @@ cset "name='Mono ADC Capture Volume' 55"
cset "name='Mono ADC Boost Capture Volume' 0"
# 27/31
cset "name='IN Capture Volume' 27"
]

View file

@ -1,6 +1,8 @@
DisableSequence [
cset "name='Headset Mic Switch' off"
cset "name='RECMIXL BST1 Switch' off"
cset "name='RECMIXR BST1 Switch' off"
cset "name='Sto1 ADC MIXL ADC1 Switch' off"
cset "name='Sto1 ADC MIXR ADC1 Switch' off"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='Headset Mic Switch' on"
cset "name='Sto1 ADC MIXL ADC1 Switch' on"
@ -5,3 +6,4 @@ cset "name='Sto1 ADC MIXR ADC1 Switch' on"
cset "name='RECMIXL BST1 Switch' on"
cset "name='RECMIXR BST1 Switch' on"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='Ext Spk Switch' off"
cset "name='Speaker Channel Switch' off"
@ -5,3 +6,4 @@ cset "name='Headphone Switch' on"
cset "name='Headphone Channel Switch' on"
# 25/39 higher values cause crackling on some boards
cset "name='Headphone Playback Volume' 25"
]

View file

@ -1,6 +1,8 @@
EnableSequence [
cset "name='Headphone Switch' off"
cset "name='Headphone Channel Switch' off"
cset "name='Ext Spk Switch' on"
cset "name='Speaker Channel Switch' on"
cset "name='Speaker Playback Volume' 31"
]

View file

@ -1,3 +1,5 @@
EnableSequence [
# default state
cset "name='HPO MIX DAC1 Switch' on"
cset "name='HPO MIX HPVOL Switch' off"
@ -54,3 +56,4 @@ cset "name='RECMIXR BST2 Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='Internal Mic Switch' off"
cset "name='Line In Switch' off"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
# Playback (I2S1)
# common
@ -46,3 +47,4 @@ cset "name='RECMIXL BST1 Switch' off"
cset "name='RECMIXR BST1 Switch' off"
cset "name='RECMIXL BST2 Switch' off"
cset "name='RECMIXR BST2 Switch' off"
]

View file

@ -1,5 +1,7 @@
DisableSequence [
cset "name='RX INT7_1 MIX1 INP0' ZERO"
cset "name='RX INT8_1 MIX1 INP0' ZERO"
cset "name='RX INT1_2 MUX' ZERO"
cset "name='RX INT2_2 MUX' ZERO"
cset "name='CDC_IF TX0 MUX' ZERO"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='SLIM RX1 MUX' AIF1_PB"
cset "name='SLIM RX2 MUX' AIF1_PB"
cset "name='SLIM RX6 MUX' ZERO"
@ -12,3 +13,4 @@ cset "name='RX INT8_1 MIX1 INP0' RX2"
cset "name='RX INT1_2 MUX' RX1"
cset "name='RX INT2_2 MUX' RX2"
cset "name='CDC_IF TX0 MUX' DEC0"
]

View file

@ -1,4 +1,6 @@
DisableSequence [
cset "name='RX7 Digital Volume' 0"
cset "name='RX8 Digital Volume' 0"
cset "name='COMP7 Switch' 0"
cset "name='COMP8 Switch' 0"
]

View file

@ -1,4 +1,6 @@
EnableSequence [
cset "name='COMP7 Switch' 1"
cset "name='COMP8 Switch' 1"
cset "name='RX7 Digital Volume' 80"
cset "name='RX8 Digital Volume' 80"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='SpkrLeft COMP Switch' 1"
cset "name='SpkrLeft BOOST Switch' 1"
cset "name='SpkrLeft DAC Switch' 1"
@ -6,3 +7,4 @@ cset "name='SpkrRight COMP Switch' 1"
cset "name='SpkrRight BOOST Switch' 1"
cset "name='SpkrRight DAC Switch' 1"
cset "name='SpkrRight VISENSE Switch' 0"
]

View file

@ -1,3 +1,4 @@
DisableSequence [
cset "name='SpkrLeft COMP Switch' 0"
cset "name='SpkrLeft BOOST Switch' 0"
cset "name='SpkrLeft DAC Switch' 0"
@ -6,3 +7,4 @@ cset "name='SpkrRight COMP Switch' 0"
cset "name='SpkrRight BOOST Switch' 0"
cset "name='SpkrRight DAC Switch' 0"
cset "name='SpkrRight VISENSE Switch' 0"
]

View file

@ -1,3 +1,4 @@
EnableSequence [
cset "name='SpkrLeft COMP Switch' 1"
cset "name='SpkrLeft BOOST Switch' 1"
cset "name='SpkrLeft DAC Switch' 1"
@ -8,3 +9,4 @@ cset "name='SpkrRight BOOST Switch' 1"
cset "name='SpkrRight DAC Switch' 1"
cset "name='SpkrRight VISENSE Switch' 0"
cset "name='SpkrRight PA Volume' 12"
]

View file

@ -92,5 +92,5 @@ SectionDevice."Mic" {
}
}
<hda-dsp/Hdmi1.conf>
<hda-dsp/Hdmi2.conf>
Include.hdmi1.File "Hdmi1.conf"
Include.hdmi2.File "Hdmi2.conf"

View file

@ -1,7 +1,7 @@
# UCM for Intel CAVS platforms
# For Audio in HDA and DMIC mode
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -1,4 +1,6 @@
# disable audio output path
DisableSequence [
cset "name='codec_out0 mix 0 pcm0_in Switch' off"
cset "name='modem_out mix 0 pcm0_in Switch' off"
@ -18,3 +20,4 @@ cset "name='modem_out Gain 0 Switch' off"
cset "name='pcm1_out Gain 0 Switch' off"
cset "name='codec_in0 Gain 0 Switch' off"
cset "name='modem_in Gain 0 Switch' off"
]

View file

@ -1,3 +1,5 @@
EnableSequence [
# media mixer settings
# compress
cset "name='media0_in Gain 0 Switch' on"
@ -113,3 +115,4 @@ cset "name='sprot_loop_out mix 0 media_loop2_in Switch' off"
cset "name='sprot_loop_out mix 0 pcm0_in Switch' off"
cset "name='sprot_loop_out mix 0 pcm1_in Switch' off"
cset "name='sprot_loop_out mix 0 sprot_loop_in Switch' off"
]

View file

@ -108,5 +108,5 @@ SectionDevice."Mic" {
}
}
<skylake-rt286/Hdmi1.conf>
<skylake-rt286/Hdmi2.conf>
Include.hdmi1.File "/skylake-rt286/Hdmi1.conf"
Include.hdmi2.File "/skylake-rt286/Hdmi2.conf"

View file

@ -1,7 +1,7 @@
# UCM for Intel SKYLAKE/KABYLAKE platforms
# For Audio in I2S mode
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"

View file

@ -108,7 +108,7 @@ If.monomic {
Value {
CapturePriority 200
<sof-hda-dsp/HDA-Capture-value.conf>
Include.value.File "HDA-Capture-value.conf"
JackControl "Headphone Mic Jack"
}
}
@ -122,7 +122,7 @@ If.monomic {
Value {
CapturePriority 300
<sof-hda-dsp/HDA-Capture-value.conf>
Include.value.File "HDA-Capture-value.conf"
JackControl "Headphone Mic Jack"
}
}
@ -133,7 +133,7 @@ If.monomic {
Value {
CapturePriority 200
<sof-hda-dsp/HDA-Capture-value.conf>
Include.value.File "HDA-Capture-value.conf"
JackControl "Mic Jack"
}
}
@ -175,4 +175,4 @@ SectionDevice."Mic1" {
}
}
<sof-hda-dsp/Hdmi.conf>
Include.hdmi.File "Hdmi.conf"

View file

@ -1,4 +1,4 @@
Syntax 2
Syntax 3
SectionUseCase."HiFi" {
File "HiFi.conf"