Add necessary DAI links and DAI name prefixes to enable audio playback
over USB/DisplayPort and HDMI.  The HDMI port is not yet enabled, but it
should carry respective DAI name prefix regardless.

Signed-off-by: Krzysztof Kozlowski <[email protected]>

---

ALSA UCM and audioreach topology will follow up as well.
---
 .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi   | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi 
b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
index 654cbce9d6ec..103c4ca97adb 100644
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
@@ -351,6 +351,54 @@ sound {
                                "VA DMIC1", "VA MIC BIAS1",
                                "TX SWR_INPUT1", "ADC2_OUTPUT";
 
+               displayport-0-dai-link {
+                       link-name = "DisplayPort0 Playback";
+
+                       codec {
+                               sound-dai = <&mdss_dp0>;
+                       };
+
+                       cpu {
+                               sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>;
+                       };
+
+                       platform {
+                               sound-dai = <&q6apm>;
+                       };
+               };
+
+               displayport-1-dai-link {
+                       link-name = "DisplayPort1 Playback";
+
+                       codec {
+                               sound-dai = <&mdss_dp1>;
+                       };
+
+                       cpu {
+                               sound-dai = <&q6apmbedai DISPLAY_PORT_RX_1>;
+                       };
+
+                       platform {
+                               sound-dai = <&q6apm>;
+                       };
+               };
+
+               displayport-2-dai-link {
+                       link-name = "DisplayPort2 Playback";
+
+                       codec {
+                               sound-dai = <&mdss_dp2>;
+                       };
+
+                       cpu {
+                               sound-dai = <&q6apmbedai DISPLAY_PORT_RX_2>;
+                       };
+
+                       platform {
+                               sound-dai = <&q6apm>;
+                       };
+               };
+
                wcd-playback-dai-link {
                        link-name = "WCD Playback";
 
@@ -1013,6 +1061,8 @@ &mdss {
 };
 
 &mdss_dp0 {
+       sound-name-prefix = "DisplayPort0";
+
        status = "okay";
 };
 
@@ -1021,6 +1071,8 @@ &mdss_dp0_out {
 };
 
 &mdss_dp1 {
+       sound-name-prefix = "DisplayPort1";
+
        status = "okay";
 };
 
@@ -1028,6 +1080,10 @@ &mdss_dp1_out {
        link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 
8100000000>;
 };
 
+&mdss_dp2 {
+       sound-name-prefix = "DisplayPort2";
+};
+
 &mdss_dp3 {
        /delete-property/ #sound-dai-cells;
 
-- 
2.48.1

Reply via email to