]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: rt5651: Remove programming of PWR regs before force_bias_level() call
authorHans de Goede <hdegoede@redhat.com>
Sun, 25 Feb 2018 10:46:52 +0000 (11:46 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 19:13:04 +0000 (19:13 +0000)
Remove the setup of the PWR_ANLG1 reg which was done directly before
calling snd_soc_component_force_bias_level(SND_SOC_BIAS_OFF), as the
latter will override any settings done to PWR_ANLG1 immediately anyways.

Tested-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c

index d4fb16686889404f82c5a12fc1303fd06802eb6c..74f83af3b6bedbb48f4102d83d2fadc5d9dadc45 100644 (file)
@@ -1662,16 +1662,6 @@ static int rt5651_probe(struct snd_soc_component *component)
 
        rt5651->component = component;
 
-       snd_soc_component_update_bits(component, RT5651_PWR_ANLG1,
-               RT5651_PWR_VREF1 | RT5651_PWR_MB |
-               RT5651_PWR_BG | RT5651_PWR_VREF2,
-               RT5651_PWR_VREF1 | RT5651_PWR_MB |
-               RT5651_PWR_BG | RT5651_PWR_VREF2);
-       usleep_range(10000, 15000);
-       snd_soc_component_update_bits(component, RT5651_PWR_ANLG1,
-               RT5651_PWR_FV1 | RT5651_PWR_FV2,
-               RT5651_PWR_FV1 | RT5651_PWR_FV2);
-
        snd_soc_component_force_bias_level(component, SND_SOC_BIAS_OFF);
 
        rt5651_apply_properties(component);