-Syntax 4
+Syntax 6
Define.Use "" # a non-empty string to use UCM configuration for HDA devices
Define.Done "" # a non-empty string to skip the end error
-# Use case Configuration for sof-hda-dsp
+# HDA HDMI devices
+
+Include.hdmi.File "/codecs/hda/hdmi.conf"
If.hdmi1 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 1
- HdmiPCM 3
- HdmiCtlIndex 0
- HdmiPrio 1100
- }
- Include.hdmi1.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 1
+ Device 3
+ Priority 1100
}
}
If.hdmi2 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 2
- HdmiPCM 7
- HdmiCtlIndex 1
- HdmiPrio 1200
- }
- Include.hdmi2.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi2.HDMI {
+ Number 2
+ Device 7
+ Priority 1200
}
}
If.hdmi3 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 3
- HdmiPCM 8
- HdmiCtlIndex 2
- HdmiPrio 1300
- }
- Include.hdmi3.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi3.HDMI {
+ Number 3
+ Device 8
+ Priority 1300
}
}
If.hdmi4 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 4
- HdmiPCM 9
- HdmiCtlIndex 3
- HdmiPrio 1400
- }
- Include.hdmi4.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi4.HDMI {
+ Number 4
+ Device 9
+ Priority 1400
}
}
If.hdmi5 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 5
- HdmiPCM 10
- HdmiCtlIndex 4
- HdmiPrio 1500
- }
- Include.hdmi5.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi5.HDMI {
+ Number 5
+ Device 10
+ Priority 1500
}
}
If.hdmi6 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 6
- HdmiPCM 11
- HdmiCtlIndex 5
- HdmiPrio 1600
- }
- Include.hdmi6.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi5.HDMI {
+ Number 6
+ Device 11
+ Priority 1600
}
}
# Use case Configuration for sof-es8336
+Include.hdmi.File "/codecs/hda/hdmi.conf"
+
If.hdmi1 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 1
- HdmiPCM 5
- HdmiCtlIndex 0
- HdmiPrio 500
- }
- Include.hdmi1.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 1
+ Device 5
+ Priority 500
}
}
If.hdmi2 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 2
- HdmiPCM 6
- HdmiCtlIndex 1
- HdmiPrio 600
- }
- Include.hdmi2.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi2.HDMI {
+ Number 2
+ Device 6
+ Priority 600
}
}
If.hdmi3 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 3
- HdmiPCM 7
- HdmiCtlIndex 2
- HdmiPrio 700
- }
- Include.hdmi3.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi3.HDMI {
+ Number 3
+ Device 7
+ Priority 700
}
}
-Syntax 4
+Syntax 6
BootSequence [
# Setup muxes / switches
# Use case Configuration for sof-hda-dsp
+Include.hdmi.File "/codecs/hda/hdmi.conf"
+
If.hdmi1 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 1
- HdmiPCM 3
- HdmiCtlIndex 0
- HdmiPrio 500
- }
- Include.hdmi1.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 1
+ Device 3
+ Priority 500
}
}
If.hdmi2 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 2
- HdmiPCM 4
- HdmiCtlIndex 1
- HdmiPrio 600
- }
- Include.hdmi2.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 2
+ Device 4
+ Priority 600
}
}
If.hdmi3 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 3
- HdmiPCM 5
- HdmiCtlIndex 2
- HdmiPrio 700
- }
- Include.hdmi3.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 3
+ Device 5
+ Priority 700
}
}
-Syntax 4
+Syntax 6
Define.DeviceMic "Mic"
Define.DeviceDmic ""
+Include.hdmi.File "/codecs/hda/hdmi.conf"
+
If.hdmi {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 1
- HdmiPCM 3
- HdmiCtlIndex 0
- HdmiPrio 1100
- }
- Include.hdmi.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi.HDMI {
+ Number 1
+ Device 3
+ Priority 1100
}
}
# UCM for Nvidia Tegra30 HDMI Audio
-Syntax 4
+Syntax 6
SectionUseCase."HiFi" {
File "/Tegra/tegra-hda/tegra-hda-HiFi.conf"
-If.hdmi {
+#
+# Macro HDMI
+#
+# Arguments:
+#
+# Number HDMI number
+# Device PCM device number
+# Priority UCM device priority
+#
+
+DefineMacro.HDMI.If.hdmi {
Condition {
Type ControlExists
- Control "iface=CARD,name='HDMI/DP,pcm=${var:HdmiPCM} Jack'"
+ Control "iface=CARD,name='HDMI/DP,pcm=${var:__Device} Jack'"
}
True {
- SectionDevice."HDMI${var:HdmiNum}" {
- Comment "HDMI / DisplayPort ${var:HdmiNum} Output"
+ SectionDevice."HDMI${var:__Number}" {
+ Comment "HDMI / DisplayPort ${var:__Number} Output"
EnableSequence [
- cset "name='IEC958 Playback Switch',index=${var:HdmiCtlIndex} on"
+ cset "name='IEC958 Playback Switch',index=${eval:($__Number-1)} on"
]
DisableSequence [
- cset "name='IEC958 Playback Switch',index=${var:HdmiCtlIndex} off"
+ cset "name='IEC958 Playback Switch',index=${eval:($__Number-1)} off"
]
Value {
- PlaybackPriority "${var:HdmiPrio}"
- PlaybackPCM "hw:${CardId},${var:HdmiPCM}"
- JackControl "HDMI/DP,pcm=${var:HdmiPCM} Jack"
+ PlaybackPriority "${var:__Priority}"
+ PlaybackPCM "hw:${CardId},${var:__Device}"
+ JackControl "HDMI/DP,pcm=${var:__Device} Jack"
}
}
}
# Use case Configuration for sof-soundwire
+Include.hdmi.File "/codecs/hda/hdmi.conf"
+
If.hdmi1 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 1
- HdmiPCM 5
- HdmiCtlIndex 0
- HdmiPrio 500
- }
- Include.hdmi1.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi1.HDMI {
+ Number 1
+ Device 5
+ Priority 500
}
}
If.hdmi2 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 2
- HdmiPCM 6
- HdmiCtlIndex 1
- HdmiPrio 600
- }
- Include.hdmi2.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi2.HDMI {
+ Number 2
+ Device 6
+ Priority 600
}
}
If.hdmi3 {
- Condition { Type String Empty "" }
- True {
- Define {
- HdmiNum 3
- HdmiPCM 7
- HdmiCtlIndex 2
- HdmiPrio 700
- }
- Include.hdmi3.File "/codecs/hda/hdmi.conf"
+ Condition { Type AlwaysTrue }
+ True.Macro.hdmi2.HDMI {
+ Number 3
+ Device 7
+ Priority 700
}
}
-Syntax 4
+Syntax 6
SectionUseCase."HiFi" {
File "/sof-soundwire/HiFi.conf"