Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 19 additions & 78 deletions ucm2/Intel/sof-essx8336/HiFi.conf
Original file line number Diff line number Diff line change
@@ -1,71 +1,31 @@
SectionVerb {
EnableSequence [
disdevall ""
#disdevall ""
# Disable all inputs / outputs
# (may be duplicated with disdevall)
cset "name='Headphone Switch' off"
cset "name='Headset Mic Switch' off"
cset "name='Internal Mic Switch' off"
cset "name='DAC Mono Mix Switch' off"
cset "name='Left Headphone Mixer Left DAC Switch' on"
cset "name='Right Headphone Mixer Right DAC Switch' on"
]
}

If.amic {
Condition {
Type String
Empty "${var:DeviceDmic}"
}
True.SectionDevice."Mic" {
SectionDevice."Mic" {
Comment "Analog Microphone"

ConflictingDevice [
"Headset"
]

EnableSequence [
cset "name='Differential Mux' lin1-rin1"
cset "name='Internal Mic Switch' on"
cset "name='Headset Mic Switch' on"
]

DisableSequence [
cset "name='Internal Mic Switch' off"
]

]

Value {
CapturePriority 100
CapturePCM "hw:${CardId}"
CaptureMixerElem "ADC PGA Gain"
CaptureMasterElem "ADC"
}
}
}

If.dmic {
Condition {
Type String
Empty "${var:DeviceDmic}"
}
False.SectionDevice."${var:DeviceDmic}" {
Comment "Digital Microphone"

Value {
CapturePriority 100
CapturePCM "hw:${CardId},1"
If.chn {
Condition {
Type RegexMatch
Regex "cfg-dmics:[34]"
String "${CardComponents}"
}
True {
CaptureChannels 4
}
}
CaptureMixerElem "Dmic0"
CaptureVolume "Dmic0 Capture Volume"
CaptureSwitch "Dmic0 Capture Switch"
}
}
}

SectionDevice."Speaker" {
Expand All @@ -77,10 +37,12 @@ SectionDevice."Speaker" {

EnableSequence [
cset "name='Speaker Switch' on"
cset "name='Differential Mux' lin1-rin1"
]

DisableSequence [
cset "name='Speaker Switch' off"
cset "name='Differential Mux' lin2-rin2"
]
Value {
PlaybackPriority 100
Expand All @@ -98,6 +60,16 @@ SectionDevice."Headphones" {
ConflictingDevice [
"Speaker"
]

EnableSequence [
cset "name='Headset Mic Switch' on"
cset "name='Speaker Switch' off"
cset "name='Differential Mux' lin2-rin2"
]

DisableSequence [
cset "name='Differential Mux' lin1-rin1"
]

Value {
PlaybackPriority 300
Expand All @@ -109,35 +81,4 @@ SectionDevice."Headphones" {
}
}

SectionDevice."Headset" {
Comment "Headset Microphone"

If.conflict {
Condition {
Type String
Empty "${var:DeviceDmic}"
}
True.ConflictingDevice [
"Mic"
]
}

EnableSequence [
cset "name='Headset Switch' on"
cset "name='Digital Mic Mux' 'dmic disable'"
]

DisableSequence [
cset "name='Headset Switch' on"
]

Value {
CapturePriority 300
CapturePCM "hw:${CardId}"
CaptureMixerElem "ADC PGA Gain"
CaptureMasterElem "ADC"
JackControl "Headset Mic Jack"
}
}

Include.hdmi.File "/Intel/sof-essx8336/Hdmi.conf"