summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm1681.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-23 23:22:26 +0800
committerMark Brown <broonie@kernel.org>2015-07-24 11:34:58 +0100
commitfa8173a3ef0570affde7da352de202190b3786c2 (patch)
treecc5d47cbfeee495762f974cd9b9ac491c2c45f4a /sound/soc/codecs/pcm1681.c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlwn-fa8173a3ef0570affde7da352de202190b3786c2.tar.gz
lwn-fa8173a3ef0570affde7da352de202190b3786c2.zip
ASoC: pcm1681: Fix setting de-emphasis sampling rate selection
The de-emphasis sampling rate selection is controlled by BIT[3:4] of PCM1681_DEEMPH_CONTROL register. Do proper left shift to set it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Marek Belisko <marek.belisko@streamunlimited.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/pcm1681.c')
-rw-r--r--sound/soc/codecs/pcm1681.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c
index 477e13d30971..e7ba557979cb 100644
--- a/sound/soc/codecs/pcm1681.c
+++ b/sound/soc/codecs/pcm1681.c
@@ -102,7 +102,7 @@ static int pcm1681_set_deemph(struct snd_soc_codec *codec)
if (val != -1) {
regmap_update_bits(priv->regmap, PCM1681_DEEMPH_CONTROL,
- PCM1681_DEEMPH_RATE_MASK, val);
+ PCM1681_DEEMPH_RATE_MASK, val << 3);
enable = 1;
} else
enable = 0;