ASoC: Move WM8962 CLKREG_OVD earlier
Subsystems (3)
PATCH 1/1 ASoC: Move WM8962 CLKREG_OVD earlier
When the clocking registers are not overriden some of the registers are not writable.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8962.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8962.c +4 -4
@@ -2934,10 +2934,6 @@ static int wm8962_set_bias_level(struct snd_soc_codec *codec, WM8962_BIAS_ENA | 0x180);msleep (5 ); - -snd_soc_update_bits (codec,WM8962_CLOCKING2 , -WM8962_CLKREG_OVD , -WM8962_CLKREG_OVD ); }/* VMID 2*250k */
@@ -3875,6 +3871,10 @@ static int wm8962_probe(struct snd_soc_codec *codec)*/ snd_soc_update_bits (codec,WM8962_CLOCKING2 ,WM8962_SYSCLK_ENA ,0 ); +/* Ensure we have soft control over all registers */ +snd_soc_update_bits (codec,WM8962_CLOCKING2 , +WM8962_CLKREG_OVD ,WM8962_CLKREG_OVD ); +regulator_bulk_disable (ARRAY_SIZE (wm8962->supplies), wm8962->supplies);if (pdata) {
Signature · 1 line
1.7.5.4
Quoted 7 lines · Mark Brown
When the clocking registers are not overriden some of the registers are not writable.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/wm8962.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
Acked-by Liam Girdwood <[email protected]>