mirror of
https://github.com/torvalds/linux.git
synced 2026-10-13 13:51:03 +02:00
ASoC: tas2780: sort the register default table
reg_defaults must be sorted by ascending register address, as regcache_lookup_reg() locates entries in it with bsearch(). See commitfd80df352b("regcache: Add support for sorting defaults arrays"). TAS2780_DVC (0x1a) is listed before TAS2780_CHNL_0 (0x03), which makes it unreachable. regcache_reg_needs_sync() then cannot compare it against its default and reports that a sync is needed, so it is written to the device on every regcache_sync() even when it was never touched. Sort the table by register address. Fixes:eae9f9ce18("ASoC: add tas2780 driver") Cc: stable@vger.kernel.org Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://patch.msgid.link/20260805104149.9795-5-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e7643c3f7e
commit
e725093e9e
|
|
@ -527,13 +527,13 @@ static const struct reg_default tas2780_reg_defaults[] = {
|
|||
{ TAS2780_PAGE, 0x00 },
|
||||
{ TAS2780_SW_RST, 0x00 },
|
||||
{ TAS2780_PWR_CTRL, 0x1a },
|
||||
{ TAS2780_DVC, 0x00 },
|
||||
{ TAS2780_CHNL_0, 0x00 },
|
||||
{ TAS2780_TDM_CFG0, 0x09 },
|
||||
{ TAS2780_TDM_CFG1, 0x02 },
|
||||
{ TAS2780_TDM_CFG2, 0x0a },
|
||||
{ TAS2780_TDM_CFG3, 0x10 },
|
||||
{ TAS2780_TDM_CFG5, 0x42 },
|
||||
{ TAS2780_DVC, 0x00 },
|
||||
};
|
||||
|
||||
static const struct regmap_range_cfg tas2780_regmap_ranges[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user