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>
This commit is contained in:
Thierry Reding 2021-03-30 20:18:31 +02:00
parent 9e79e58f33
commit b8928c2b5d
6 changed files with 9 additions and 9 deletions

View File

@ -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";
};
};

View File

@ -554,7 +554,7 @@ mmc@3400000 {
};
hda@3510000 {
nvidia,model = "jetson-xavier-hda";
nvidia,model = "NVIDIA Jetson AGX Xavier HDA";
status = "okay";
};
@ -831,7 +831,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",

View File

@ -36,7 +36,7 @@ eeprom@57 {
};
hda@3510000 {
nvidia,model = "jetson-xavier-nx-hda";
nvidia,model = "NVIDIA Jetson Xavier NX HDA";
status = "okay";
};

View File

@ -424,6 +424,6 @@ sound {
<&i2s1_port>, <&i2s2_port>, <&i2s3_port>, <&i2s4_port>,
<&i2s5_port>, <&dmic1_port>, <&dmic2_port>, <&dmic3_port>;
label = "jetson-tx1-ape";
label = "NVIDIA Jetson TX1 APE";
};
};

View File

@ -1345,7 +1345,7 @@ sata@70020000 {
};
hda@70030000 {
nvidia,model = "jetson-tx1-hda";
nvidia,model = "NVIDIA Jetson TX1 HDA";
status = "okay";
};

View File

@ -441,7 +441,7 @@ pmc@7000e400 {
};
hda@70030000 {
nvidia,model = "jetson-nano-hda";
nvidia,model = "NVIDIA Jetson Nano HDA";
status = "okay";
};
@ -1043,6 +1043,6 @@ sound {
<&i2s3_port>, <&i2s4_port>,
<&dmic1_port>, <&dmic2_port>;
label = "jetson-nano-ape";
label = "NVIDIA Jetson Nano APE";
};
};