From: Mark Brown Date: Wed, 8 Jan 2014 19:50:38 +0000 (+0000) Subject: ASoC: isabelle: Use params_width() rather than memory format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=359e2ae8974550c65d0d85711c9f86aa6ed215d8;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ASoC: isabelle: Use params_width() rather than memory format Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c index 53b455b8c07a..5839048ec467 100644 --- a/sound/soc/codecs/isabelle.c +++ b/sound/soc/codecs/isabelle.c @@ -951,11 +951,11 @@ static int isabelle_hw_params(struct snd_pcm_substream *substream, ISABELLE_FS_RATE_MASK, fs_val); /* bit size */ - switch (params_format(params)) { - case SNDRV_PCM_FORMAT_S20_3LE: + switch (params_width(params)) { + case 20: aif |= ISABELLE_AIF_LENGTH_20; break; - case SNDRV_PCM_FORMAT_S32_LE: + case 32: aif |= ISABELLE_AIF_LENGTH_32; break; default: