summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-01-08 19:50:38 +0000
committerMark Brown <broonie@linaro.org>2014-01-13 11:45:52 +0000
commit359e2ae8974550c65d0d85711c9f86aa6ed215d8 (patch)
treee61d74c0d8cb7d38e2ef0210192643d33c56cf5c /sound/soc
parent2822a9d01cc8132c82c8fad81df084f45af6a8e2 (diff)
downloadop-kernel-dev-359e2ae8974550c65d0d85711c9f86aa6ed215d8.zip
op-kernel-dev-359e2ae8974550c65d0d85711c9f86aa6ed215d8.tar.gz
ASoC: isabelle: Use params_width() rather than memory format
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/isabelle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c
index 53b455b..5839048 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:
OpenPOWER on IntegriCloud