ASoC: samsung-i2s: Maintain CDCLK settings across i2s_{shutdown/startup}
commit b97c60ab upstream. 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> [ kamal: 3.13-stable prereq for 133c2681 "ASoC: samsung-i2s: Check secondary DAI exists before referencing". ] Signed-off-by:
Kamal Mostafa <kamal@canonical.com>
Showing
Please register or sign in to comment