diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-11-24 08:32:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-25 13:12:57 +0100 |
commit | 4ca730436a676afebbe6b77d65b5b4c4d7d38b9c (patch) | |
tree | 8862f24e6c00d293501f79a4308e666bbc8ae5dd /sound/soc/fsl/fsl_asrc.c | |
parent | Merge branch 'topic/fsl-sai' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-4ca730436a676afebbe6b77d65b5b4c4d7d38b9c.tar.xz linux-4ca730436a676afebbe6b77d65b5b4c4d7d38b9c.zip |
ASoC: fsl: using params_width function to simplify code
using params_width function to simplify code.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc.c')
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 9f087d4f73ed..6d0636605ed2 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -447,7 +447,7 @@ static int fsl_asrc_dai_hw_params(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct fsl_asrc *asrc_priv = snd_soc_dai_get_drvdata(dai); - int width = snd_pcm_format_width(params_format(params)); + int width = params_width(params); struct snd_pcm_runtime *runtime = substream->runtime; struct fsl_asrc_pair *pair = runtime->private_data; unsigned int channels = params_channels(params); |