Skip to contentSkip to conversation

ARM: dts: imx[6qdl|7]-[apalis|colibri]: Update audio card names

PATCH Superseded Hiago De Franco 3 participants 7 messages Sep 9, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: imx[6qdl|7]-[apalis|colibri]: Update audio card names

From: Hiago De Franco <[email protected]>

This patch series update the audio card names for Apalis and Colibri iMX6/7 to match their specific SoM names, making it shorter (less than 15 characters, as shown in [1]) to fix warnings related to ALSA in Apalis iMX6 and Colibri iMX6. For Colibri iMX7, also do the change to make it compliant with the other card names.

[1] Documentation/sound/alsa-configuration.rst

Hiago De Franco (3):
ARM: dts: imx6qdl-apalis: Update audio card name
ARM: dts: imx6qdl-colibri: Update audio card name
ARM: dts: imx7-colibri: Update audio card name

 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi  | 2 +-
 arch/arm/boot/dts/nxp/imx/imx6qdl-colibri.dtsi | 2 +-
 arch/arm/boot/dts/nxp/imx/imx7-colibri.dtsi    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/3 ARM: dts: imx6qdl-apalis: Update audio card name

From: Hiago De Franco <[email protected]>

Update the audio card name for Apalis iMX6 to match its specific SoM name, making it less than 15 characters to fix the following warning

fsl-asoc-card sound: ASoC: driver name too long
'imx6q-apalis-sgtl5000' -> 'imx6q-apalis-sg'

making it compliant with the ALSA configuration specification [1].

[1] Documentation/sound/alsa-configuration.rst

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +1 -1
index edf55760a5c1..1c72da417011 100644
@@ -191,7 +191,7 @@ sound {
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
 			"Headphone Jack", "HP_OUT";
-		model = "imx6q-apalis-sgtl5000";
+		model = "apalis-imx6";
 		mux-ext-port = <4>;
 		mux-int-port = <1>;
 		ssi-controller = <&ssi1>;
Signature · 1 line
2.39.2
#5 lore raw

PATCH 2/3 ARM: dts: imx6qdl-colibri: Update audio card name

In reply to Hiago De Franco

From: Hiago De Franco <[email protected]>

Update the audio card name for Colibri iMX6 to match its specific SoM name, making it less than 15 characters to fix the following warning

fsl-asoc-card sound: ASoC: driver name too long
'imx6dl-colibri-sgtl5000' -> 'imx6dl-colibri-'

making it compliant with the ALSA configuration specification [1].

[1] Documentation/sound/alsa-configuration.rst

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-colibri.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-colibri.dtsi +1 -1
index b01670cdd52c..9f33419c260b 100644
@@ -136,7 +136,7 @@ sound {
 			"LINE_IN", "Line In Jack",
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias";
-		model = "imx6dl-colibri-sgtl5000";
+		model = "colibri-imx6";
 		mux-int-port = <1>;
 		mux-ext-port = <5>;
 		ssi-controller = <&ssi1>;
Signature · 1 line
2.39.2
#6 lore raw

PATCH 3/3 ARM: dts: imx7-colibri: Update audio card name

In reply to Hiago De Franco

From: Hiago De Franco <[email protected]>

Update the audio card name for Colibri iMX7 to match its specific SoM name, making it compliant with the other names for Colibri iMX6 and Apalis iMX6.

---
 arch/arm/boot/dts/nxp/imx/imx7-colibri.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx7-colibri.dtsi +1 -1
index 62e41edcaf1d..8666dcd7fe97 100644
@@ -120,7 +120,7 @@ sound {
 		simple-audio-card,bitclock-master = <&dailink_master>;
 		simple-audio-card,format = "i2s";
 		simple-audio-card,frame-master = <&dailink_master>;
-		simple-audio-card,name = "imx7-sgtl5000";
+		simple-audio-card,name = "colibri-imx7";
 
 		simple-audio-card,cpu {
 			sound-dai = <&sai1>;
Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH 1/3] ARM: dts: imx6qdl-apalis: Update audio card name

In reply to Hiago De Franco
Quoted 22 lines · Hiago De Franco

From: Hiago De Franco <[email protected]>

Update the audio card name for Apalis iMX6 to match its specific SoM name, making it less than 15 characters to fix the following warning

fsl-asoc-card sound: ASoC: driver name too long
'imx6q-apalis-sgtl5000' -> 'imx6q-apalis-sg'

making it compliant with the ALSA configuration specification [1].

[1] Documentation/sound/alsa-configuration.rst

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +0 -0
index edf55760a5c1..1c72da417011 100644

arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi sound { · line 194

Quoted 5 lines
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +1 -1
@@ -191,7 +191,7 @@ sound {
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
 			"Headphone Jack", "HP_OUT";
-		model = "imx6q-apalis-sgtl5000";
+		model = "apalis-imx6";

Doesn't this break all the users? E.g. ALSA UCM and whatever user-space-parsing stuff you have?

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 1/3] ARM: dts: imx6qdl-apalis: Update audio card name

Hello Krzysztof,
thanks for the review/feedback.

Quoted 14 lines · Krzysztof Kozlowski

arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi sound { · line 194

Quoted 10 lines · Hiago De Franco
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +1 -1
index edf55760a5c1..1c72da417011 100644
@@ -191,7 +191,7 @@ sound {
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
 			"Headphone Jack", "HP_OUT";
-		model = "imx6q-apalis-sgtl5000";
+		model = "apalis-imx6";

Doesn't this break all the users? E.g. ALSA UCM and whatever user-space-parsing stuff you have?

I am not sure about "all" users, but for sure it's a breaking change. There is no ALSA UCM for this board (and also not for the other twos in this series), we just worked on it and we thought that if we want to do such a change the moment is now.

What should we do?

Francesco

#4 lore raw

Re: [PATCH 1/3] ARM: dts: imx6qdl-apalis: Update audio card name

Quoted 19 lines · Francesco Dolcini

Hello Krzysztof,
thanks for the review/feedback.

Quoted 14 lines · Krzysztof Kozlowski

arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi sound { · line 194

Quoted 10 lines · Hiago De Franco
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +1 -1
index edf55760a5c1..1c72da417011 100644
@@ -191,7 +191,7 @@ sound {
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
 			"Headphone Jack", "HP_OUT";
-		model = "imx6q-apalis-sgtl5000";
+		model = "apalis-imx6";

Doesn't this break all the users? E.g. ALSA UCM and whatever user-space-parsing stuff you have?

Quoted 6 lines

I am not sure about "all" users, but for sure it's a breaking change. There is no ALSA UCM for this board (and also not for the other twos in this series), we just worked on it and we thought that if we want to do such a change the moment is now.

What should we do?

For me is enough to explain in commit msg such expected (or lack of it) impact.

Best regards,
Krzysztof