]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt711: add snd_soc_component remove callback
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 16 Mar 2021 00:52:54 +0000 (08:52 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 16 Mar 2021 13:24:15 +0000 (13:24 +0000)
commitb235963de11584269b268451b722bb3f9c89177b
tree43750bf0a7ee55b7be3d501bb4c37c60d2cb498e
parentf4de2fab1920a73ebbe22c4595a9379dd97478b7
ASoC: rt711: add snd_soc_component remove callback

We do some IO operations in the snd_soc_component_set_jack callback
function and snd_soc_component_set_jack() will be called when soc
component is removed. However, we should not access SoundWire registers
when the bus is suspended.
So set regcache_cache_only(regmap, true) to avoid accessing in the
soc component removal process.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20210316005254.29699-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt711.c