summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-ak4497.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-01-19 15:45:06 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:50:26 +0800
commitab38dd7dda9aa52141f8f1d117d5d9a91d17a382 (patch)
tree08d777351ae0d7097e9abb85ae3fef8b036a25d3 /sound/soc/fsl/imx-ak4497.c
parent86dc94e98ed45c2405ff84ac62419c1bd25b4414 (diff)
MLK-17428-6: ASoC: imx-ak4497: support 768KHz sample rate
For 768kHz sample rate, the codec can't support 64fs mclk, only can support 32fs mclk, so we can't fix the slot_width to 32, which is for S32_LE, use params_physical_width(params) to instead of hard code. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
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;