Skip to content

Commit

Permalink
ASoC: msm8916-wcd-analog: Update correct register setting for MIC BIA…
Browse files Browse the repository at this point in the history
…S 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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 9, 2016
1 parent ba9b8c4 commit b4f89a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/codecs/msm8916-wcd-analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b4f89a0

Please sign in to comment.