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 <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/678919
Reviewed-by: Jason Clinton <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/681618
Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
if (bytescount > rtd->renderbytescount)
bytescount = bytescount - rtd->renderbytescount;
- pos = bytescount % buffersize;
} else {
if (bytescount > rtd->capturebytescount)
bytescount = bytescount - rtd->capturebytescount;
- pos = bytescount % buffersize;
}
+ pos = do_div(bytescount, buffersize);
return bytes_to_frames(runtime, pos);
}