summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-ak4497.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/imx-ak4497.c')
-rw-r--r--sound/soc/fsl/imx-ak4497.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-ak4497.c b/sound/soc/fsl/imx-ak4497.c
index 627f0574fe3b..de3c35e1f7e4 100644
--- a/sound/soc/fsl/imx-ak4497.c
+++ b/sound/soc/fsl/imx-ak4497.c
@@ -59,7 +59,7 @@ static int imx_aif_hw_params(struct snd_pcm_substream *substream,
ret = snd_soc_dai_set_tdm_slot(cpu_dai,
BIT(channels) - 1, BIT(channels) - 1,
- 2, 32);
+ 2, params_physical_width(params));
if (ret) {
dev_err(dev, "failed to set cpu dai tdm slot: %d\n", ret);
return ret;