diff options
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r-- | sound/soc/codecs/wm8903.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index b84940c359a1..fa4bccf601e6 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
@@ -1477,19 +1477,19 @@ static int wm8903_hw_params(struct snd_pcm_substream *substream, | |||
1477 | 1477 | ||
1478 | aif1 &= ~WM8903_AIF_WL_MASK; | 1478 | aif1 &= ~WM8903_AIF_WL_MASK; |
1479 | bclk = 2 * fs; | 1479 | bclk = 2 * fs; |
1480 | switch (params_format(params)) { | 1480 | switch (params_width(params)) { |
1481 | case SNDRV_PCM_FORMAT_S16_LE: | 1481 | case 16: |
1482 | bclk *= 16; | 1482 | bclk *= 16; |
1483 | break; | 1483 | break; |
1484 | case SNDRV_PCM_FORMAT_S20_3LE: | 1484 | case 20: |
1485 | bclk *= 20; | 1485 | bclk *= 20; |
1486 | aif1 |= 0x4; | 1486 | aif1 |= 0x4; |
1487 | break; | 1487 | break; |
1488 | case SNDRV_PCM_FORMAT_S24_LE: | 1488 | case 24: |
1489 | bclk *= 24; | 1489 | bclk *= 24; |
1490 | aif1 |= 0x8; | 1490 | aif1 |= 0x8; |
1491 | break; | 1491 | break; |
1492 | case SNDRV_PCM_FORMAT_S32_LE: | 1492 | case 32: |
1493 | bclk *= 32; | 1493 | bclk *= 32; |
1494 | aif1 |= 0xc; | 1494 | aif1 |= 0xc; |
1495 | break; | 1495 | break; |