public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: codecs: wsa883x: do not set can_multi_write flag
@ 2023-05-23 15:46 Srinivas Kandagatla
  2023-05-23 15:46 ` [PATCH 2/2] ASoC: codecs: wsa881x: " Srinivas Kandagatla
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Srinivas Kandagatla @ 2023-05-23 15:46 UTC (permalink / raw)
  To: broonie
  Cc: perex, tiwai, lgirdwood, ckeepax, kuninori.morimoto.gx,
	linux-kernel, pierre-louis.bossart, alsa-devel,
	Srinivas Kandagatla

regmap-sdw does not support multi register writes, so there is
no point in setting this flag. This also leads to incorrect
programming of WSA codecs with regmap_multi_reg_write() call.

This invalid configuration should have been rejected by regmap-sdw.

Fixes: 43b8c7dc85a1 ("ASoC: codecs: add wsa883x amplifier support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 sound/soc/codecs/wsa883x.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c
index b83b5b0d4bab..2faf66c60703 100644
--- a/sound/soc/codecs/wsa883x.c
+++ b/sound/soc/codecs/wsa883x.c
@@ -946,7 +946,6 @@ static struct regmap_config wsa883x_regmap_config = {
 	.writeable_reg = wsa883x_writeable_register,
 	.reg_format_endian = REGMAP_ENDIAN_NATIVE,
 	.val_format_endian = REGMAP_ENDIAN_NATIVE,
-	.can_multi_write = true,
 	.use_single_read = true,
 };
 
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-05 12:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23 15:46 [PATCH 1/2] ASoC: codecs: wsa883x: do not set can_multi_write flag Srinivas Kandagatla
2023-05-23 15:46 ` [PATCH 2/2] ASoC: codecs: wsa881x: " Srinivas Kandagatla
2023-05-23 16:55 ` [PATCH 1/2] ASoC: codecs: wsa883x: " Mark Brown
2023-05-24  8:51   ` Srinivas Kandagatla
2023-05-24  8:57     ` Mark Brown
2023-05-24  9:42       ` Srinivas Kandagatla
2023-05-24  9:48         ` Mark Brown
2023-05-24 10:09           ` Srinivas Kandagatla
2023-05-24 10:14             ` Mark Brown
2023-05-24 11:28 ` Mark Brown
2023-06-05  8:08   ` Johan Hovold
2023-06-05 12:24     ` Mark Brown
2023-06-05 12:31       ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox