ASoC: samsung-i2s: Maintain CDCLK settings across i2s_{shutdown/startup}
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 10 Jul 2014 16:11:13 +0000 (18:11 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 11 Jul 2014 13:04:03 +0000 (14:04 +0100)
commitb97c60abf9a561f86ae71bd741add02673cc1a08
tree851e1dcb759881e00193956e9cf30a0ec8779e74
parentd3d4e5247b013008a39e4d5f69ce4c60ed57f997
ASoC: samsung-i2s: Maintain CDCLK settings across i2s_{shutdown/startup}

Currently configuration of the CDCLK pad is being overwritten in
the i2s_shutdown() callback in order to gate the SoC output clock.
However if an ASoC machine driver doesn't restore that clock
settings each time after opening the sound device this results
in the CDCLK pin being permanently configured into input mode.
I.e. the output clock will always stay disabled.
Fix that by saving the CDCLKCON bit state in i2s_shutdown() and
and restoring it in the i2s_startup() callback.

Signed-off-by: Chen Zhen <zhen1.chen@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/samsung/i2s.c