Commit b4f89a0c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: msm8916-wcd-analog: Update correct register setting for MIC BIAS Internal1

pm8916_wcd_analog_enable_micbias_int1() should set micbias1_cap_mode
rather than micbias2_cap_mode.

Also change the order of pm8916_wcd_analog_enable_micbias_int1/init2
functions for better readability.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ba9b8c42
......@@ -349,7 +349,7 @@ static int pm8916_wcd_analog_enable_micbias_ext2(struct
}
static int pm8916_wcd_analog_enable_micbias_int2(struct
static int pm8916_wcd_analog_enable_micbias_int1(struct
snd_soc_dapm_widget
*w, struct snd_kcontrol
*kcontrol, int event)
......@@ -358,10 +358,10 @@ static int pm8916_wcd_analog_enable_micbias_int2(struct
struct pm8916_wcd_analog_priv *wcd = snd_soc_codec_get_drvdata(codec);
return pm8916_wcd_analog_enable_micbias_int(codec, event, w->reg,
wcd->micbias2_cap_mode);
wcd->micbias1_cap_mode);
}
static int pm8916_wcd_analog_enable_micbias_int1(struct
static int pm8916_wcd_analog_enable_micbias_int2(struct
snd_soc_dapm_widget
*w, struct snd_kcontrol
*kcontrol, int event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment