From: Mark Brown Date: Wed, 8 Jan 2014 19:50:07 +0000 (+0000) Subject: ASoC: da732x: Use params_width() rather than memory format X-Git-Tag: firefly_0821_release~176^2~4492^2~11^2^2^18~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=abf82ae6a6a875ff04e882aaf4dade40d5b0a794;p=firefly-linux-kernel-4.4.55.git ASoC: da732x: Use params_width() rather than memory format Signed-off-by: Mark Brown --- 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: