]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: renesas: rz-ssi: Fix rz_ssi_priv::hw_params_cache::sample_width
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 14 Nov 2025 07:37:06 +0000 (07:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:53 +0000 (10:16 +0100)
commit21d87fde367a50464fa312e197c74f0e3387cae6
tree3a1fe772cc7d453aa52f9b8269e4703d93bf6777
parent4d2ae0495c75a97fa6e09cb6d61a162f7b5345ba
ASoC: renesas: rz-ssi: Fix rz_ssi_priv::hw_params_cache::sample_width

commit 2bae7beda19f3b2dc6ab2062c94df19c27923712 upstream.

The strm->sample_width is not filled during rz_ssi_dai_hw_params(). This
wrong value is used for caching sample_width in struct hw_params_cache.
Fix this issue by replacing 'strm->sample_width'->'params_width(params)'
in rz_ssi_dai_hw_params(). After this drop the variable sample_width
from struct rz_ssi_stream as it is unused.

Cc: stable@kernel.org
Fixes: 4f8cd05a4305 ("ASoC: sh: rz-ssi: Add full duplex support")
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-3-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