projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0195a
)
ASoC: pcm1681: Fix setting de-emphasis sampling rate selection
author
Axel Lin
<
[email protected]
>
Thu, 23 Jul 2015 15:22:26 +0000
(23:22 +0800)
committer
Mark Brown
<
[email protected]
>
Fri, 24 Jul 2015 10:34:58 +0000
(11:34 +0100)
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 <
[email protected]
>
Acked-by: Marek Belisko <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
Cc:
[email protected]
sound/soc/codecs/pcm1681.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/pcm1681.c
b/sound/soc/codecs/pcm1681.c
index 477e13d309713e56a5a4416d054350185fea0007..e7ba557979cb2589439234d6bd0ddbbdc38985e5 100644
(file)
--- 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;