]> git.hungrycats.org Git - linux/commit
ASoC: tegra: Sort ADMAIF register defaults
authorJon Hunter <jonathanh@nvidia.com>
Fri, 21 Aug 2026 15:37:33 +0000 (16:37 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2026 17:08:38 +0000 (18:08 +0100)
commit18d48bfd1bc178da7cfc7a1be3eaa1c8cb10f05c
treef28d859a1d538c3e8a362c72218449fbd0f6c893
parent5442b8093a2f94ecd4696b3875194be09e2676c5
ASoC: tegra: Sort ADMAIF register defaults

Commit 4b05ccb17f92 ("regcache: Sort the local copy of an unsorted
reg_defaults array") exposed an issue in the Tegra ADMAIF driver and now
the following warning is observed:

 tegra210-admaif 290f000.admaif: Driver needs fixing: Unsorted
  reg_defaults, sorting the copy

This warning occurs because register defaults in the structures
tegra186_admaif_reg_defaults and tegra264_admaif_reg_defaults are not
specified in ascending order which is required by regmap. Fix this by
sorting the register defaults according to their address. Note that in
order to do this it is necessary to split the macro ADMAIF_REG_DEFAULTS
into separate RX and TX macros to the RX and TX registers.

Fixes: f74028e159bb ("ASoC: tegra: Add Tegra210 based ADMAIF driver")
Cc: stable@vger.kernel.org
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260821153734.158426-4-jonathanh@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_admaif.c