aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-31 07:49:48 -0400
committerMark Brown <broonie@linaro.org>2014-07-31 13:46:32 -0400
commit1e6453acda6718992373237a9f8fb36024d30040 (patch)
treed65c00a07092572b107c1ab2c36076c3d833b544 /sound
parent9630181aac6e709ff248e68474701f763b286c98 (diff)
ASoC: wm8350: 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/wm8350.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 392285edb595..b3053a98db82 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -918,16 +918,16 @@ static int wm8350_pcm_hw_params(struct snd_pcm_substream *substream,
918 ~WM8350_AIF_WL_MASK; 918 ~WM8350_AIF_WL_MASK;
919 919
920 /* bit size */ 920 /* bit size */
921 switch (params_format(params)) { 921 switch (params_width(params)) {
922 case SNDRV_PCM_FORMAT_S16_LE: 922 case 16:
923 break; 923 break;
924 case SNDRV_PCM_FORMAT_S20_3LE: 924 case 20:
925 iface |= 0x1 << 10; 925 iface |= 0x1 << 10;
926 break; 926 break;
927 case SNDRV_PCM_FORMAT_S24_LE: 927 case 24:
928 iface |= 0x2 << 10; 928 iface |= 0x2 << 10;
929 break; 929 break;
930 case SNDRV_PCM_FORMAT_S32_LE: 930 case 32:
931 iface |= 0x3 << 10; 931 iface |= 0x3 << 10;
932 break; 932 break;
933 } 933 }