diff options
Diffstat (limited to 'sound/soc/codecs/max9850.c')
-rw-r--r-- | sound/soc/codecs/max9850.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c index c5dd61785f8d..82757ebf0301 100644 --- a/sound/soc/codecs/max9850.c +++ b/sound/soc/codecs/max9850.c | |||
@@ -149,14 +149,14 @@ static int max9850_hw_params(struct snd_pcm_substream *substream, | |||
149 | snd_soc_write(codec, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); | 149 | snd_soc_write(codec, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); |
150 | snd_soc_write(codec, MAX9850_LRCLK_LSB, lrclk_div & 0xff); | 150 | snd_soc_write(codec, MAX9850_LRCLK_LSB, lrclk_div & 0xff); |
151 | 151 | ||
152 | switch (params_format(params)) { | 152 | switch (params_width(params)) { |
153 | case SNDRV_PCM_FORMAT_S16_LE: | 153 | case 16: |
154 | da = 0; | 154 | da = 0; |
155 | break; | 155 | break; |
156 | case SNDRV_PCM_FORMAT_S20_3LE: | 156 | case 20: |
157 | da = 0x2; | 157 | da = 0x2; |
158 | break; | 158 | break; |
159 | case SNDRV_PCM_FORMAT_S24_LE: | 159 | case 24: |
160 | da = 0x3; | 160 | da = 0x3; |
161 | break; | 161 | break; |
162 | default: | 162 | default: |