]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: Add support for master mode BCLK rate adjustment
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Thu, 14 Feb 2019 10:13:29 +0000 (10:13 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 14:48:07 +0000 (14:48 +0000)
commit7755bb62b1277dc95a162a79a9733cf2dd54578b
tree3ab93bc86878c3a0c56aa6e4498f986bbb33aeb3
parent1ca023c1458fc049f3bad15e0dad6da398b212ce
ASoC: da7219: Add support for master mode BCLK rate adjustment

Previously the driver would default the BCLK periods per WCLK to
64, to cover all possible non-TDM scenarios when the codec was
DAI clock master. However some devices require a lower BCLK rate
to operate correctly so with this in mind, this commit updates
the code to be more dynamic, with BCLK rate now based on SR and
word length provided to hw_params().

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h