aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8523.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8523.c')
-rw-r--r--sound/soc/codecs/wm8523.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c
index 601ee8178af1..ec1f5740dbd0 100644
--- a/sound/soc/codecs/wm8523.c
+++ b/sound/soc/codecs/wm8523.c
@@ -163,16 +163,16 @@ static int wm8523_hw_params(struct snd_pcm_substream *substream,
163 aifctrl2 |= lrclk_ratios[i].value; 163 aifctrl2 |= lrclk_ratios[i].value;
164 164
165 aifctrl1 &= ~WM8523_WL_MASK; 165 aifctrl1 &= ~WM8523_WL_MASK;
166 switch (params_format(params)) { 166 switch (params_width(params)) {
167 case SNDRV_PCM_FORMAT_S16_LE: 167 case 16:
168 break; 168 break;
169 case SNDRV_PCM_FORMAT_S20_3LE: 169 case 20:
170 aifctrl1 |= 0x8; 170 aifctrl1 |= 0x8;
171 break; 171 break;
172 case SNDRV_PCM_FORMAT_S24_LE: 172 case 24:
173 aifctrl1 |= 0x10; 173 aifctrl1 |= 0x10;
174 break; 174 break;
175 case SNDRV_PCM_FORMAT_S32_LE: 175 case 32:
176 aifctrl1 |= 0x18; 176 aifctrl1 |= 0x18;
177 break; 177 break;
178 } 178 }