diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-23 23:22:26 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-16 20:51:48 -0700 |
commit | 166b8915aad6f7db7446b74f38a8c3a45626c815 (patch) | |
tree | 5c27dc7eb223f746da42eb04c2e7a098cb42968d | |
parent | 0ddb60b10b3869e9d9384976af4a7d98c3f0842b (diff) | |
download | lwn-166b8915aad6f7db7446b74f38a8c3a45626c815.tar.gz lwn-166b8915aad6f7db7446b74f38a8c3a45626c815.zip |
ASoC: pcm1681: Fix setting de-emphasis sampling rate selection
commit fa8173a3ef0570affde7da352de202190b3786c2 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | sound/soc/codecs/pcm1681.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c index 651e2fe2c31f..dfa9755da118 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; |