Commit 0d9b25fe9f64cb802d6178516c5564ca89302f2c

Authored by Jarkko Nikula
Committed by Jiri Slaby
1 parent d45c7fbe6a

ASoC: rt5640: Do not allow regmap to use bulk read-write operations

commit f4821e8e8e957fe4c601a49b9a97b7399d5f7ab1 upstream.

Debugging showed Realtek RT5642 doesn't support autoincrementing writes so
driver should set the use_single_rw flag for regmap.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

sound/soc/codecs/rt5640.c
... ... @@ -2061,6 +2061,7 @@
2061 2061 static const struct regmap_config rt5640_regmap = {
2062 2062 .reg_bits = 8,
2063 2063 .val_bits = 16,
  2064 + .use_single_rw = true,
2064 2065  
2065 2066 .max_register = RT5640_VENDOR_ID2 + 1 + (ARRAY_SIZE(rt5640_ranges) *
2066 2067 RT5640_PR_SPACING),