]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: rt1320: fix 32-bit link failure
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Dec 2025 21:52:53 +0000 (22:52 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Dec 2025 11:31:35 +0000 (11:31 +0000)
commit836ecc740ca829040d86a5371f1fcb276110df84
tree178a25e371bc5f3d1147b67a5b5b270a7da7be04
parent45e9066f3a487e9e26b842644364d045af054775
ASoC: rt1320: fix 32-bit link failure

A plain 64-bit division causes a link failure in some configurations:

ERROR: modpost: "__aeabi_uldivmod" [sound/soc/codecs/snd-soc-rt1320-sdw.ko] undefined!

Since this divides by a constant, using the div_u64() macro ends up
turning this into an efficient multiply/shift operation where possible.

In rt1320_calc_r0(), the open-coded shift seems a litle simpler.

Fixes: da1682d5e8b5 ("ASoC: rt1320: support calibration and temperature/r0 loading")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251223215259.677762-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1320-sdw.c