aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8770.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8770.c')
-rw-r--r--sound/soc/codecs/wm8770.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c
index c61aeb38efb8..180e7a098726 100644
--- a/sound/soc/codecs/wm8770.c
+++ b/sound/soc/codecs/wm8770.c
@@ -426,16 +426,16 @@ static int wm8770_hw_params(struct snd_pcm_substream *substream,
426 wm8770 = snd_soc_codec_get_drvdata(codec); 426 wm8770 = snd_soc_codec_get_drvdata(codec);
427 427
428 iface = 0; 428 iface = 0;
429 switch (params_format(params)) { 429 switch (params_width(params)) {
430 case SNDRV_PCM_FORMAT_S16_LE: 430 case 16:
431 break; 431 break;
432 case SNDRV_PCM_FORMAT_S20_3LE: 432 case 20:
433 iface |= 0x10; 433 iface |= 0x10;
434 break; 434 break;
435 case SNDRV_PCM_FORMAT_S24_LE: 435 case 24:
436 iface |= 0x20; 436 iface |= 0x20;
437 break; 437 break;
438 case SNDRV_PCM_FORMAT_S32_LE: 438 case 32:
439 iface |= 0x30; 439 iface |= 0x30;
440 break; 440 break;
441 } 441 }