From patchwork Sat Jan 29 17:40:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduard - Gabriel Munteanu X-Patchwork-Id: 516561 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0THfDKt005835 for ; Sat, 29 Jan 2011 17:41:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754715Ab1A2RlH (ORCPT ); Sat, 29 Jan 2011 12:41:07 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:50369 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754684Ab1A2RlE (ORCPT ); Sat, 29 Jan 2011 12:41:04 -0500 Received: by mail-fx0-f46.google.com with SMTP id 20so4372013fxm.19 for ; Sat, 29 Jan 2011 09:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references:in-reply-to:references; bh=pefuLVuNzZXrigbTUeL9PsyYAXeQRgZIz/mLGYEPzhg=; b=xae4yimws4iAwwQNiK1ZoJcQq5X5p3sp2DCJjgY2AvulcQ8kAAz2ad9AKjIEK2fxBP qyHU8nY/tedg5rOy8utqhO3EFqWZJhv+GCQf/4q05XlInQemojmXfbEtel9mdXQG9m1h Kdnu8/KZ1k3Lo5zz+ThxhkaYPZyBX8Yd6SDDo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=Z04LItLjjCsnVhQpVNdvqtXAwAFYPyDgj3hoIZ82cepp/RUr4B0m3eMhQCvbr3OtnT zKEi8ViJ9b92nJ6l8Paxm+q89qMgkJ1Hlxn1UEaYp3nHD/lDU+DdbqrK6IzJm+jkqjBb qhGR8SaB/CMKVP2w03c95DGRorb0orx3LfafE= Received: by 10.223.119.129 with SMTP id z1mr3891882faq.50.1296322864239; Sat, 29 Jan 2011 09:41:04 -0800 (PST) Received: from localhost.localdomain ([188.25.244.101]) by mx.google.com with ESMTPS id 21sm6822801fav.17.2011.01.29.09.41.02 (version=SSLv3 cipher=RC4-MD5); Sat, 29 Jan 2011 09:41:03 -0800 (PST) From: Eduard - Gabriel Munteanu To: joro@8bytes.org Cc: blauwirbel@gmail.com, paul@codesourcery.com, avi@redhat.com, anthony@codemonkey.ws, av1474@comtv.ru, yamahata@valinux.co.jp, kvm@vger.kernel.org, qemu-devel@nongnu.org, Eduard - Gabriel Munteanu Subject: [PATCH 08/13] es1370: use the DMA memory access interface Date: Sat, 29 Jan 2011 19:40:29 +0200 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 29 Jan 2011 17:41:14 +0000 (UTC) diff --git a/hw/es1370.c b/hw/es1370.c index 40cb48c..8b1a405 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -802,7 +802,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, if (!acquired) break; - cpu_physical_memory_write (addr, tmpbuf, acquired); + dma_memory_write (&s->dev.dma, addr, tmpbuf, acquired); temp -= acquired; addr += acquired; @@ -816,7 +816,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, int copied, to_copy; to_copy = audio_MIN ((size_t) temp, sizeof (tmpbuf)); - cpu_physical_memory_read (addr, tmpbuf, to_copy); + dma_memory_read (&s->dev.dma, addr, tmpbuf, to_copy); copied = AUD_write (voice, tmpbuf, to_copy); if (!copied) break;