ASoC: renesas: rz-ssi: Fix playback and capture
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Fri, 13 Feb 2026 17:24:34 +0000 (19:24 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 17 Feb 2026 13:17:03 +0000 (13:17 +0000)
commit82e3265487c018814b789e251fb8aee8e683674c
treed95899f6bce764348560780dc138cf1a36271ca8
parent957e5be2e1ff10d4b5e86d420c12580897069114
ASoC: renesas: rz-ssi: Fix playback and capture

In the current codebase the rz_ssi_stream_get() is called at the beginning
of rz_ssi_dai_trigger() before rz_ssi_stream_init() is called.
Since rz_ssi_stream_init() sets the ssi->{playback, capture}->substream,
relying on it in rz_ssi_stream_get() is incorrect. Fix this by checking
substream->stream instead as the original code did.

Fixes: 53dfb2ad6fcf ("ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260213172434.3801015-1-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/rz-ssi.c