ASoC: sgtl5000: fix codec clock source transition to avoid clockless moment
authorOskar Schirmer <oskar@scara.com>
Mon, 5 Aug 2013 07:36:02 +0000 (07:36 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 5 Aug 2013 16:03:42 +0000 (17:03 +0100)
commite06e4c2d530fd4995c41083009647263ccd77d3b
treef9a823c1ad1b12e386089d9ad1436845486ef0c6
parentcb23e852aabb50f5083fb734c2067220d087d26e
ASoC: sgtl5000: fix codec clock source transition to avoid clockless moment

Powering down PLL before switching to a mode that does not use it
is a bad idea. It would cause the SGTL5000 be without internal
clock supply, especially on the I2C interface, which would make
subsequent access to it fail.

Thus, in case of not using PLL any longer, first set the mode
control, then power down PLL.

Signed-off-by: Oskar Schirmer <oskar@scara.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c
This page took 0.027035 seconds and 5 git commands to generate.