ASoC: ak4458: add optional reset control to instead of gpio
authorViorel Suman <viorel.suman@nxp.com>
Thu, 13 Oct 2022 12:36:51 +0000 (20:36 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:48:26 +0000 (12:48 +0100)
commit8a0de73cf9dc044d65ad40112fd00025e225bc83
tree9ed0cae6abb8133a1a3d228f73fa2a5b0c8099ff
parent29dbfeecab85fc998d8c5c29473da33d272d0c85
ASoC: ak4458: add optional reset control to instead of gpio

Add optional reset control instead of GPIO to manage codec
PDN pin.

As there is reference counter for reset control, so need
to remove one ak4458_reset in runtime resume to make the
reference counter balance.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1665664611-21350-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4458.c