Explorar o código

ASoC: isabelle: Use params_width() rather than memory format

Signed-off-by: Mark Brown <broonie@linaro.org>
Mark Brown %!s(int64=12) %!d(string=hai) anos
pai
achega
359e2ae897
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      sound/soc/codecs/isabelle.c

+ 3 - 3
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: