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).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
  • Loading branch information
krzk committed Jun 11, 2024
1 parent eab577b commit d2e10ee
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ucm2/Qualcomm/x1e80100/HiFi.conf
Original file line number Diff line number Diff line change
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 d2e10ee

Please sign in to comment.