diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-11-09 12:39:24 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-09 14:41:37 +0300 |
commit | 316b7758c998fb13371d14bb6c9e45ab129c19a7 (patch) | |
tree | 9d63b3570601c8ab9773302fa8fb502b330fc5e5 /sound/soc/codecs/tlv320aic26.h | |
parent | 560bfe774f058e97596f30ff71cffdac52b72914 (diff) | |
download | linux-316b7758c998fb13371d14bb6c9e45ab129c19a7.tar.xz |
ASoC: sun8i-codec: Set the BCLK divider
While the current code was reporting to be able to work in master mode, it
failed to do so because the BCLK divider wasn't programmed, meaning that
the BCLK would run at the PLL's frequency no matter the sample rate.
It was obviously a bit too fast.
Add support to retrieve the divider to use, and set it. Since our PLL is
not always able to generate a perfect multiple of the sample rate, we'll
have to choose the closest divider that matches our setup.
Fixes: 36c684936fae ("ASoC: Add sun8i digital audio codec")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic26.h')
0 files changed, 0 insertions, 0 deletions