Skip to content

Commit

Permalink
codes: wcd938x: Add Analog Microphones 1 & 5 Sequences
Browse files Browse the repository at this point in the history
Add Enable and Disable sequences for Analog microphones connected
to WCD989x Inputs 1 & 5.

Closes: #393
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
superna9999 authored and perexg committed Aug 2, 2024
1 parent 27ee7e6 commit 49d63d7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ucm2/codecs/wcd938x/AnalogMic1DisableSeq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Analog Microphone on Input1 via ADC1
DisableSequence [
cset "name='ADC1_MIXER Switch' 0"
cset "name='ADC1 Switch' 0"
cset "name='TX0 MODE' ADC_INVALID"
]
6 changes: 6 additions & 0 deletions ucm2/codecs/wcd938x/AnalogMic1EnableSeq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Analog Microphone on Input1 via ADC1
EnableSequence [
cset "name='ADC1_MIXER Switch' 1"
cset "name='ADC1 Switch' 1"
cset "name='TX0 MODE' ADC_NORMAL"
]
6 changes: 6 additions & 0 deletions ucm2/codecs/wcd938x/AnalogMic5DisableSeq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Analog Microphone on Input5 via ADC4
DisableSequence [
cset "name='ADC4_MIXER Switch' 0"
cset "name='ADC4 Switch' 0"
cset "name='TX3 MODE' ADC_INVALID"
]
8 changes: 8 additions & 0 deletions ucm2/codecs/wcd938x/AnalogMic5EnableSeq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Analog Microphone on Input5 via ADC4
EnableSequence [
cset "name='ADC4_MIXER Switch' 1"
cset "name='HDR34 MUX' NO_HDR34"
cset "name='ADC4 MUX' INP5"
cset "name='ADC4 Switch' 1"
cset "name='TX3 MODE' ADC_NORMAL"
]

0 comments on commit 49d63d7

Please sign in to comment.