diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:53:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 13:47:33 -0400 |
commit | 2f44b0437aae1c5badb63a18fda0d95e51591e23 (patch) | |
tree | e2ff3d9360904ba769932a9be34056712b12052b /sound | |
parent | 6139ea270d64225f7820284da544ea6a59e42fad (diff) |
ASoC: wm8904: 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/wm8904.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index f7c549949c54..79b303a1f2a7 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -1290,16 +1290,16 @@ static int wm8904_hw_params(struct snd_pcm_substream *substream, | |||
1290 | wm8904->bclk = snd_soc_params_to_bclk(params); | 1290 | wm8904->bclk = snd_soc_params_to_bclk(params); |
1291 | } | 1291 | } |
1292 | 1292 | ||
1293 | switch (params_format(params)) { | 1293 | switch (params_width(params)) { |
1294 | case SNDRV_PCM_FORMAT_S16_LE: | 1294 | case 16: |
1295 | break; | 1295 | break; |
1296 | case SNDRV_PCM_FORMAT_S20_3LE: | 1296 | case 20: |
1297 | aif1 |= 0x40; | 1297 | aif1 |= 0x40; |
1298 | break; | 1298 | break; |
1299 | case SNDRV_PCM_FORMAT_S24_LE: | 1299 | case 24: |
1300 | aif1 |= 0x80; | 1300 | aif1 |= 0x80; |
1301 | break; | 1301 | break; |
1302 | case SNDRV_PCM_FORMAT_S32_LE: | 1302 | case 32: |
1303 | aif1 |= 0xc0; | 1303 | aif1 |= 0xc0; |
1304 | break; | 1304 | break; |
1305 | default: | 1305 | default: |