Skip to content

Commit

Permalink
ASoC: arizona: Increase FLL synchroniser bandwidth for high frequencies
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Mar 6, 2013
1 parent 9a412cd commit 576411b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,17 @@ static void arizona_enable_fll(struct arizona_fll *fll,
return;
}

/*
* Increase the bandwidth if we're not using a low frequency
* sync source.
*/
if (fll->sync_src >= 0 && fll->sync_freq > 100000)
regmap_update_bits(arizona->regmap, fll->base + 0x17,
ARIZONA_FLL1_SYNC_BW, 0);
else
regmap_update_bits(arizona->regmap, fll->base + 0x17,
ARIZONA_FLL1_SYNC_BW, ARIZONA_FLL1_SYNC_BW);

if (!arizona_is_enabled_fll(fll))
pm_runtime_get(arizona->dev);

Expand Down

0 comments on commit 576411b

Please sign in to comment.