summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSusan Gao <sgao@opensource.wolfsonmicro.com>2012-01-30 22:57:04 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-01 11:07:20 +0100
commit2b6712b19531e22455e7fa18371c5ba9eec76699 (patch)
tree55daaabcf2d928494ca4d0fc219544bbaf181fab /sound
parentASoC: core: Better support for idle_bias_off suspend ignores (diff)
downloadlinux-2b6712b19531e22455e7fa18371c5ba9eec76699.tar.xz
linux-2b6712b19531e22455e7fa18371c5ba9eec76699.zip
ASoC: wm8962: Fix word length configuration
Signed-off-by: Susan Gao <sgao@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8962.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index bda3da887d7e..29c4b02c4790 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3159,13 +3159,13 @@ static int wm8962_hw_params(struct snd_pcm_substream *substream,
case SNDRV_PCM_FORMAT_S16_LE:
break;
case SNDRV_PCM_FORMAT_S20_3LE:
- aif0 |= 0x40;
+ aif0 |= 0x4;
break;
case SNDRV_PCM_FORMAT_S24_LE:
- aif0 |= 0x80;
+ aif0 |= 0x8;
break;
case SNDRV_PCM_FORMAT_S32_LE:
- aif0 |= 0xc0;
+ aif0 |= 0xc;
break;
default:
return -EINVAL;