]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: davinci-mcasp: Move the FS polarity change out from the switch case
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 4 Apr 2014 11:31:44 +0000 (14:31 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:24:24 +0000 (17:24 +0100)
commit83f12503bd1fb18d3fd460871660b34faf671918
tree7689085b75c13180b42fcffc353b301ad80ed26f
parent188edc59c297fcd971d6a4ae5f5f5dacff7b315b
ASoC: davinci-mcasp: Move the FS polarity change out from the switch case

FS polarity can be either rising or falling edge in McASP. Instead of
accessing the registers in every switch/case set a flag and write the
registers after the switch for the invert configuration.
This change will help when adding support for more formats also.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c