diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8993.c | 10 |
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; |