Skip to content

Commit

Permalink
ucm2: Qualcomm: x1e80100: add USB DisplayPort playback
Browse files Browse the repository at this point in the history
Add two DisplayPort (over USB) playback devices, conflicting with the
headset, because they use the same Multimedia1 frontend.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
  • Loading branch information
krzk committed Jun 10, 2024
1 parent 4aa9822 commit 279b550
Showing 1 changed file with 60 additions and 1 deletion.
61 changes: 60 additions & 1 deletion ucm2/Qualcomm/x1e80100/HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

SectionVerb {
EnableSequence [
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
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='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 @@ -38,12 +40,24 @@ SectionDevice."Speaker" {

SectionDevice."Headphones" {
Comment "Headphones playback"
ConflictingDevice [
"HDMI0"
"HDMI1"
]

Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"

EnableSequence [
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 1"
]

DisableSequence [
cset "name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1' 0"
]

Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId},0"
Expand All @@ -67,3 +81,48 @@ SectionDevice."Mic" {
CapturePCM "hw:${CardId},3"
}
}

SectionDevice."HDMI0" {
Comment "USB/DisplayPort 0 playback"
ConflictingDevice [
"Headphones"
"HDMI1"
]

EnableSequence [
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia1' 1"
]

DisableSequence [
cset "name='DISPLAY_PORT_RX_0 Audio Mixer MultiMedia1' 0"
]

Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId},0"
JackControl "DP0 Jack"
}
}

SectionDevice."HDMI1" {
Comment "USB/DisplayPort 1 playback"

ConflictingDevice [
"Headphones"
"HDMI0"
]

EnableSequence [
cset "name='DISPLAY_PORT_RX_1 Audio Mixer MultiMedia1' 1"
]

DisableSequence [
cset "name='DISPLAY_PORT_RX_1 Audio Mixer MultiMedia1' 0"
]

Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},0"
JackControl "DP1 Jack"
}
}

0 comments on commit 279b550

Please sign in to comment.