aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8400.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c
index 06e913d3fea1..72471bef2e9a 100644
--- a/sound/soc/codecs/wm8400.c
+++ b/sound/soc/codecs/wm8400.c
@@ -1095,16 +1095,16 @@ static int wm8400_hw_params(struct snd_pcm_substream *substream,
1095 1095
1096 audio1 &= ~WM8400_AIF_WL_MASK; 1096 audio1 &= ~WM8400_AIF_WL_MASK;
1097 /* bit size */ 1097 /* bit size */
1098 switch (params_format(params)) { 1098 switch (params_width(params)) {
1099 case SNDRV_PCM_FORMAT_S16_LE: 1099 case 16:
1100 break; 1100 break;
1101 case SNDRV_PCM_FORMAT_S20_3LE: 1101 case 20:
1102 audio1 |= WM8400_AIF_WL_20BITS; 1102 audio1 |= WM8400_AIF_WL_20BITS;
1103 break; 1103 break;
1104 case SNDRV_PCM_FORMAT_S24_LE: 1104 case 24:
1105 audio1 |= WM8400_AIF_WL_24BITS; 1105 audio1 |= WM8400_AIF_WL_24BITS;
1106 break; 1106 break;
1107 case SNDRV_PCM_FORMAT_S32_LE: 1107 case 32:
1108 audio1 |= WM8400_AIF_WL_32BITS; 1108 audio1 |= WM8400_AIF_WL_32BITS;
1109 break; 1109 break;
1110 } 1110 }