summaryrefslogtreecommitdiffstats
path: root/hw/es1370.c
diff options
context:
space:
mode:
authormalc2011-11-01 23:16:34 +0100
committermalc2011-11-01 23:16:34 +0100
commitef26ee0e6c67d415f8b22850f9f13a972ada8be1 (patch)
treec18a9cc2a9f213c8a37473f9b7aa001a99898547 /hw/es1370.c
parentMerge branch 'master' of git://git.qemu.org/qemu (diff)
parentpcnet: Add link state support (diff)
downloadqemu-ef26ee0e6c67d415f8b22850f9f13a972ada8be1.tar.gz
qemu-ef26ee0e6c67d415f8b22850f9f13a972ada8be1.tar.xz
qemu-ef26ee0e6c67d415f8b22850f9f13a972ada8be1.zip
Merge branch 'master' of git://git.qemu.org/qemu
Diffstat (limited to 'hw/es1370.c')
-rw-r--r--hw/es1370.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/es1370.c b/hw/es1370.c
index 2daadde0e6..c5c16b0484 100644
--- a/hw/es1370.c
+++ b/hw/es1370.c
@@ -30,6 +30,7 @@
#include "audiodev.h"
#include "audio/audio.h"
#include "pci.h"
+#include "dma.h"
/* Missing stuff:
SCTRL_P[12](END|ST)INC
@@ -802,7 +803,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel,
if (!acquired)
break;
- cpu_physical_memory_write (addr, tmpbuf, acquired);
+ pci_dma_write (&s->dev, addr, tmpbuf, acquired);
temp -= acquired;
addr += acquired;
@@ -816,7 +817,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);
+ pci_dma_read (&s->dev, addr, tmpbuf, to_copy);
copied = AUD_write (voice, tmpbuf, to_copy);
if (!copied)
break;