diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2019-02-14 11:13:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-14 15:48:07 +0100 |
commit | 9fd729542cf4aff3c70b8e5be6f510e6722bc369 (patch) | |
tree | 3ab93bc86878c3a0c56aa6e4498f986bbb33aeb3 /sound/soc/codecs/da7219.h | |
parent | ASoC: samsung: i2s: Convert to SPDX License Indentifier (diff) | |
download | linux-9fd729542cf4aff3c70b8e5be6f510e6722bc369.tar.xz linux-9fd729542cf4aff3c70b8e5be6f510e6722bc369.zip |
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>
Diffstat (limited to 'sound/soc/codecs/da7219.h')
-rw-r--r-- | sound/soc/codecs/da7219.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219.h b/sound/soc/codecs/da7219.h index 366cf46118a0..018819c631fb 100644 --- a/sound/soc/codecs/da7219.h +++ b/sound/soc/codecs/da7219.h @@ -830,6 +830,7 @@ struct da7219_priv { int clk_src; bool master; + bool tdm_en; bool alc_en; bool micbias_on_event; unsigned int mic_pga_delay; |