diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-04-27 14:51:35 +0800 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2015-06-02 12:08:12 +0100 |
commit | 6aeaa351a4007eaf9135e135e001e15783187465 (patch) | |
tree | d1ca5d35abd1a693c69a007f74b3fa94d1d673aa /sound | |
parent | b986dcc04d5302b69227d4757aeb865e33a127eb (diff) | |
download | linux-stable-6aeaa351a4007eaf9135e135e001e15783187465.tar.gz linux-stable-6aeaa351a4007eaf9135e135e001e15783187465.tar.bz2 linux-stable-6aeaa351a4007eaf9135e135e001e15783187465.zip |
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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/mc13783.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c index 9965277b595a..3e8642de299f 100644 --- a/sound/soc/codecs/mc13783.c +++ b/sound/soc/codecs/mc13783.c @@ -623,14 +623,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); return 0; } |