ASoC: fsl_sai: Enable BCI bit if SAI works on synchronous mode with BYP asserted
authorChancel Liu <chancel.liu@nxp.com>
Tue, 30 May 2023 10:30:12 +0000 (18:30 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Jun 2023 11:54:07 +0000 (12:54 +0100)
commit32cf0046a652116d6a216d575f3049a9ff9dd80d
tree278ad4d02c1c176781164d4a27179109dd5cf45f
parent635071f5fee31550e921644b2becc42b3ff1036c
ASoC: fsl_sai: Enable BCI bit if SAI works on synchronous mode with BYP asserted

There's an issue on SAI synchronous mode that TX/RX side can't get BCLK
from RX/TX it sync with if BYP bit is asserted. It's a workaround to
fix it that enable SION of IOMUX pad control and assert BCI.

For example if TX sync with RX which means both TX and RX are using clk
form RX and BYP=1. TX can get BCLK only if the following two conditions
are valid:
1. SION of RX BCLK IOMUX pad is set to 1
2. BCI of TX is set to 1

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20230530103012.3448838-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h