diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:49:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 09:37:23 -0400 |
commit | aa9ffad68a0a5aa00e7c475e28c9951432d701c4 (patch) | |
tree | 967c9788ca1ab86b6b535ce531d481bac335a711 /sound | |
parent | 04f630d845d1deb2e1d6f39f7788ff30b686a389 (diff) |
ASoC: uda134x: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/uda134x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c index edf27acc1d77..ad145ba85cd5 100644 --- a/sound/soc/codecs/uda134x.c +++ b/sound/soc/codecs/uda134x.c | |||
@@ -243,14 +243,14 @@ static int uda134x_hw_params(struct snd_pcm_substream *substream, | |||
243 | case SND_SOC_DAIFMT_I2S: | 243 | case SND_SOC_DAIFMT_I2S: |
244 | break; | 244 | break; |
245 | case SND_SOC_DAIFMT_RIGHT_J: | 245 | case SND_SOC_DAIFMT_RIGHT_J: |
246 | switch (params_format(params)) { | 246 | switch (params_width(params)) { |
247 | case SNDRV_PCM_FORMAT_S16_LE: | 247 | case 16: |
248 | hw_params |= (1<<1); | 248 | hw_params |= (1<<1); |
249 | break; | 249 | break; |
250 | case SNDRV_PCM_FORMAT_S18_3LE: | 250 | case 18: |
251 | hw_params |= (1<<2); | 251 | hw_params |= (1<<2); |
252 | break; | 252 | break; |
253 | case SNDRV_PCM_FORMAT_S20_3LE: | 253 | case 20: |
254 | hw_params |= ((1<<2) | (1<<1)); | 254 | hw_params |= ((1<<2) | (1<<1)); |
255 | break; | 255 | break; |
256 | default: | 256 | default: |