summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm5100.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-24 16:11:25 +0800
committerMark Brown <broonie@kernel.org>2015-07-24 18:31:31 +0100
commit0a3dcb509ae7701ba3eaf470cad91827821daf41 (patch)
tree60852f4b73792edc71e4015e97bcabf79dc25f67 /sound/soc/codecs/wm5100.c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-0a3dcb509ae7701ba3eaf470cad91827821daf41.tar.bz2
ASoC: Use params_width() at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm5100.c')
-rw-r--r--sound/soc/codecs/wm5100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c
index 4c10cd88c1af..05d25a62e267 100644
--- a/sound/soc/codecs/wm5100.c
+++ b/sound/soc/codecs/wm5100.c
@@ -1408,7 +1408,7 @@ static int wm5100_hw_params(struct snd_pcm_substream *substream,
base = dai->driver->base;
/* Data sizes if not using TDM */
- wl = snd_pcm_format_width(params_format(params));
+ wl = params_width(params);
if (wl < 0)
return wl;
fl = snd_soc_params_to_frame_size(params);