ASoC: arizona: Suppress noop FLL updates
Subsystems (3)
PATCH 1/1 ASoC: arizona: Suppress noop FLL updates
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/arizona.c | 6 ++++++ sound/soc/codecs/arizona.h | 2 ++ 2 files changed, 8 insertions(+)
sound/soc/codecs/arizona.c +6 -0
@@ -944,6 +944,9 @@ int arizona_set_fll(struct arizona_fll *fll, int source,bool ena;int ret; +if (fll->fref == Fref && fll->fout == Fout) +return 0 ; + ret =regmap_read (arizona->regmap, fll->base +1 , ®);if (ret !=0 ) { arizona_fll_err(fll, "Failed to read current state: %d\n",
@@ -1021,6 +1024,9 @@ int arizona_set_fll(struct arizona_fll *fll, int source,if (ret ==0 )arizona_fll_warn (fll,"Timed out waiting for lock\n" ); + fll->fref = Fref; + fll->fout = Fout; +return 0 ; }EXPORT_SYMBOL_GPL (arizona_set_fll);
sound/soc/codecs/arizona.h +2 -0
@@ -192,6 +192,8 @@ struct arizona_fll {unsigned int vco_mult;struct completion lock;struct completion ok; +unsigned int fref; +unsigned int fout;char lock_name[ARIZONA_FLL_NAME_LEN ];char clock_ok_name[ARIZONA_FLL_NAME_LEN ];
Signature · 1 line
1.7.10.4