]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit770f58d7d2c58b8ff31d3694ce14a785c2e75009
tree453f8c1bf89a100c4613650b06828bb8164d8a03
parenta57307ca6b661e16f9435a25f376ac277c3de697
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