]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1a24f82d3ba3742ce13eb03a73c84769678e2be
tree851e1dcb759881e00193956e9cf30a0ec8779e74
parent6d583898b6f071c11a241b2b41b140256b24acb0
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