From: Richard Fitzgerald Date: Tue, 11 Jul 2017 14:12:17 +0000 (+0100) Subject: ASoC: cs47l35: Update FLL gain configuration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d10e2ad828d470e801f6da6cd1e4a9838618039b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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: