aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8993.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-31 07:54:45 -0400
committerMark Brown <broonie@linaro.org>2014-07-31 13:48:26 -0400
commitae62ba67b39f9f6db3e85dde357540e87edfc45b (patch)
treed733f8c3d407ef9f0aa10a39597c9e387e209a38 /sound/soc/codecs/wm8993.c
parent20a77bbd27ff7c04166327cc463437c17c2185f8 (diff)
ASoC: wm8993: 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/soc/codecs/wm8993.c')
-rw-r--r--sound/soc/codecs/wm8993.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c
index f825dc04ebe1..93b14eda355a 100644
--- a/sound/soc/codecs/wm8993.c
+++ b/sound/soc/codecs/wm8993.c
@@ -1214,19 +1214,19 @@ static int wm8993_hw_params(struct snd_pcm_substream *substream,
1214 wm8993->tdm_slots, wm8993->tdm_width); 1214 wm8993->tdm_slots, wm8993->tdm_width);
1215 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots; 1215 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots;
1216 } else { 1216 } else {
1217 switch (params_format(params)) { 1217 switch (params_width(params)) {
1218 case SNDRV_PCM_FORMAT_S16_LE: 1218 case 16:
1219 wm8993->bclk *= 16; 1219 wm8993->bclk *= 16;
1220 break; 1220 break;
1221 case SNDRV_PCM_FORMAT_S20_3LE: 1221 case 20:
1222 wm8993->bclk *= 20; 1222 wm8993->bclk *= 20;
1223 aif1 |= 0x8; 1223 aif1 |= 0x8;
1224 break; 1224 break;
1225 case SNDRV_PCM_FORMAT_S24_LE: 1225 case 24:
1226 wm8993->bclk *= 24; 1226 wm8993->bclk *= 24;
1227 aif1 |= 0x10; 1227 aif1 |= 0x10;
1228 break; 1228 break;
1229 case SNDRV_PCM_FORMAT_S32_LE: 1229 case 32:
1230 wm8993->bclk *= 32; 1230 wm8993->bclk *= 32;
1231 aif1 |= 0x18; 1231 aif1 |= 0x18;
1232 break; 1232 break;