]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: renesas: rz-ssi: Fix channel swap issue in full duplex mode
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 14 Nov 2025 07:37:05 +0000 (07:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:53 +0000 (10:16 +0100)
commit4d2ae0495c75a97fa6e09cb6d61a162f7b5345ba
treef7a5af5ac5ab4706705e6743c85a9341a9f89ef8
parent3752afcc6d80d5525e236e329895ba2cb93bcb26
ASoC: renesas: rz-ssi: Fix channel swap issue in full duplex mode

commit 52a525011cb8e293799a085436f026f2958403f9 upstream.

The full duplex audio starts with half duplex mode and then switch to
full duplex mode (another FIFO reset) when both playback/capture
streams available leading to random audio left/right channel swap
issue. Fix this channel swap issue by detecting the full duplex
condition by populating struct dup variable in startup() callback
and synchronize starting both the play and capture at the same time
in rz_ssi_start().

Cc: stable@kernel.org
Fixes: 4f8cd05a4305 ("ASoC: sh: rz-ssi: Add full duplex support")
Co-developed-by: Tony Tang <tony.tang.ks@renesas.com>
Signed-off-by: Tony Tang <tony.tang.ks@renesas.com>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20251114073709.4376-2-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/renesas/rz-ssi.c