diff options
Diffstat (limited to 'sound/soc/codecs/wm8728.c')
-rw-r--r-- | sound/soc/codecs/wm8728.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index bac7fc28fe71..38ff826f589a 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c | |||
@@ -94,13 +94,13 @@ static int wm8728_hw_params(struct snd_pcm_substream *substream, | |||
94 | 94 | ||
95 | dac &= ~0x18; | 95 | dac &= ~0x18; |
96 | 96 | ||
97 | switch (params_format(params)) { | 97 | switch (params_width(params)) { |
98 | case SNDRV_PCM_FORMAT_S16_LE: | 98 | case 16: |
99 | break; | 99 | break; |
100 | case SNDRV_PCM_FORMAT_S20_3LE: | 100 | case 20: |
101 | dac |= 0x10; | 101 | dac |= 0x10; |
102 | break; | 102 | break; |
103 | case SNDRV_PCM_FORMAT_S24_LE: | 103 | case 24: |
104 | dac |= 0x08; | 104 | dac |= 0x08; |
105 | break; | 105 | break; |
106 | default: | 106 | default: |