diff options
| author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-12-15 22:18:19 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-12-31 01:05:23 +0100 |
| commit | e2d784b67dc724a9b0854b49255ba0ee8ca46543 (patch) | |
| tree | 6271b6862784be702db97a9d90754fd97235af73 /hw/audio/intel-hda.c | |
| parent | 5e468a36dcdd8fd5eb04282842b72967a29875e4 (diff) | |
| download | focaccia-qemu-e2d784b67dc724a9b0854b49255ba0ee8ca46543.tar.gz focaccia-qemu-e2d784b67dc724a9b0854b49255ba0ee8ca46543.zip | |
pci: Let pci_dma_rw() take MemTxAttrs argument
Let devices specify transaction attributes when calling pci_dma_rw(). Keep the default MEMTXATTRS_UNSPECIFIED in the few callers. Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-10-philmd@redhat.com>
Diffstat (limited to 'hw/audio/intel-hda.c')
| -rw-r--r-- | hw/audio/intel-hda.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 8ce9df64e3..fb3d34a4a0 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -427,7 +427,8 @@ static bool intel_hda_xfer(HDACodecDevice *dev, uint32_t stnr, bool output, dprint(d, 3, "dma: entry %d, pos %d/%d, copy %d\n", st->be, st->bp, st->bpl[st->be].len, copy); - pci_dma_rw(&d->pci, st->bpl[st->be].addr + st->bp, buf, copy, !output); + pci_dma_rw(&d->pci, st->bpl[st->be].addr + st->bp, buf, copy, !output, + MEMTXATTRS_UNSPECIFIED); st->lpib += copy; st->bp += copy; buf += copy; |