summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/uda134x.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-31 13:49:26 +0200
committerMark Brown <broonie@linaro.org>2014-07-31 15:37:23 +0200
commitaa9ffad68a0a5aa00e7c475e28c9951432d701c4 (patch)
tree967c9788ca1ab86b6b535ce531d481bac335a711 /sound/soc/codecs/uda134x.c
parentASoC: twl4030: Convert to params_width() (diff)
downloadlinux-aa9ffad68a0a5aa00e7c475e28c9951432d701c4.tar.xz
linux-aa9ffad68a0a5aa00e7c475e28c9951432d701c4.zip
ASoC: uda134x: Convert to params_width()
The CODEC doesn't care how data is laid out in memory. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/uda134x.c')
-rw-r--r--sound/soc/codecs/uda134x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index edf27acc1d77..ad145ba85cd5 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -243,14 +243,14 @@ static int uda134x_hw_params(struct snd_pcm_substream *substream,
case SND_SOC_DAIFMT_I2S:
break;
case SND_SOC_DAIFMT_RIGHT_J:
- switch (params_format(params)) {
- case SNDRV_PCM_FORMAT_S16_LE:
+ switch (params_width(params)) {
+ case 16:
hw_params |= (1<<1);
break;
- case SNDRV_PCM_FORMAT_S18_3LE:
+ case 18:
hw_params |= (1<<2);
break;
- case SNDRV_PCM_FORMAT_S20_3LE:
+ case 20:
hw_params |= ((1<<2) | (1<<1));
break;
default: