Skip to content

Commit

Permalink
ucm2: Qualcomm: x1e80100: add Headset capture
Browse files Browse the repository at this point in the history
Add device for recording via headset (AMIC2 analogue microphone).

Closes: #423
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
krzk authored and perexg committed Aug 2, 2024
1 parent fa40b70 commit eb4eff2
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion ucm2/Qualcomm/x1e80100/HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SectionVerb {
EnableSequence [
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia1' 0"
cset "name='DISPLAY_PORT_RX_1 Audio Mixer MultiMedia1' 0"
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 0"
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
cset "name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2' 1"
cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1"
Expand Down Expand Up @@ -69,9 +69,33 @@ SectionDevice."Headphones" {
}
}

SectionDevice."Headset" {
Comment "Headset microphone"

ConflictingDevice [
"Mic"
]

Include.wcdmice.File "/codecs/wcd938x/HeadphoneMicEnableSeq.conf"
Include.wcdmicd.File "/codecs/wcd938x/HeadphoneMicDisableSeq.conf"
Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf"
Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf"

Value {
CapturePriority 200
CapturePCM "hw:${CardId},2"
CaptureMixerElem "ADC2"
JackControl "Mic Jack"
}
}

SectionDevice."Mic" {
Comment "Internal microphones"

ConflictingDevice [
"Headset"
]

Include.vadm0e.File "/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf"
Include.vadm0d.File "/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf"
Include.vadm1e.File "/codecs/qcom-lpass/va-macro/DMIC1EnableSeq.conf"
Expand Down

0 comments on commit eb4eff2

Please sign in to comment.