diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:49:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:46:35 -0400 |
commit | 6fe12c2fbbb3bf66431fdf75fbdbdc57088f760c (patch) | |
tree | 7b23cc8154ff7fa3ad41f85d46104e11ae218660 /sound | |
parent | 1e6453acda6718992373237a9f8fb36024d30040 (diff) |
ASoC: wm8400: 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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8400.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 06e913d3fea1..72471bef2e9a 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -1095,16 +1095,16 @@ static int wm8400_hw_params(struct snd_pcm_substream *substream, | |||
1095 | 1095 | ||
1096 | audio1 &= ~WM8400_AIF_WL_MASK; | 1096 | audio1 &= ~WM8400_AIF_WL_MASK; |
1097 | /* bit size */ | 1097 | /* bit size */ |
1098 | switch (params_format(params)) { | 1098 | switch (params_width(params)) { |
1099 | case SNDRV_PCM_FORMAT_S16_LE: | 1099 | case 16: |
1100 | break; | 1100 | break; |
1101 | case SNDRV_PCM_FORMAT_S20_3LE: | 1101 | case 20: |
1102 | audio1 |= WM8400_AIF_WL_20BITS; | 1102 | audio1 |= WM8400_AIF_WL_20BITS; |
1103 | break; | 1103 | break; |
1104 | case SNDRV_PCM_FORMAT_S24_LE: | 1104 | case 24: |
1105 | audio1 |= WM8400_AIF_WL_24BITS; | 1105 | audio1 |= WM8400_AIF_WL_24BITS; |
1106 | break; | 1106 | break; |
1107 | case SNDRV_PCM_FORMAT_S32_LE: | 1107 | case 32: |
1108 | audio1 |= WM8400_AIF_WL_32BITS; | 1108 | audio1 |= WM8400_AIF_WL_32BITS; |
1109 | break; | 1109 | break; |
1110 | } | 1110 | } |