OSDN Git Service

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)
commit9fd729542cf4aff3c70b8e5be6f510e6722bc369
tree3ab93bc86878c3a0c56aa6e4498f986bbb33aeb3
parentc1b2db4d038938c64f86b1764da2a5b04f95c171
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