ASoC: sh: rz-ssi: Update interrupt handling for half duplex channels
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 17 Feb 2023 18:52:23 +0000 (18:52 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 5 Mar 2023 23:36:48 +0000 (23:36 +0000)
commit38c042b59af0248a8b13f01b1a09d890997c9f6e
treeec4887d68408c0c604f5b81e3fe1b98315d6d75d
parent56a3840486ae22c42176828e25d4073712837bfd
ASoC: sh: rz-ssi: Update interrupt handling for half duplex channels

For half duplex channels we dont have separate interrupts for Tx and Rx
instead we have single interrupt Rt (where the signal for Rx and Tx is
muxed). To handle such a case install a handler in case we have a dma_rt
interrupt specified in the DT for the PIO mode.

Note, for backward compatibility we check if the Rx and Tx interrupts
are present first instead of checking Rt interrupt.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230217185225.43310-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rz-ssi.c