diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-11-24 15:32:09 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-25 12:12:57 +0000 |
commit | 4ca730436a676afebbe6b77d65b5b4c4d7d38b9c (patch) | |
tree | 8862f24e6c00d293501f79a4308e666bbc8ae5dd /sound/soc/fsl/fsl_ssi.c | |
parent | 3d8d0bd07816b2dbb06014a98ab3d6599ae3566a (diff) | |
download | talos-op-linux-4ca730436a676afebbe6b77d65b5b4c4d7d38b9c.tar.gz talos-op-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_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 674abf778715..e3abad5f980a 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -767,8 +767,7 @@ static int fsl_ssi_hw_params(struct snd_pcm_substream *substream, struct fsl_ssi_private *ssi_private = snd_soc_dai_get_drvdata(cpu_dai); struct regmap *regs = ssi_private->regs; unsigned int channels = params_channels(hw_params); - unsigned int sample_size = - snd_pcm_format_width(params_format(hw_params)); + unsigned int sample_size = params_width(hw_params); u32 wl = CCSR_SSI_SxCCR_WL(sample_size); int ret; u32 scr_val; |