<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 8, 2017 at 9:24 AM, Alex Deucher <span dir="ltr"><<a href="mailto:alexdeucher@gmail.com" target="_blank">alexdeucher@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Guenter Roeck <<a href="mailto:groeck@chromium.org">groeck@chromium.org</a>><br>
<br>
ERROR: "__aeabi_uldivmod" [sound/soc/amd/snd-soc-acp-<wbr>pcm.ko] undefined!<br>
<br>
64-bit divides require special operations to avoid build errors on 32-bit<br>
systems.<br>
<br>
BUG=b:63121716<br>
TEST="Build i386:allmodconfig"<br>
<br></blockquote><div><br></div><div>Is this an upstream submission ? Fine with me, but it should not include any chromium specific tags, neither in the subject not in the description.</div><div><br></div><div>Guenter</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Guenter Roeck <<a href="mailto:groeck@chromium.org">groeck@chromium.org</a>><br>
Reviewed-on: <a href="https://chromium-review.googlesource.com/678919" rel="noreferrer" target="_blank">https://chromium-review.<wbr>googlesource.com/678919</a><br>
Reviewed-by: Jason Clinton <<a href="mailto:jclinton@chromium.org">jclinton@chromium.org</a>><br>
(cherry picked from commit 7ca726e80f21abdbaed9a5a70def1c<wbr>33a26f8533)<br>
Reviewed-on: <a href="https://chromium-review.googlesource.com/681618" rel="noreferrer" target="_blank">https://chromium-review.<wbr>googlesource.com/681618</a><br>
Signed-off-by: Alex Deucher <<a href="mailto:alexander.deucher@amd.com">alexander.deucher@amd.com</a>><br>
---<br>
sound/soc/amd/acp-pcm-dma.c | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c<br>
index 13d040a4d26f..ef7e98ad960c 100644<br>
--- a/sound/soc/amd/acp-pcm-dma.c<br>
+++ b/sound/soc/amd/acp-pcm-dma.c<br>
@@ -856,12 +856,11 @@ static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream)<br>
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {<br>
if (bytescount > rtd->renderbytescount)<br>
bytescount = bytescount - rtd->renderbytescount;<br>
- pos = bytescount % buffersize;<br>
} else {<br>
if (bytescount > rtd->capturebytescount)<br>
bytescount = bytescount - rtd->capturebytescount;<br>
- pos = bytescount % buffersize;<br>
}<br>
+ pos = do_div(bytescount, buffersize);<br>
return bytes_to_frames(runtime, pos);<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.13.6<br>
<br>
</font></span></blockquote></div><br></div></div>