From d10e2ad828d470e801f6da6cd1e4a9838618039b Mon Sep 17 00:00:00 2001 From: Richard Fitzgerald Date: Tue, 11 Jul 2017 15:12:17 +0100 Subject: [PATCH] ASoC: cs47l35: Update FLL gain configuration CS47L35 revisions A1 and above should use the alt_gain in the same situations as CS47L90. Change-Id: I35d6f06052db5d0d300b9d009fd0b4cd2e2f5e86 Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/madera.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c index 88410740140b..5c25474932df 100644 --- a/sound/soc/codecs/madera.c +++ b/sound/soc/codecs/madera.c @@ -4236,14 +4236,18 @@ static int madera_enable_fll(struct madera_fll *fll) case CS47L35: switch (fll->madera->rev) { case 0: + gain = cfg.gain; break; default: fll_change |= madera_set_fll_phase_integrator(fll, &cfg, have_sync); + if (!have_sync && (cfg.theta == 0)) + gain = cfg.alt_gain; + else + gain = cfg.gain; break; } - gain = cfg.gain; break; case CS47L85: case WM1840: -- 2.20.1