Skip to contentSkip to conversation

arm64: dts: meson: add SM1 soundcard name to VIM3L

PATCH Applied Christian Hewitt 3 participants 7 messages Oct 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: meson: add SM1 soundcard name to VIM3L

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
 arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
index 4b517ca72059..f46f0ecc37ec 100644
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};
 };
 
 &cpu0 {
Signature · 1 line
2.17.1
reviewer
#1 lore raw
Quoted 14 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
 arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +0 -0
index 4b517ca72059..f46f0ecc37ec 100644

arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts line 38

Quoted 7 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};

The sound card is the same so I don't see why the sm1 board should have a different name. If you are not happy with the name, please update it in the common file.

Quoted 3 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +0 -0
 };
 
 &cpu0 {
#2 lore raw
Quoted 14 lines · Jerome Brunet
Quoted 9 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++

1 file changed, 4 insertions(+)
Quoted 16 lines

arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts line 38

Quoted 12 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
index 4b517ca72059..f46f0ecc37ec 100644
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};

The sound card is the same so I don't see why the sm1 board should have a different name. If you are not happy with the name, please update it in the common file.

It’s a nice-to-have not a must-have, but the current LE images that are in circulation use 5.7 with the previous board-correct name so I was looking for continuity. We do see user forum reports (infrequent but recurring) of wrongly detected hardware with other SoC platforms where similar name inheritance surfaces the ‘wrong’ device name in GUIs, and I like anything that avoids support work.

I’d suggest KHADAS-VIM3-VIM3L as a common name, but then it’s the only device in the current device-tree set that is not prefixed with the SoC identifier, which (OCD) feels wrong.

Christian

maintainer
#3 lore raw
Quoted 37 lines · Christian Hewitt
Quoted 13 lines · Jerome Brunet
Quoted 9 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++

1 file changed, 4 insertions(+)
Quoted 16 lines

arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts line 38

Quoted 12 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
index 4b517ca72059..f46f0ecc37ec 100644
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};

The sound card is the same so I don't see why the sm1 board should have a different name. If you are not happy with the name, please update it in the common file.

It’s a nice-to-have not a must-have, but the current LE images that are in circulation use 5.7 with the previous board-correct name so I was looking for continuity. We do see user forum reports (infrequent but recurring) of wrongly detected hardware with other SoC platforms where similar name inheritance surfaces the ‘wrong’ device name in GUIs, and I like anything that avoids support work.

Quoted 3 lines

I’d suggest KHADAS-VIM3-VIM3L as a common name, but then it’s the only device in the current device-tree set that is not prefixed with the SoC identifier, which (OCD) feels wrong.

True, but turns out there's nothing SoC specific about this sound block since it's identical across SoCs, so specifying the SoC is being too specific.

OTOH, while I agree it looks "wrong", it's pretty common in Linux DT to have the SoC prefix to mean only that it's "compatible" with that SoC, not that it *is* that SoC.

However, I agree that that can lead to confusion with end users, so since this change has not functional change, and only a UX issue in userspace, I'm fine to apply it.

Kevin

reviewer
#4 lore raw
Quoted 47 lines · Kevin Hilman
Quoted 37 lines · Christian Hewitt
Quoted 13 lines · Jerome Brunet
Quoted 9 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++

1 file changed, 4 insertions(+)
Quoted 16 lines

arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts line 38

Quoted 12 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
index 4b517ca72059..f46f0ecc37ec 100644
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};

The sound card is the same so I don't see why the sm1 board should have a different name. If you are not happy with the name, please update it in the common file.

It’s a nice-to-have not a must-have, but the current LE images that are in circulation use 5.7 with the previous board-correct name so I was looking for continuity. We do see user forum reports (infrequent but recurring) of wrongly detected hardware with other SoC platforms where similar name inheritance surfaces the ‘wrong’ device name in GUIs, and I like anything that avoids support work.

Quoted 3 lines

I’d suggest KHADAS-VIM3-VIM3L as a common name, but then it’s the only device in the current device-tree set that is not prefixed with the SoC identifier, which (OCD) feels wrong.

True, but turns out there's nothing SoC specific about this sound block since it's identical across SoCs, so specifying the SoC is being too specific.

Quoted 7 lines

OTOH, while I agree it looks "wrong", it's pretty common in Linux DT to have the SoC prefix to mean only that it's "compatible" with that SoC, not that it *is* that SoC.

However, I agree that that can lead to confusion with end users, so since this change has not functional change, and only a UX issue in userspace, I'm fine to apply it.

It is not UX only. This string is used by alsa-utils to match the card. For example, the string will be matched to restore the controls settings with alsactl on boot. VIM3 and VIM3L are the same sound card AFAICT, so it should be the same string.

Quoted 2 lines

Kevin

maintainer
#5 lore raw
Quoted 53 lines · Jerome Brunet
Quoted 51 lines · Kevin Hilman
Quoted 37 lines · Christian Hewitt
Quoted 13 lines · Jerome Brunet
Quoted 9 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

---
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 ++++

1 file changed, 4 insertions(+)
Quoted 16 lines

arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts line 38

Quoted 12 lines
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +4 -0
index 4b517ca72059..f46f0ecc37ec 100644
@@ -32,6 +32,10 @@
 		regulator-boot-on;
 		regulator-always-on;
 	};
+
+	sound {
+		model = "SM1-KHADAS-VIM3L";
+	};

The sound card is the same so I don't see why the sm1 board should have a different name. If you are not happy with the name, please update it in the common file.

It’s a nice-to-have not a must-have, but the current LE images that are in circulation use 5.7 with the previous board-correct name so I was looking for continuity. We do see user forum reports (infrequent but recurring) of wrongly detected hardware with other SoC platforms where similar name inheritance surfaces the ‘wrong’ device name in GUIs, and I like anything that avoids support work.

Quoted 3 lines

I’d suggest KHADAS-VIM3-VIM3L as a common name, but then it’s the only device in the current device-tree set that is not prefixed with the SoC identifier, which (OCD) feels wrong.

True, but turns out there's nothing SoC specific about this sound block since it's identical across SoCs, so specifying the SoC is being too specific.

OTOH, while I agree it looks "wrong", it's pretty common in Linux DT to have the SoC prefix to mean only that it's "compatible" with that SoC, not that it *is* that SoC.

Quoted 8 lines
Quoted 3 lines

However, I agree that that can lead to confusion with end users, so since this change has not functional change, and only a UX issue in userspace, I'm fine to apply it.

It is not UX only. This string is used by alsa-utils to match the card. For example, the string will be matched to restore the controls settings with alsactl on boot. VIM3 and VIM3L are the same sound card AFAICT, so it should be the same string.

Ah, OK, thanks for clarifying. Then I would say if it gets changed, it
gets changed in the common file.

Kevin

maintainer Applied
#6 lore raw
In reply to Christian Hewitt
Quoted 3 lines · Christian Hewitt

VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device.

Applied, thanks!

[1/1] arm64: dts: meson: add SM1 soundcard name to VIM3L

      commit: 0fe4c285ef8bd0475da7e288c844cb55fc850970

Best regards,

Signature · 1 line
Kevin Hilman <[email protected]>