OSDN Git Service

ASoC: fsl_sai: Update slots number according to bclk_ratio
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 5 Aug 2022 06:45:26 +0000 (14:45 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 23 Aug 2022 18:52:36 +0000 (19:52 +0100)
commit837b40293de66a5b96f883f540512ec5c3867610
tree73ec46f0211d04279b8fb0db6bd20334a84bf7b1
parentd4a9fd829285e488c522853faf30aca6097c2b40
ASoC: fsl_sai: Update slots number according to bclk_ratio

The bclk_ratio is set by .set_bclk_ratio API.
bclk_ratio = slots * slot_width
So if slots is not set by .set_tdm_slot, then it can be calculated
by bclk_ratio.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1659681926-13493-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c