diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:54:38 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:48:24 -0400 |
commit | 20a77bbd27ff7c04166327cc463437c17c2185f8 (patch) | |
tree | 114e4b47da06639cfff6ec863f494b871b740ce1 | |
parent | a351901d166ed17195c375f5de2edf48c5e9f327 (diff) |
ASoC: wm8991: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm8991.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c index b8fd284fc0c0..d0be89731cdb 100644 --- a/sound/soc/codecs/wm8991.c +++ b/sound/soc/codecs/wm8991.c | |||
@@ -1081,16 +1081,16 @@ static int wm8991_hw_params(struct snd_pcm_substream *substream, | |||
1081 | 1081 | ||
1082 | audio1 &= ~WM8991_AIF_WL_MASK; | 1082 | audio1 &= ~WM8991_AIF_WL_MASK; |
1083 | /* bit size */ | 1083 | /* bit size */ |
1084 | switch (params_format(params)) { | 1084 | switch (params_width(params)) { |
1085 | case SNDRV_PCM_FORMAT_S16_LE: | 1085 | case 16: |
1086 | break; | 1086 | break; |
1087 | case SNDRV_PCM_FORMAT_S20_3LE: | 1087 | case 20: |
1088 | audio1 |= WM8991_AIF_WL_20BITS; | 1088 | audio1 |= WM8991_AIF_WL_20BITS; |
1089 | break; | 1089 | break; |
1090 | case SNDRV_PCM_FORMAT_S24_LE: | 1090 | case 24: |
1091 | audio1 |= WM8991_AIF_WL_24BITS; | 1091 | audio1 |= WM8991_AIF_WL_24BITS; |
1092 | break; | 1092 | break; |
1093 | case SNDRV_PCM_FORMAT_S32_LE: | 1093 | case 32: |
1094 | audio1 |= WM8991_AIF_WL_32BITS; | 1094 | audio1 |= WM8991_AIF_WL_32BITS; |
1095 | break; | 1095 | break; |
1096 | } | 1096 | } |