summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianluca Renzi <gianlucarenzi@eurekelettronica.it>2015-09-25 21:33:41 +0200
committerMark Brown <broonie@kernel.org>2015-09-30 19:44:03 +0100
commite256da84a04ea31c3c215997c847609af224e8f4 (patch)
treef9725ba0dd5669f1695f09eb5e4510818f4111ca
parentfb97d75b038659998257f7dd767d8229dce50b74 (diff)
downloadlinux-e256da84a04ea31c3c215997c847609af224e8f4.tar.bz2
ASoC: sgtl5000: fix wrong register MIC_BIAS_VOLTAGE setup on probe
Signed-off-by: Gianluca Renzi <gianlucarenzi@eurekelettronica.it> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
-rw-r--r--sound/soc/codecs/sgtl5000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 6e7843ea7511..f540f82b1f27 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1376,8 +1376,8 @@ static int sgtl5000_probe(struct snd_soc_codec *codec)
sgtl5000->micbias_resistor << SGTL5000_BIAS_R_SHIFT);
snd_soc_update_bits(codec, SGTL5000_CHIP_MIC_CTRL,
- SGTL5000_BIAS_R_MASK,
- sgtl5000->micbias_voltage << SGTL5000_BIAS_R_SHIFT);
+ SGTL5000_BIAS_VOLT_MASK,
+ sgtl5000->micbias_voltage << SGTL5000_BIAS_VOLT_SHIFT);
/*
* disable DAP
* TODO: