ASoC: rt1320: fix the remainder calculation of r0 value
Subsystems (3)
PATCH 1/1 ASoC: rt1320: fix the remainder calculation of r0 value
From: Shuming Fan <[email protected]>
This patch fixes the remainder calculation of r0 value.
--- sound/soc/codecs/rt1320-sdw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/rt1320-sdw.c +2 -2
@@ -1091,8 +1091,8 @@ static void rt1320_calc_r0(struct rt1320_sdw_priv *rt1320) l_calir0 = rt1320->r0_l_reg >>27 ; r_calir0 = rt1320->r0_r_reg >>27 ; - l_calir0_lo = (rt1320->r0_l_reg & ((1ull <<27 ) -1 ) *1000 ) >>27 ; - r_calir0_lo = (rt1320->r0_r_reg & ((1ull <<27 ) -1 ) *1000 ) >>27 ; + l_calir0_lo = ((rt1320->r0_l_reg & ((1ull <<27 ) -1 )) *1000 ) >>27 ; + r_calir0_lo = ((rt1320->r0_r_reg & ((1ull <<27 ) -1 )) *1000 ) >>27 ;dev_dbg (dev,"%s, l_calir0=%lld.%03lld ohm, r_calir0=%lld.%03lld ohm\n" , __func__, l_calir0, l_calir0_lo, r_calir0, r_calir0_lo);
Signature · 1 line
2.52.0
Mark Brown
maintainerQuoted 3 lines · On Fri, 26 Dec 2025 14:42:55 +0800, [email protected] wrote:
This patch fixes the remainder calculation of r0 value.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rt1320: fix the remainder calculation of r0 value
commit: 25abdc151a448a17d500ea9468ce32582c479faa
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark