Skip to contentSkip to conversation

arm64: tegra: Consolidate audio card names

PATCH New Thierry Reding 1 participant 1 message Mar 30, 2021

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

PATCH 1/1 arm64: tegra: Consolidate audio card names

From: Thierry Reding <[email protected]>

The current scheme for audio card names is suboptimal because it causes the automatically generated names (for ID and driver) to be truncated, which in turn can cause conflicts.

Introduce a new scheme which reuses the board model for the names and appends the "HDA" and "APE" suffixes for the HDA and APE, respectively. As a side-effect these suffixes end up being used as the ID of the SoC sound cards which makes it easy for users to select them when using the ALSA command-line utilities, for example.

As a separate measure, the driver name for the cards is now set by the corresponding audio driver (either tegra-hda or tegra-ape), making it a more useful identifier than the currently normalized card name.

---
 arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts  | 4 ++--
 arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts  | 4 ++--
 arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi | 2 +-
 arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi      | 2 +-
 arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts  | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts +2 -2
index 683743f81849..74c1a5df3fdb 100644
@@ -817,7 +817,7 @@ mmc@3400000 {
 	};
 
 	hda@3510000 {
-		nvidia,model = "jetson-tx2-hda";
+		nvidia,model = "NVIDIA Jetson TX2 HDA";
 		status = "okay";
 	};
 
@@ -1109,6 +1109,6 @@ sound {
 		       <&i2s5_port>, <&i2s6_port>, <&dmic1_port>, <&dmic2_port>,
 		       <&dmic3_port>, <&dspk1_port>, <&dspk2_port>;
 
-		label = "jetson-tx2-ape";
+		label = "NVIDIA Jetson TX2 APE";
 	};
 };
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +2 -2
index 2888efc42ba1..4399deda7462 100644
@@ -554,7 +554,7 @@ mmc@3400000 {
 		};
 
 		hda@3510000 {
-			nvidia,model = "jetson-xavier-hda";
+			nvidia,model = "NVIDIA Jetson AGX Xavier HDA";
 			status = "okay";
 		};
 
@@ -830,7 +830,7 @@ sound {
 		       <&i2s1_port>, <&i2s2_port>, <&i2s4_port>, <&i2s6_port>,
 		       <&dmic3_port>;
 
-		label = "jetson-xavier-ape";
+		label = "NVIDIA Jetson AGX Xavier APE";
 
 		widgets =
 			"Microphone",	"CVB-RT MIC Jack",
arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi +1 -1
index d1d77220154f..a717d2b66131 100644
@@ -36,7 +36,7 @@ eeprom@57 {
 		};
 
 		hda@3510000 {
-			nvidia,model = "jetson-xavier-nx-hda";
+			nvidia,model = "NVIDIA Jetson Xavier NX HDA";
 			status = "okay";
 		};
 
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +1 -1
index a9caaf7c0d67..d8409c1b4380 100644
@@ -1345,7 +1345,7 @@ sata@70020000 {
 	};
 
 	hda@70030000 {
-		nvidia,model = "jetson-tx1-hda";
+		nvidia,model = "NVIDIA Jetson TX1 HDA";
 		status = "okay";
 	};
 
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts +2 -2
index dd7996411881..09ce555017fb 100644
@@ -532,7 +532,7 @@ pmc@7000e400 {
 	};
 
 	hda@70030000 {
-		nvidia,model = "jetson-nano-hda";
+		nvidia,model = "NVIDIA Jetson Nano HDA";
 
 		status = "okay";
 	};
@@ -1146,7 +1146,7 @@ sound {
 		       <&i2s3_port>, <&i2s4_port>,
 		       <&dmic1_port>, <&dmic2_port>;
 
-		label = "jetson-nano-ape";
+		label = "NVIDIA Jetson Nano APE";
 
 		widgets = "Headphone", "CVB-TI HP Jack";
 
Signature · 1 line
2.30.2