arm64: tegra: Consolidate audio card names
authorThierry Reding <treding@nvidia.com>
Tue, 30 Mar 2021 18:18:31 +0000 (20:18 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 28 May 2021 16:13:41 +0000 (18:13 +0200)
commitb8928c2b5dba7484a80077d12be702ff71d8190f
tree4f3ae4fab1d8278ca791f6b81b789307ad827161
parent9e79e58f330ea4860f2ced65a8a35dfb05fc03c1
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>
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts
arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts