* [PATCH] ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2
@ 2023-06-06 18:01 Marek Vasut
2023-06-08 9:28 ` Alexandre TORGUE
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2023-06-06 18:01 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Marek Vasut, Alexandre Torgue, Krzysztof Kozlowski, Mark Brown,
Maxime Coquelin, Rob Herring, devicetree, kernel, linux-stm32
The audio routing flow is not correct, the flow should be from source
(second element in the pair) to sink (first element in the pair). The
flow now is from "HP_OUT" to "Playback", where "Playback" is source
and "HP_OUT" is sink, i.e. the direction is swapped and there is no
direct link between the two either.
Fill in the correct routing, where "HP_OUT" supplies the "Headphone Jack",
"Line In Jack" supplies "LINE_IN" input, "Microphone Jack" supplies "MIC_IN"
input and "Mic Bias" supplies "Microphone Jack".
Fixes: 34e0c7847dcf ("ARM: dts: stm32: Add DH Electronics DHCOM STM32MP1 SoM and PDK2 board")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Marek Vasut <marex@denx.de>
Cc: Mark Brown <broonie@kernel.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: kernel@dh-electronics.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-stm32@st-md-mailman.stormreply.com
---
arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
index 4709677151aac..46b87a27d8b37 100644
--- a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
+++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
@@ -137,10 +137,13 @@ reg_panel_supply: regulator-panel-supply {
sound {
compatible = "audio-graph-card";
- routing =
- "MIC_IN", "Capture",
- "Capture", "Mic Bias",
- "Playback", "HP_OUT";
+ widgets = "Headphone", "Headphone Jack",
+ "Line", "Line In Jack",
+ "Microphone", "Microphone Jack";
+ routing = "Headphone Jack", "HP_OUT",
+ "LINE_IN", "Line In Jack",
+ "MIC_IN", "Microphone Jack",
+ "Microphone Jack", "Mic Bias";
dais = <&sai2a_port &sai2b_port>;
status = "okay";
};
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2
2023-06-06 18:01 [PATCH] ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2 Marek Vasut
@ 2023-06-08 9:28 ` Alexandre TORGUE
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre TORGUE @ 2023-06-08 9:28 UTC (permalink / raw)
To: Marek Vasut, linux-arm-kernel
Cc: Krzysztof Kozlowski, Mark Brown, Maxime Coquelin, Rob Herring,
devicetree, kernel, linux-stm32
Hi Marek
On 6/6/23 20:01, Marek Vasut wrote:
> The audio routing flow is not correct, the flow should be from source
> (second element in the pair) to sink (first element in the pair). The
> flow now is from "HP_OUT" to "Playback", where "Playback" is source
> and "HP_OUT" is sink, i.e. the direction is swapped and there is no
> direct link between the two either.
>
> Fill in the correct routing, where "HP_OUT" supplies the "Headphone Jack",
> "Line In Jack" supplies "LINE_IN" input, "Microphone Jack" supplies "MIC_IN"
> input and "Mic Bias" supplies "Microphone Jack".
>
> Fixes: 34e0c7847dcf ("ARM: dts: stm32: Add DH Electronics DHCOM STM32MP1 SoM and PDK2 board")
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: kernel@dh-electronics.com
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-stm32@st-md-mailman.stormreply.com
> ---
> arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
> index 4709677151aac..46b87a27d8b37 100644
> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi
> @@ -137,10 +137,13 @@ reg_panel_supply: regulator-panel-supply {
>
> sound {
> compatible = "audio-graph-card";
> - routing =
> - "MIC_IN", "Capture",
> - "Capture", "Mic Bias",
> - "Playback", "HP_OUT";
> + widgets = "Headphone", "Headphone Jack",
> + "Line", "Line In Jack",
> + "Microphone", "Microphone Jack";
> + routing = "Headphone Jack", "HP_OUT",
> + "LINE_IN", "Line In Jack",
> + "MIC_IN", "Microphone Jack",
> + "Microphone Jack", "Mic Bias";
> dais = <&sai2a_port &sai2b_port>;
> status = "okay";
> };
Applied on stm32-next.
Thanks.
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-08 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 18:01 [PATCH] ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2 Marek Vasut
2023-06-08 9:28 ` Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).