diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-08 13:37:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-09 08:59:15 -0500 |
commit | fa69b0f93e3e383dc50df9529db67c09a1db3787 (patch) | |
tree | 23a2f65d8b2e8db429994cc20629f637ca08c306 /sound/soc | |
parent | 8c5178fca4ce5a57711ea14b807648e19b105d0e (diff) |
ASoC: ad1836: Use params_width() rather than explicit memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 9a92b7962f41..af490bebd7f5 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -168,15 +168,15 @@ static int ad1836_hw_params(struct snd_pcm_substream *substream, | |||
168 | int word_len = 0; | 168 | int word_len = 0; |
169 | 169 | ||
170 | /* bit size */ | 170 | /* bit size */ |
171 | switch (params_format(params)) { | 171 | switch (params_width(params)) { |
172 | case SNDRV_PCM_FORMAT_S16_LE: | 172 | case 16: |
173 | word_len = AD1836_WORD_LEN_16; | 173 | word_len = AD1836_WORD_LEN_16; |
174 | break; | 174 | break; |
175 | case SNDRV_PCM_FORMAT_S20_3LE: | 175 | case 20: |
176 | word_len = AD1836_WORD_LEN_20; | 176 | word_len = AD1836_WORD_LEN_20; |
177 | break; | 177 | break; |
178 | case SNDRV_PCM_FORMAT_S24_LE: | 178 | case 24: |
179 | case SNDRV_PCM_FORMAT_S32_LE: | 179 | case 32: |
180 | word_len = AD1836_WORD_LEN_24; | 180 | word_len = AD1836_WORD_LEN_24; |
181 | break; | 181 | break; |
182 | } | 182 | } |