]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: fsl_sai: Add separate DAI for transmitter and receiver
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 12 Jun 2024 06:40:50 +0000 (14:40 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 26 Jun 2024 16:48:12 +0000 (17:48 +0100)
commit15c958390460f964ec707ae6c5d1843638ebfe69
tree1ec97292bfbf14e6786cb894c32dc1164e2a3f17
parent727de4fbc5466c7150482b532f2b7f7e514134f3
ASoC: fsl_sai: Add separate DAI for transmitter and receiver

The transmitter and receiver part of the SAI interface need to be
configured with different master/slave mode, especially to work
with the audiomix module.

+-------+               +-----------+
| SAI1  |   --TX-->     |           |
|       |   <--RX--     |           |
+-------+               |           |
                        | AUDIOMIX  |
+-------+               |           |
| SAI2  |   --TX-->     |           |
+-------+               +-----------+

The SAI1 TX is in master mode, but SAI1 RX is in slave mode.
So add another two DAIs for TX and RX separately. but only
defined fsl_sai_set_dai_fmt_tx() and fsl_sai_set_dai_fmt_rx()
ops function for current case, in the future, the other ops
function for TX and RX can be defined if required.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/1718174452-17596-2-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