From: Sylwester Nawrocki Date: Thu, 10 Jul 2014 16:11:13 +0000 (+0200) Subject: ASoC: samsung-i2s: Maintain CDCLK settings across i2s_{shutdown/startup} X-Git-Tag: omap-for-v3.17/fixes-against-rc2~29^2~4^2~4^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b97c60abf9a561f86ae71bd741add02673cc1a08;p=pandora-kernel.git 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 Signed-off-by: Sylwester Nawrocki Signed-off-by: Mark Brown --- Reading git-diff-tree failed