summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-01-08 20:50:07 +0100
committerMark Brown <broonie@linaro.org>2014-01-13 12:45:51 +0100
commitabf82ae6a6a875ff04e882aaf4dade40d5b0a794 (patch)
tree28e198e3cb28ecbedeaa2610abf32cdd45443f2d /sound
parentASoC: da7213: Use params_width() rather than memory format (diff)
downloadlinux-abf82ae6a6a875ff04e882aaf4dade40d5b0a794.tar.xz
linux-abf82ae6a6a875ff04e882aaf4dade40d5b0a794.zip
ASoC: da732x: Use params_width() rather than memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/da732x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c
index dc0284dc9e6f..f295b6569910 100644
--- a/sound/soc/codecs/da732x.c
+++ b/sound/soc/codecs/da732x.c
@@ -973,17 +973,17 @@ static int da732x_hw_params(struct snd_pcm_substream *substream,
reg_aif = dai->driver->base;
- switch (params_format(params)) {
- case SNDRV_PCM_FORMAT_S16_LE:
+ switch (params_width(params)) {
+ case 16:
aif |= DA732X_AIF_WORD_16;
break;
- case SNDRV_PCM_FORMAT_S20_3LE:
+ case 20:
aif |= DA732X_AIF_WORD_20;
break;
- case SNDRV_PCM_FORMAT_S24_LE:
+ case 24:
aif |= DA732X_AIF_WORD_24;
break;
- case SNDRV_PCM_FORMAT_S32_LE:
+ case 32:
aif |= DA732X_AIF_WORD_32;
break;
default: