提交 b8928c2b 编写于 作者: T 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: NThierry Reding <treding@nvidia.com>
上级 9e79e58f
......@@ -817,7 +817,7 @@
};
hda@3510000 {
nvidia,model = "jetson-tx2-hda";
nvidia,model = "NVIDIA Jetson TX2 HDA";
status = "okay";
};
......@@ -1109,6 +1109,6 @@
<&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 @@
};
hda@3510000 {
nvidia,model = "jetson-xavier-hda";
nvidia,model = "NVIDIA Jetson AGX Xavier HDA";
status = "okay";
};
......@@ -831,7 +831,7 @@
<&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 @@
};
hda@3510000 {
nvidia,model = "jetson-xavier-nx-hda";
nvidia,model = "NVIDIA Jetson Xavier NX HDA";
status = "okay";
};
......
......@@ -424,6 +424,6 @@
<&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 @@
};
hda@70030000 {
nvidia,model = "jetson-tx1-hda";
nvidia,model = "NVIDIA Jetson TX1 HDA";
status = "okay";
};
......
......@@ -441,7 +441,7 @@
};
hda@70030000 {
nvidia,model = "jetson-nano-hda";
nvidia,model = "NVIDIA Jetson Nano HDA";
status = "okay";
};
......@@ -1043,6 +1043,6 @@
<&i2s3_port>, <&i2s4_port>,
<&dmic1_port>, <&dmic2_port>;
label = "jetson-nano-ape";
label = "NVIDIA Jetson Nano APE";
};
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册