diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-08 15:39:37 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-13 06:45:53 -0500 |
commit | 580ce08d5c1a96aeb0e3434bb5144defb6a334a2 (patch) | |
tree | 8d63ff5929fc31e579d5b228a8d35e0243cce8b7 /sound/soc | |
parent | 7821afc4865e976c55403bdb13d798a133efc815 (diff) |
ASoC: max98095: Use params_width() rather than memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/max98095.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 67244315c721..3ba1170ebb53 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c | |||
@@ -1213,12 +1213,12 @@ static int max98095_dai1_hw_params(struct snd_pcm_substream *substream, | |||
1213 | 1213 | ||
1214 | rate = params_rate(params); | 1214 | rate = params_rate(params); |
1215 | 1215 | ||
1216 | switch (params_format(params)) { | 1216 | switch (params_width(params)) { |
1217 | case SNDRV_PCM_FORMAT_S16_LE: | 1217 | case 16: |
1218 | snd_soc_update_bits(codec, M98095_02A_DAI1_FORMAT, | 1218 | snd_soc_update_bits(codec, M98095_02A_DAI1_FORMAT, |
1219 | M98095_DAI_WS, 0); | 1219 | M98095_DAI_WS, 0); |
1220 | break; | 1220 | break; |
1221 | case SNDRV_PCM_FORMAT_S24_LE: | 1221 | case 24: |
1222 | snd_soc_update_bits(codec, M98095_02A_DAI1_FORMAT, | 1222 | snd_soc_update_bits(codec, M98095_02A_DAI1_FORMAT, |
1223 | M98095_DAI_WS, M98095_DAI_WS); | 1223 | M98095_DAI_WS, M98095_DAI_WS); |
1224 | break; | 1224 | break; |