]> git.hungrycats.org Git - linux/commit
ASoC: tegra: Sort MBDRC register defaults
authorJon Hunter <jonathanh@nvidia.com>
Fri, 21 Aug 2026 15:37:34 +0000 (16:37 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2026 17:08:39 +0000 (18:08 +0100)
commitabb5bed6f48d54d3b82724a430fd462579ecd876
tree1a1cb01b42a722974bbbe4170264777067f6cef0
parent18d48bfd1bc178da7cfc7a1be3eaa1c8cb10f05c
ASoC: tegra: Sort MBDRC register defaults

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

 tegra210-ope 2908000.processing-engine: Driver needs fixing: Unsorted
  reg_defaults, sorting the copy

This warning occurs because register defaults in the structure
tegra210_mbdrc_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 replace the macro MBDRC_FILTER_REG_DEFAULTS with a per
register macro MBDRC_FILTER_PARAM_REG_DEFAULTS.

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