Commit b8928c2b authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 9e79e58f
......@@ -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";
};
};
......@@ -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",
......
......@@ -36,7 +36,7 @@ eeprom@57 {
};
hda@3510000 {
nvidia,model = "jetson-xavier-nx-hda";
nvidia,model = "NVIDIA Jetson Xavier NX HDA";
status = "okay";
};
......
......@@ -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";
};
};
......@@ -1345,7 +1345,7 @@ sata@70020000 {
};
hda@70030000 {
nvidia,model = "jetson-tx1-hda";
nvidia,model = "NVIDIA Jetson TX1 HDA";
status = "okay";
};
......
......@@ -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";
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment