Commit bc6c646f authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

ucm2: Improve devkit config

Use the mux to switch mics and properly configure defaults and
detect headphone jack.
parent 2ccdf642
Pipeline #65205 passed with stages
in 4 minutes and 21 seconds
...@@ -2,9 +2,18 @@ SectionVerb { ...@@ -2,9 +2,18 @@ SectionVerb {
EnableSequence [ EnableSequence [
cset "name='Digital Input Mux' I2S" cset "name='Digital Input Mux' I2S"
cset "name='PCM Playback Volume' 144" cset "name='PCM Playback Volume' 144"
cset "name='AVC Switch' off"
cset "name='Headphone Playback ZC Switch' off"
cset "name='Capture Attenuate Switch (-6dB)' off"
cset "name='Capture Mux' MIX_IN"
cset "name='Capture ZC Switch' off"
cset "name='Capture Switch' On"
cset "name='Capture Volume' 15,15"
] ]
DisableSequence [ DisableSequence [
cset "name='Digital Playback Volume' 0" cset "name='PCM Playback Volume' 0"
] ]
Value { Value {
} }
...@@ -18,6 +27,7 @@ SectionDevice."Handset".0 { ...@@ -18,6 +27,7 @@ SectionDevice."Handset".0 {
] ]
EnableSequence [ EnableSequence [
cset "name='Mic Mux MUX' Input 2"
cset "name='Lineout Playback Switch' on" cset "name='Lineout Playback Switch' on"
cset "name='Lineout Playback Volume' 18" cset "name='Lineout Playback Volume' 18"
cset "name='Mic Volume' 2" cset "name='Mic Volume' 2"
...@@ -44,6 +54,7 @@ SectionDevice."Headset".0 { ...@@ -44,6 +54,7 @@ SectionDevice."Headset".0 {
] ]
EnableSequence [ EnableSequence [
cset "name='Mic Mux MUX' Input 1"
cset "name='Headphone Mux' DAC" cset "name='Headphone Mux' DAC"
cset "name='Headphone Playback Volume' 63" cset "name='Headphone Playback Volume' 63"
cset "name='Headphone Playback Switch' on" cset "name='Headphone Playback Switch' on"
...@@ -58,5 +69,6 @@ SectionDevice."Headset".0 { ...@@ -58,5 +69,6 @@ SectionDevice."Headset".0 {
PlaybackSwitch "name='Headphone Playback Switch'" PlaybackSwitch "name='Headphone Playback Switch'"
CapturePriority "700" CapturePriority "700"
CapturePCM "hw:${CardId},0" CapturePCM "hw:${CardId},0"
JackControl "Headphones Jack"
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment