]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Improve EP93xx I2S clocks management.
authorAlexander Sverdlin <subaparts@yandex.ru>
Mon, 7 Mar 2011 17:30:36 +0000 (20:30 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 9 Mar 2011 13:08:36 +0000 (13:08 +0000)
commit0bffdca6408c9e8ed7d0d099032960b595f76f51
tree7ce2eb217095f0df26bd030d00c9e1a6dc6f6233
parent511bed2741a4abacf1e1a88df770549d8a1285e8
ASoC: Improve EP93xx I2S clocks management.

Improve EP93xx I2S clocks management.
Some freqs values are set not exact as they requested for MCLK and
original code was not able to find divisors for SCLK and LRCLK.
This code just picks up nearest value from 3 possible variants.
This patch makes 44100 and 192000 rates working and fixes
capture function (by selecting SCLK/LRCLK=64 where possible).
All other rates should work as before.

Signed-off-by: Alexander Sverdlin <subaparts@yandex.ru>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/ep93xx/ep93xx-i2s.c