ASoC: rockchip: pdm: fix regmap_ops hang issue
authorSugar Zhang <sugar.zhang@rock-chips.com>
Wed, 3 Apr 2019 13:40:45 +0000 (21:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 07:59:33 +0000 (14:59 +0700)
commitc85064435fe7a216ec0f0238ef2b8f7cd850a450
tree13653ab28f47cf5b69bf32e90932ea52b5d32e91
parent42bf029a55a9bb8036f1d738a28dba2f7ec1e79d
ASoC: rockchip: pdm: fix regmap_ops hang issue

This is because set_fmt ops maybe called when PD is off,
and in such case, regmap_ops will lead system hang.
enale PD before doing regmap_ops.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_pdm.c