]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: Calculate AUXCLK divider when setting up master clocks
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 9 May 2016 10:42:32 +0000 (13:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2016 15:55:16 +0000 (16:55 +0100)
commit0b4279f4306fc5f549e1ec721224846c9134e9ce
tree2dc09ed782ab53866be2e5ddecf54bca01e9f903
parent7a48238144b841a3a0ab99f4bb8a7f0673b151bd
ASoC: davinci-mcasp: Calculate AUXCLK divider when setting up master clocks

If the McASP is used as clock master and the reference clock is AUXCLK we
can have additional level of divider. The BCLK divider is limited to
maximum 32, if the desired bclk can not be reached with this, the AUXCLK
divider also needs to be used.

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