From patchwork Wed Nov 8 17:24:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 10048889 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60B1360247 for ; Wed, 8 Nov 2017 17:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42D732A7BD for ; Wed, 8 Nov 2017 17:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 377B82A7BA; Wed, 8 Nov 2017 17:25:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 725B822380 for ; Wed, 8 Nov 2017 17:25:26 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8E767267516; Wed, 8 Nov 2017 18:24:27 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id F18602674F6; Wed, 8 Nov 2017 18:24:21 +0100 (CET) Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by alsa0.perex.cz (Postfix) with ESMTP id B4F6F2674F7 for ; Wed, 8 Nov 2017 18:24:17 +0100 (CET) Received: by mail-qt0-f195.google.com with SMTP id 8so4295168qtv.1 for ; Wed, 08 Nov 2017 09:24:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=caUqIIqHnsGmx1ZB76MMro54aKLuvbMeqKbHbDuR+Gk=; b=lbTRRkMwN/2yBh+FTY1U7NeFTq9gp6oSz3AJTJjR3S5kL8qmvGXdyO2I/88d4Jcpz9 KNitbY4TKgYC8MjVS6vpI/YLVgCwaIgZFHg41w4fiNKQ+Tvo55BnKtgkrT/rMMRXVfkj feQ6ryAg/0qqCHviK5H9s5QjKsbWfdAPzn6PWnnhSDzNgIlpvJi3hOKk6cPdrmC1XHkX aTBCGBi62sS3x2CGqo1j9oTnurlliQJtA4dQBye2Oev4G8UF6VcesUVVEgw/8Cs6Fcve UpABKukxepOtonNjGXv6K7MIzTRFSbwpyEW9kkqCFt8qexjj36NE3bwdPDkS5aVnhlkD Nl5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=caUqIIqHnsGmx1ZB76MMro54aKLuvbMeqKbHbDuR+Gk=; b=MsKQdzscgLWOJ8kne2OV3tmTGOr2kMrnl2gxF8on5p3meiIafqEdDUwlmP/yqy4lsX eIHA1Rj4g+Z5RMiw1YWU+kldeSiZ134k6E7uzOkvLAwxAxUspJ6f7EMTaEPD49MpUi7T i37QPlbGb8aWoxrkyghGjLVhfZ9tTV1GtKjipm8k4Or1v7XlmbCoqCCWbNhzUV29Vk18 DbyarcDnqUNKeBiEHbkPv0Uq2V1FDULHFg3bOuH/d636UcYNmelhjBY3yO+DZJZXuafA cORwKx+Aa8GIFAg+PEgxPjSFZgPDFHEW2ze+F84HJG+KGzokLC6rykq/APsUS1obw38a uV3Q== X-Gm-Message-State: AJaThX74WXdKfuMEF9RQYwLvYAK+gN9Ple+CE+y3oVewJLz66piVxMOS uu74OpnlgwcJS7O1pXkvgdc= X-Google-Smtp-Source: ABhQp+REI1BrkqPNA21vkyTnCfG3+2vILhZkA5z1cOiufk5slE9a3FDW4hyHROvhAHTtZyxbHRYh3Q== X-Received: by 10.200.8.239 with SMTP id y44mr1906836qth.245.1510161857067; Wed, 08 Nov 2017 09:24:17 -0800 (PST) Received: from localhost.localdomain (va-67-233-122-109.dhcp.embarqhsd.net. [67.233.122.109]) by smtp.gmail.com with ESMTPSA id k43sm3151324qtc.75.2017.11.08.09.24.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Nov 2017 09:24:16 -0800 (PST) From: Alex Deucher X-Google-Original-From: Alex Deucher To: amd-gfx@lists.freedesktop.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, broonie@kernel.org, Vijendar.Mukunda@amd.com Date: Wed, 8 Nov 2017 12:24:04 -0500 Message-Id: <20171108172404.19118-4-alexander.deucher@amd.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171108172404.19118-1-alexander.deucher@amd.com> References: <20171108172404.19118-1-alexander.deucher@amd.com> Cc: tiwai@suse.de, Guenter Roeck , Alex Deucher , lgirdwood@gmail.com Subject: [alsa-devel] [PATCH 3/3] FIXUP: FROMLIST: ASoC: amd: Report accurate hw_ptr during dma X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Guenter Roeck 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. BUG=b:63121716 TEST="Build i386:allmodconfig" Signed-off-by: Guenter Roeck Reviewed-on: https://chromium-review.googlesource.com/678919 Reviewed-by: Jason Clinton (cherry picked from commit 7ca726e80f21abdbaed9a5a70def1c33a26f8533) Reviewed-on: https://chromium-review.googlesource.com/681618 Signed-off-by: Alex Deucher --- sound/soc/amd/acp-pcm-dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 13d040a4d26f..ef7e98ad960c 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -856,12 +856,11 @@ static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream) 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); }