]> 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)
commitfbb66ef1ee0c4f6c75193020d50fec327717f6d0
tree3ab93bc86878c3a0c56aa6e4498f986bbb33aeb3
parentb10edde8f3599bed31c0334ba6787331127d582a
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