]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Support multiple data channel enable bits
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 1 Sep 2020 11:01:08 +0000 (19:01 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 3 Sep 2020 13:47:36 +0000 (14:47 +0100)
commita4b79fa791195fd7aeb562d81aa776ad60eb0f3d
tree453f8c1bf89a100c4613650b06828bb8164d8a03
parent07315c5fad6e23de96aedd05e5776dc8058d11d5
ASoC: fsl_sai: Support multiple data channel enable bits

One data channel is one data line. From imx7ulp, the SAI IP is
enhanced to support multiple data channels.

If there is only two channels input and slots is 2, then enable one
data channel is enough for data transfer. So enable the TCE/RCE and
transmit/receive mask register according to the input channels and
slots configuration.

Move the data channel enablement from startup() to hw_params().

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/1598958068-10552-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h