summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98925.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-24 11:11:25 +0300
committerMark Brown <broonie@kernel.org>2015-07-24 20:31:31 +0300
commit0a3dcb509ae7701ba3eaf470cad91827821daf41 (patch)
tree60852f4b73792edc71e4015e97bcabf79dc25f67 /sound/soc/codecs/max98925.c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-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/max98925.c')
-rw-r--r--sound/soc/codecs/max98925.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index aad664225dc3..a29e499d2f65 100644
--- a/sound/soc/codecs/max98925.c
+++ b/sound/soc/codecs/max98925.c
@@ -432,7 +432,7 @@ static int max98925_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_codec *codec = dai->codec;
struct max98925_priv *max98925 = snd_soc_codec_get_drvdata(codec);
- switch (snd_pcm_format_width(params_format(params))) {
+ switch (params_width(params)) {
case 16:
regmap_update_bits(max98925->regmap,
MAX98925_FORMAT,