linux/sound/soc/sophgo
Arnd Bergmann cad9720dd7
ASoC: sophgo: fix 64-bit division build failure
cv1800b_adc_setbclk_div() does four 64-bit divisions in a row, which
is rather inefficient on 32-bit systems, and using the plain division
causes a build failure as a result:

ERROR: modpost: "__aeabi_uldivmod" [sound/soc/sophgo/cv1800b-sound-adc.ko] undefined!

Consolidate those into a single division using the div_u64() macro.

Fixes: 4cf8752a03 ("ASoC: sophgo: add CV1800B internal ADC codec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260202095323.1233553-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-02-02 12:09:35 +00:00
..
cv1800b-sound-adc.c ASoC: sophgo: fix 64-bit division build failure 2026-02-02 12:09:35 +00:00
cv1800b-sound-dac.c ASoC: sophgo: cv1800b: document DAC overwrite handling 2026-01-27 20:06:35 +00:00
cv1800b-tdm.c
Kconfig ASoC: sophgo: cv1800b: tidy Kconfig spacing 2026-01-27 20:06:36 +00:00
Makefile ASoC: sophgo: add CV1800B internal DAC codec driver 2026-01-27 12:52:06 +00:00