mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
ASoC: mc13783: Fix wrong mask value used in mc13xxx_reg_rmw() calls
commit 545774bd6e1427d98dde77244329d2311c5eca6f upstream. mc13xxx_reg_rmw() won't change any bit if passing 0 to the mask field. Pass AUDIO_SSI_SEL instead of 0 for the mask field to set AUDIO_SSI_SEL bit. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
28bb832e33
commit
048a067a58
1 changed files with 2 additions and 2 deletions
|
@ -604,14 +604,14 @@ static int mc13783_probe(struct snd_soc_codec *codec)
|
|||
AUDIO_SSI_SEL, 0);
|
||||
else
|
||||
mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC,
|
||||
0, AUDIO_SSI_SEL);
|
||||
AUDIO_SSI_SEL, AUDIO_SSI_SEL);
|
||||
|
||||
if (priv->dac_ssi_port == MC13783_SSI1_PORT)
|
||||
mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC,
|
||||
AUDIO_SSI_SEL, 0);
|
||||
else
|
||||
mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC,
|
||||
0, AUDIO_SSI_SEL);
|
||||
AUDIO_SSI_SEL, AUDIO_SSI_SEL);
|
||||
|
||||
mc13xxx_unlock(priv->mc13xxx);
|
||||
|
||||
|
|
Loading…
Reference in a new issue