summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5651.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-02-25 11:46:53 +0100
committerMark Brown <broonie@kernel.org>2018-03-01 20:13:05 +0100
commit3d7719d3cc8efe88be4c72cb7cbb0d866ed7d1b2 (patch)
tree16197b8183a73984b22fd8681f9f29e828ff7b9e /sound/soc/codecs/rt5651.c
parentASoC: rt5651: Remove programming of PWR regs before force_bias_level() call (diff)
downloadlinux-3d7719d3cc8efe88be4c72cb7cbb0d866ed7d1b2.tar.xz
linux-3d7719d3cc8efe88be4c72cb7cbb0d866ed7d1b2.zip
ASoC: rt5651: Only configure LDO voltage once at boot
Now that rt5651_set_bias_level(BIAS_OFF) no longer modifies the LDO voltage selection bits, there is no need to set them each time we move to standby. Instead configure them once at component-probe() time. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5651.c')
-rw-r--r--sound/soc/codecs/rt5651.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index 74f83af3b6be..9460bdcad349 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -1540,9 +1540,6 @@ static int rt5651_set_bias_level(struct snd_soc_component *component,
snd_soc_component_update_bits(component, RT5651_PWR_ANLG1,
RT5651_PWR_FV1 | RT5651_PWR_FV2,
RT5651_PWR_FV1 | RT5651_PWR_FV2);
- snd_soc_component_update_bits(component, RT5651_PWR_ANLG1,
- RT5651_PWR_LDO_DVO_MASK,
- RT5651_PWR_LDO_DVO_1_2V);
snd_soc_component_update_bits(component, RT5651_D_MISC, 0x1, 0x1);
}
break;
@@ -1662,6 +1659,9 @@ static int rt5651_probe(struct snd_soc_component *component)
rt5651->component = component;
+ snd_soc_component_update_bits(component, RT5651_PWR_ANLG1,
+ RT5651_PWR_LDO_DVO_MASK, RT5651_PWR_LDO_DVO_1_2V);
+
snd_soc_component_force_bias_level(component, SND_SOC_BIAS_OFF);
rt5651_apply_properties(component);