aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-31 07:55:23 -0400
committerMark Brown <broonie@linaro.org>2014-07-31 13:48:38 -0400
commit563fe71fe76260e32aefc1a2c03f4634c4d5edf9 (patch)
tree05c08587c148f647271fa4d1149ec9742cb1c35c /sound
parent9572696ddb3f258d64cad9bc4ac3468d1285fdd1 (diff)
ASoC: wm9713: Convert to params_width()
The CODEC doesn't care how data is laid out in memory. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm9713.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 2a9c6d11330c..bddee30a4bc7 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -953,16 +953,16 @@ static int wm9713_pcm_hw_params(struct snd_pcm_substream *substream,
953 struct snd_soc_codec *codec = dai->codec; 953 struct snd_soc_codec *codec = dai->codec;
954 u16 reg = ac97_read(codec, AC97_CENTER_LFE_MASTER) & 0xfff3; 954 u16 reg = ac97_read(codec, AC97_CENTER_LFE_MASTER) & 0xfff3;
955 955
956 switch (params_format(params)) { 956 switch (params_width(params)) {
957 case SNDRV_PCM_FORMAT_S16_LE: 957 case 16:
958 break; 958 break;
959 case SNDRV_PCM_FORMAT_S20_3LE: 959 case 20:
960 reg |= 0x0004; 960 reg |= 0x0004;
961 break; 961 break;
962 case SNDRV_PCM_FORMAT_S24_LE: 962 case 24:
963 reg |= 0x0008; 963 reg |= 0x0008;
964 break; 964 break;
965 case SNDRV_PCM_FORMAT_S32_LE: 965 case 32:
966 reg |= 0x000c; 966 reg |= 0x000c;
967 break; 967 break;
968 } 968 }