linux/sound/soc/loongson
Arnd Bergmann 928314eb06
ASoC: loongson: fix compile testing on 32-bit
DIV_ROUND_CLOSEST() does not work on 64-bit variables when building for
a 32-bit target:

ld.lld: error: undefined symbol: __udivdi3
>>> referenced by loongson_i2s.c
>>>               sound/soc/loongson/loongson_i2s.o:(loongson_i2s_hw_params) in archive vmlinux.a

Use DIV_ROUND_CLOSEST_ULL() instead.

Fixes: d24028606e ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230616090156.2347850-4-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-06-16 12:56:09 +01:00
..
Kconfig ASoC: loongson: add PCI dependency 2023-06-16 12:56:08 +01:00
loongson_card.c
loongson_dma.c
loongson_dma.h
loongson_i2s.c ASoC: loongson: fix compile testing on 32-bit 2023-06-16 12:56:09 +01:00
loongson_i2s.h
loongson_i2s_pci.c
Makefile