summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/da7219.h
diff options
context:
space:
mode:
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>2019-02-14 13:13:29 +0300
committerMark Brown <broonie@kernel.org>2019-02-14 17:48:07 +0300
commit9fd729542cf4aff3c70b8e5be6f510e6722bc369 (patch)
tree3ab93bc86878c3a0c56aa6e4498f986bbb33aeb3 /sound/soc/codecs/da7219.h
parentc1b2db4d038938c64f86b1764da2a5b04f95c171 (diff)
downloadlinux-9fd729542cf4aff3c70b8e5be6f510e6722bc369.tar.xz
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.h1
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;