Skip to content

Commit b8928c2

Browse files
committed
arm64: tegra: Consolidate audio card names
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. Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 9e79e58 commit b8928c2

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@
817817
};
818818

819819
hda@3510000 {
820-
nvidia,model = "jetson-tx2-hda";
820+
nvidia,model = "NVIDIA Jetson TX2 HDA";
821821
status = "okay";
822822
};
823823

@@ -1109,6 +1109,6 @@
11091109
<&i2s5_port>, <&i2s6_port>, <&dmic1_port>, <&dmic2_port>,
11101110
<&dmic3_port>, <&dspk1_port>, <&dspk2_port>;
11111111

1112-
label = "jetson-tx2-ape";
1112+
label = "NVIDIA Jetson TX2 APE";
11131113
};
11141114
};

arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
};
555555

556556
hda@3510000 {
557-
nvidia,model = "jetson-xavier-hda";
557+
nvidia,model = "NVIDIA Jetson AGX Xavier HDA";
558558
status = "okay";
559559
};
560560

@@ -831,7 +831,7 @@
831831
<&i2s1_port>, <&i2s2_port>, <&i2s4_port>, <&i2s6_port>,
832832
<&dmic3_port>;
833833

834-
label = "jetson-xavier-ape";
834+
label = "NVIDIA Jetson AGX Xavier APE";
835835

836836
widgets =
837837
"Microphone", "CVB-RT MIC Jack",

arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
};
3737

3838
hda@3510000 {
39-
nvidia,model = "jetson-xavier-nx-hda";
39+
nvidia,model = "NVIDIA Jetson Xavier NX HDA";
4040
status = "okay";
4141
};
4242

arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,6 @@
424424
<&i2s1_port>, <&i2s2_port>, <&i2s3_port>, <&i2s4_port>,
425425
<&i2s5_port>, <&dmic1_port>, <&dmic2_port>, <&dmic3_port>;
426426

427-
label = "jetson-tx1-ape";
427+
label = "NVIDIA Jetson TX1 APE";
428428
};
429429
};

arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@
13451345
};
13461346

13471347
hda@70030000 {
1348-
nvidia,model = "jetson-tx1-hda";
1348+
nvidia,model = "NVIDIA Jetson TX1 HDA";
13491349
status = "okay";
13501350
};
13511351

arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441
};
442442

443443
hda@70030000 {
444-
nvidia,model = "jetson-nano-hda";
444+
nvidia,model = "NVIDIA Jetson Nano HDA";
445445

446446
status = "okay";
447447
};
@@ -1043,6 +1043,6 @@
10431043
<&i2s3_port>, <&i2s4_port>,
10441044
<&dmic1_port>, <&dmic2_port>;
10451045

1046-
label = "jetson-nano-ape";
1046+
label = "NVIDIA Jetson Nano APE";
10471047
};
10481048
};

0 commit comments

Comments
 (0)