From: Jarkko Nikula Date: Fri, 30 Sep 2011 13:07:44 +0000 (+0300) Subject: ASoC: omap-mcbsp: Prepare for init time DAI format setting X-Git-Tag: v3.2-rc1~127^2~1^2~197 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd0417253be35bfbe368c40ec5a10732b24fd65;p=pandora-kernel.git ASoC: omap-mcbsp: Prepare for init time DAI format setting Before commit 75d9ac4 ("ASoC: Allow DAI formats to be specified in the dai_link") expectation for omap-mcbsp was that snd_soc_dai_set_fmt is to be called first in machine hw_params callback before other CPU DAI functions. Thus it was enough that only omap_mcbsp_dai_set_dai_fmt cleared the mcbsp->regs structure. [Note that this was pure convention, it's always been OK to set things on init -- broonie] Now this doesn't hold anymore since machine drivers can set the DAI format only once on init time and thus mcbsp->regs may get out of sync when other CPU DAI functions are modifying them dynamically with different values between the calls. Therefore clear the accessed mcbsp->regs bits and bitfields in other functions too. Signed-off-by: Jarkko Nikula Cc: Peter Ujfalusi Signed-off-by: Mark Brown --- Reading git-diff-tree failed