Commit 2befcb5c authored by Axel Lin's avatar Axel Lin Committed by Jiri Slaby

ASoC: pcm1681: Fix setting de-emphasis sampling rate selection

commit fa8173a3 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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarMarek Belisko <marek.belisko@streamunlimited.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 6578b22c
...@@ -101,7 +101,7 @@ static int pcm1681_set_deemph(struct snd_soc_codec *codec) ...@@ -101,7 +101,7 @@ static int pcm1681_set_deemph(struct snd_soc_codec *codec)
if (val != -1) { if (val != -1) {
regmap_update_bits(priv->regmap, PCM1681_DEEMPH_CONTROL, regmap_update_bits(priv->regmap, PCM1681_DEEMPH_CONTROL,
PCM1681_DEEMPH_RATE_MASK, val); PCM1681_DEEMPH_RATE_MASK, val << 3);
enable = 1; enable = 1;
} else } else
enable = 0; enable = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment