]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: omap-mcbsp: Prepare for init time DAI format setting
authorJarkko Nikula <jarkko.nikula@bitmer.com>
Fri, 30 Sep 2011 13:07:44 +0000 (16:07 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 2 Oct 2011 18:57:07 +0000 (19:57 +0100)
commitb834f04a4aeb434388c8cbc5735e605fe7b5435d
tree11da89922966d61ed18a91c456457b4384e6e0b4
parent0ddc7da7dcf9d095c1766c33e4c65db77332dbcb
ASoC: omap-mcbsp: Prepare for init time DAI format setting

Before commit 461dd42 ("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 <jarkko.nikula@bitmer.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcbsp.c