Add an HDMI device for DisplayPort output on hw:CardId,5, guarded by a
ControlExists condition on the 'DP Jack' control so it only shows up
when the DPTX back end is enabled in the device tree.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/797
Signed-off-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
+If.DP {
+ Condition {
+ Type ControlExists
+ Control "iface=CARD,name='DP Jack'"
+ }
+ True {
+ SectionDevice."HDMI" {
+ Comment "DP output"
+
+ Value {
+ PlaybackPriority 300
+ PlaybackChannels 2
+ PlaybackPCM "hw:${CardId},5"
+ JackControl "DP Jack"
+ }
+ }
+ }
+}
+
SectionDevice."Speaker" {
Comment "Lineout speaker"
]
Value {
- PlaybackPriority 300
+ PlaybackPriority 400
PlaybackChannels 2
PlaybackPCM "hw:${CardId},${var:PlayDevN}"
PlaybackVolume "Lineout Volume"
]
Value {
- PlaybackPriority 400
+ PlaybackPriority 500
PlaybackChannels 2
PlaybackPCM "hw:${CardId},${var:PlayDevN}"
PlaybackVolume "Headset Volume"
cset "name='UL4_CH2 PCM_0_CAP_CH2' on"
cset "name='I2S_IN0_Mux' Dummy_Widget"
cset "name='I2S_OUT0_Mux' Dummy_Widget"
+ cset "name='HDMI_CH0_MUX' CH0"
+ cset "name='HDMI_CH1_MUX' CH1"
+ cset "name='DPTX_OUT_MUX' Connect"
]