]> 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>
Mon, 5 Jan 2026 14:47:43 +0000 (09:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:15:04 +0000 (10:15 +0100)
commitebdbe19336f26ffe799db842d751745098dc11ff
treea9aa8da25bf3e2096848f6d8f7390cc1f2eeaa1d
parent985131a81ef6ffbbda082fe8cda039f8dfe173b0
ASoC: renesas: rz-ssi: Fix rz_ssi_priv::hw_params_cache::sample_width

[ Upstream commit 2bae7beda19f3b2dc6ab2062c94df19c27923712 ]

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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sh/rz-ssi.c