diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-04 23:07:16 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-06 01:32:17 -0500 |
commit | 576411be200ee0e0801f1fe57d5e7ee787bb1a90 (patch) | |
tree | a8f859ddc3e87237e2a6e9f71c3dea9d22fc0d76 /sound/soc/codecs | |
parent | 9a412cdb1ab0ad984b76debfe562cb7a2c815371 (diff) |
ASoC: arizona: Increase FLL synchroniser bandwidth for high frequencies
If we are using a high freqency SYNCCLK then increasing the bandwidth of
the synchroniser improves performance.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/arizona.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 0599ff8ea935..e3aee143487e 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c | |||
@@ -1157,6 +1157,17 @@ static void arizona_enable_fll(struct arizona_fll *fll, | |||
1157 | return; | 1157 | return; |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | /* | ||
1161 | * Increase the bandwidth if we're not using a low frequency | ||
1162 | * sync source. | ||
1163 | */ | ||
1164 | if (fll->sync_src >= 0 && fll->sync_freq > 100000) | ||
1165 | regmap_update_bits(arizona->regmap, fll->base + 0x17, | ||
1166 | ARIZONA_FLL1_SYNC_BW, 0); | ||
1167 | else | ||
1168 | regmap_update_bits(arizona->regmap, fll->base + 0x17, | ||
1169 | ARIZONA_FLL1_SYNC_BW, ARIZONA_FLL1_SYNC_BW); | ||
1170 | |||
1160 | if (!arizona_is_enabled_fll(fll)) | 1171 | if (!arizona_is_enabled_fll(fll)) |
1161 | pm_runtime_get(arizona->dev); | 1172 | pm_runtime_get(arizona->dev); |
1162 | 1173 | ||