diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-24 11:11:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-24 20:31:31 +0300 |
commit | 0a3dcb509ae7701ba3eaf470cad91827821daf41 (patch) | |
tree | 60852f4b73792edc71e4015e97bcabf79dc25f67 /sound/soc/codecs/wm8996.c | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) | |
download | linux-0a3dcb509ae7701ba3eaf470cad91827821daf41.tar.xz |
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/wm8996.c')
-rw-r--r-- | sound/soc/codecs/wm8996.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 3dd063f682b2..04b25cbdc6a6 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -1780,7 +1780,7 @@ static int wm8996_hw_params(struct snd_pcm_substream *substream, wm8996->rx_rate[dai->id] = params_rate(params); /* Needs looking at for TDM */ - bits = snd_pcm_format_width(params_format(params)); + bits = params_width(params); if (bits < 0) return bits; aifdata |= (bits << WM8996_AIF1TX_WL_SHIFT) | bits; |