Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: rt722: make regmap cache-only in probe

This patch makes sure the access to the codecs is cached until the device is enumerated.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20250519090645.2620292-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shuming Fan and committed by
Mark Brown
152c773f a2820606

+4 -1
+1
sound/soc/codecs/rt722-sdca-sdw.h
··· 34 34 { 0x200003c, 0xc214 }, 35 35 { 0x2000046, 0x8004 }, 36 36 { 0x5810000, 0x702d }, 37 + { 0x6100000, 0x0201 }, 37 38 { 0x6100006, 0x0005 }, 38 39 { 0x6100010, 0x2630 }, 39 40 { 0x6100011, 0x152f },
+3 -1
sound/soc/codecs/rt722-sdca.c
··· 1309 1309 rt722->slave = slave; 1310 1310 rt722->regmap = regmap; 1311 1311 1312 + regcache_cache_only(rt722->regmap, true); 1313 + 1312 1314 mutex_init(&rt722->calibrate_mutex); 1313 1315 mutex_init(&rt722->disable_irq_lock); 1314 1316 ··· 1523 1521 if (rt722->hw_init) 1524 1522 return 0; 1525 1523 1524 + regcache_cache_only(rt722->regmap, false); 1526 1525 if (rt722->first_hw_init) { 1527 - regcache_cache_only(rt722->regmap, false); 1528 1526 regcache_cache_bypass(rt722->regmap, true); 1529 1527 } else { 1530 1528 /*