diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-31 07:33:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 08:30:05 -0400 |
commit | 794f33d2fb9823adbcd99d002ea3f9eb4379ae4d (patch) | |
tree | ec384aa60364f908b4e2d62f265aecc34772489d /sound | |
parent | e6777ead100d92db92d1e00b5e5ea4a688391719 (diff) |
ASoC: rt5651: Convert to params_width()
The CODEC doesn't care how data is laid out in memory.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5651.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c index ea4b1c652a26..bb0a3ab5416c 100644 --- a/sound/soc/codecs/rt5651.c +++ b/sound/soc/codecs/rt5651.c | |||
@@ -1366,16 +1366,16 @@ static int rt5651_hw_params(struct snd_pcm_substream *substream, | |||
1366 | dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n", | 1366 | dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n", |
1367 | bclk_ms, pre_div, dai->id); | 1367 | bclk_ms, pre_div, dai->id); |
1368 | 1368 | ||
1369 | switch (params_format(params)) { | 1369 | switch (params_width(params)) { |
1370 | case SNDRV_PCM_FORMAT_S16_LE: | 1370 | case 16: |
1371 | break; | 1371 | break; |
1372 | case SNDRV_PCM_FORMAT_S20_3LE: | 1372 | case 20: |
1373 | val_len |= RT5651_I2S_DL_20; | 1373 | val_len |= RT5651_I2S_DL_20; |
1374 | break; | 1374 | break; |
1375 | case SNDRV_PCM_FORMAT_S24_LE: | 1375 | case 24: |
1376 | val_len |= RT5651_I2S_DL_24; | 1376 | val_len |= RT5651_I2S_DL_24; |
1377 | break; | 1377 | break; |
1378 | case SNDRV_PCM_FORMAT_S8: | 1378 | case 8: |
1379 | val_len |= RT5651_I2S_DL_8; | 1379 | val_len |= RT5651_I2S_DL_8; |
1380 | break; | 1380 | break; |
1381 | default: | 1381 | default: |