diff options
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 392285edb595..b3053a98db82 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -918,16 +918,16 @@ static int wm8350_pcm_hw_params(struct snd_pcm_substream *substream, | |||
918 | ~WM8350_AIF_WL_MASK; | 918 | ~WM8350_AIF_WL_MASK; |
919 | 919 | ||
920 | /* bit size */ | 920 | /* bit size */ |
921 | switch (params_format(params)) { | 921 | switch (params_width(params)) { |
922 | case SNDRV_PCM_FORMAT_S16_LE: | 922 | case 16: |
923 | break; | 923 | break; |
924 | case SNDRV_PCM_FORMAT_S20_3LE: | 924 | case 20: |
925 | iface |= 0x1 << 10; | 925 | iface |= 0x1 << 10; |
926 | break; | 926 | break; |
927 | case SNDRV_PCM_FORMAT_S24_LE: | 927 | case 24: |
928 | iface |= 0x2 << 10; | 928 | iface |= 0x2 << 10; |
929 | break; | 929 | break; |
930 | case SNDRV_PCM_FORMAT_S32_LE: | 930 | case 32: |
931 | iface |= 0x3 << 10; | 931 | iface |= 0x3 << 10; |
932 | break; | 932 | break; |
933 | } | 933 | } |