ASoC: cs47l35: Update FLL gain configuration
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 11 Jul 2017 14:12:17 +0000 (15:12 +0100)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:32:04 +0000 (16:32 +0900)
CS47L35 revisions A1 and above should use the alt_gain in the
same situations as CS47L90.

Change-Id: I35d6f06052db5d0d300b9d009fd0b4cd2e2f5e86
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
sound/soc/codecs/madera.c

index 88410740140b6345114292d34c8ed833f540d6e4..5c25474932df09f354eea90be01a18002e0238f5 100644 (file)
@@ -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: