Commit bcc0f0c0 authored by Bard Liao's avatar Bard Liao Committed by Mark Brown

ASoC: rt711-sdca: handle mbq_regmap in rt711_sdca_io_init

We currently only hangle rt711->regmap in rt711_sdca_io_init(), and
rt711->mbq_regmap is missing.

Fixes: 7ad4d237 ('ASoC: rt711-sdca: Add RT711 SDCA vendor-specific driver')
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210607222239.582139-16-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5ad1ba99
...@@ -1500,6 +1500,8 @@ int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave) ...@@ -1500,6 +1500,8 @@ int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave)
if (rt711->first_hw_init) { if (rt711->first_hw_init) {
regcache_cache_only(rt711->regmap, false); regcache_cache_only(rt711->regmap, false);
regcache_cache_bypass(rt711->regmap, true); regcache_cache_bypass(rt711->regmap, true);
regcache_cache_only(rt711->mbq_regmap, false);
regcache_cache_bypass(rt711->mbq_regmap, true);
} else { } else {
/* /*
* PM runtime is only enabled when a Slave reports as Attached * PM runtime is only enabled when a Slave reports as Attached
...@@ -1565,6 +1567,8 @@ int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave) ...@@ -1565,6 +1567,8 @@ int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave)
if (rt711->first_hw_init) { if (rt711->first_hw_init) {
regcache_cache_bypass(rt711->regmap, false); regcache_cache_bypass(rt711->regmap, false);
regcache_mark_dirty(rt711->regmap); regcache_mark_dirty(rt711->regmap);
regcache_cache_bypass(rt711->mbq_regmap, false);
regcache_mark_dirty(rt711->mbq_regmap);
} else } else
rt711->first_hw_init = true; rt711->first_hw_init = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment