ASoC: rk3328: fix disabling mclk on pclk probe failure
authorNicolas Frattaroli <frattaroli.nicolas@gmail.com>
Wed, 27 Apr 2022 17:23:11 +0000 (19:23 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 28 Apr 2022 12:20:33 +0000 (13:20 +0100)
commitdd508e324cdde1c06ace08a8143fa50333a90703
tree28b6d4876274d526553896cbb98d1b21a67eb71f
parent7e0bdbae446ff8a752484f6bcbcd7157e7484158
ASoC: rk3328: fix disabling mclk on pclk probe failure

If preparing/enabling the pclk fails, the probe function should
unprepare and disable the previously prepared and enabled mclk,
which it doesn't do. This commit rectifies this.

Fixes: c32759035ad2 ("ASoC: rockchip: support ACODEC for rk3328")
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Reviewed-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
Link: https://lore.kernel.org/r/20220427172310.138638-1-frattaroli.nicolas@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rk3328_codec.c