ASoC: amd: use do_div rather than 64 bit division to fix 32 bit builds
authorGuenter Roeck <groeck@chromium.org>
Wed, 8 Nov 2017 21:34:54 +0000 (16:34 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 21:42:17 +0000 (21:42 +0000)
commit7db08b2cb36cbfbcb06c44dc8e48ccb6a119466f
treef2414b879881235666ce95b038c7e53e06efa913
parentbdd2a858afd55cc11723df9dd2841241a4c49ce5
ASoC: amd: use do_div rather than 64 bit division to fix 32 bit builds

ERROR: "__aeabi_uldivmod" [sound/soc/amd/snd-soc-acp-pcm.ko] undefined!

64-bit divides require special operations to avoid build errors on 32-bit
systems.

[Reword the commit message to make it clearer - Alex]

fixes: 61add8147942 (ASoC: amd: Report accurate hw_ptr during dma)
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/678919
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/681618
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c