Sound: Tegra: max98090: add missing regulator enable
Bibek Basu [Mon, 17 Feb 2014 07:27:58 +0000 (12:27 +0530)]
Add enabling of regulator spkvdd during resume

Bug 1377308

Change-Id: I46af7d1eacd915ad975801cdcf37c41358df813e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/368266
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

sound/soc/tegra/tegra_max98090.c

index fe473b3..14e02e2 100644 (file)
@@ -1166,6 +1166,8 @@ static int tegra_max98090_resume_pre(struct snd_soc_card *card)
                        ret = regulator_enable(machine->avdd_aud_reg);
                if (machine->vdd_sw_1v8_reg)
                        ret = regulator_enable(machine->vdd_sw_1v8_reg);
+               if (machine->spkvdd_5v0)
+                       ret = regulator_enable(machine->spkvdd_5v0);
        }
 
        return 0;