diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8991.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c index b8fd284fc0c0..d0be89731cdb 100644 --- a/sound/soc/codecs/wm8991.c +++ b/sound/soc/codecs/wm8991.c | |||
@@ -1081,16 +1081,16 @@ static int wm8991_hw_params(struct snd_pcm_substream *substream, | |||
1081 | 1081 | ||
1082 | audio1 &= ~WM8991_AIF_WL_MASK; | 1082 | audio1 &= ~WM8991_AIF_WL_MASK; |
1083 | /* bit size */ | 1083 | /* bit size */ |
1084 | switch (params_format(params)) { | 1084 | switch (params_width(params)) { |
1085 | case SNDRV_PCM_FORMAT_S16_LE: | 1085 | case 16: |
1086 | break; | 1086 | break; |
1087 | case SNDRV_PCM_FORMAT_S20_3LE: | 1087 | case 20: |
1088 | audio1 |= WM8991_AIF_WL_20BITS; | 1088 | audio1 |= WM8991_AIF_WL_20BITS; |
1089 | break; | 1089 | break; |
1090 | case SNDRV_PCM_FORMAT_S24_LE: | 1090 | case 24: |
1091 | audio1 |= WM8991_AIF_WL_24BITS; | 1091 | audio1 |= WM8991_AIF_WL_24BITS; |
1092 | break; | 1092 | break; |
1093 | case SNDRV_PCM_FORMAT_S32_LE: | 1093 | case 32: |
1094 | audio1 |= WM8991_AIF_WL_32BITS; | 1094 | audio1 |= WM8991_AIF_WL_32BITS; |
1095 | break; | 1095 | break; |
1096 | } | 1096 | } |