[PATCH v2] arm64: dts: qcom: x1-crd: add USB DisplayPort audio

Krzysztof Kozlowski posted 1 patch 3 months, 2 weeks ago
arch/arm64/boot/dts/qcom/x1-crd.dtsi | 36 ++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
[PATCH v2] arm64: dts: qcom: x1-crd: add USB DisplayPort audio
Posted by Krzysztof Kozlowski 3 months, 2 weeks ago
Add support for playing audio over USB DisplayPort (the two left USB-C
ports on the CRD device).

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---

Changes since v1:
1. Rebase (x1-crd.dtsi appeared)
2. Re-order cpu/codec
3. Add blank line before status for mdss_dp
4. Tags
---
 arch/arm64/boot/dts/qcom/x1-crd.dtsi | 36 ++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/x1-crd.dtsi b/arch/arm64/boot/dts/qcom/x1-crd.dtsi
index c9f0d5052670..ffef25719f27 100644
--- a/arch/arm64/boot/dts/qcom/x1-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1-crd.dtsi
@@ -219,6 +219,38 @@ sound {
 				"VA DMIC3", "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>;
+			};
+		};
+
 		wcd-playback-dai-link {
 			link-name = "WCD Playback";
 
@@ -1124,6 +1156,8 @@ &mdss {
 };
 
 &mdss_dp0 {
+	sound-name-prefix = "DisplayPort0";
+
 	status = "okay";
 };
 
@@ -1132,6 +1166,8 @@ &mdss_dp0_out {
 };
 
 &mdss_dp1 {
+	sound-name-prefix = "DisplayPort1";
+
 	status = "okay";
 };
 
-- 
2.48.1
Re: [PATCH v2] arm64: dts: qcom: x1-crd: add USB DisplayPort audio
Posted by Dmitry Baryshkov 3 months ago
On Tue, Jun 24, 2025 at 02:29:34PM +0200, Krzysztof Kozlowski wrote:
> Add support for playing audio over USB DisplayPort (the two left USB-C
> ports on the CRD device).
> 
> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> 
> Changes since v1:
> 1. Rebase (x1-crd.dtsi appeared)
> 2. Re-order cpu/codec
> 3. Add blank line before status for mdss_dp
> 4. Tags
> ---
>  arch/arm64/boot/dts/qcom/x1-crd.dtsi | 36 ++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)

Just for my understanding:
- Is the corresponding topology file updated? Will this work with the
  current topology from linux-firmware release?
- Do audio drivers handle playback if DP gets disconnected or
  reconnected?

-- 
With best wishes
Dmitry
Re: [PATCH v2] arm64: dts: qcom: x1-crd: add USB DisplayPort audio
Posted by Konrad Dybcio 3 months ago
On 7/5/25 2:46 PM, Dmitry Baryshkov wrote:
> On Tue, Jun 24, 2025 at 02:29:34PM +0200, Krzysztof Kozlowski wrote:
>> Add support for playing audio over USB DisplayPort (the two left USB-C
>> ports on the CRD device).
>>
>> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>>
>> Changes since v1:
>> 1. Rebase (x1-crd.dtsi appeared)
>> 2. Re-order cpu/codec
>> 3. Add blank line before status for mdss_dp
>> 4. Tags
>> ---
>>  arch/arm64/boot/dts/qcom/x1-crd.dtsi | 36 ++++++++++++++++++++++++++++
>>  1 file changed, 36 insertions(+)
> 
> Just for my understanding:
> - Is the corresponding topology file updated? Will this work with the
>   current topology from linux-firmware release?
> - Do audio drivers handle playback if DP gets disconnected or
>   reconnected?

As we talked offline, this also could be refreshed to include the third
USB port if someone has the machine on-hand to test it..

Konrad