]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: Format data delay configuration enhancement
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 4 Apr 2014 11:31:42 +0000 (14:31 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:24:24 +0000 (17:24 +0100)
commit7d524f779554492cb7b6d5a3bde437e9c86fb6eb
tree1221f7e82b8077cda05cf4a79dc450695852f0bc
parent90fa78bf02f62e1c4a29622b926b9a3953ea19c7
ASoC: davinci-mcasp: Format data delay configuration enhancement

Use intermediate variable for the data delay needed for the specific format
and write the register after the format configuration at once.
This will help to control the number of lines as support for more formats
going to be added.
Also fixes a case when we switch between two formats with different delay
requirements.

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