[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 14/20] hw/audio: explicitly set .requester_type for intel-hda
From: |
Alex Bennée |
Subject: |
[PATCH v5 14/20] hw/audio: explicitly set .requester_type for intel-hda |
Date: |
Fri, 11 Nov 2022 18:25:29 +0000 |
This is simulating a bus master writing data back into system memory.
Mark it as such.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
hw/audio/intel-hda.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
index f38117057b..95c28b315c 100644
--- a/hw/audio/intel-hda.c
+++ b/hw/audio/intel-hda.c
@@ -345,7 +345,7 @@ static void intel_hda_corb_run(IntelHDAState *d)
static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t
response)
{
- const MemTxAttrs attrs = { .memory = true };
+ const MemTxAttrs attrs = { .requester_type = MTRT_PCI, .memory = true };
HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus);
IntelHDAState *d = container_of(bus, IntelHDAState, codecs);
hwaddr addr;
--
2.34.1
- Re: [PATCH v5 16/20] include: add MEMTXATTRS_MACHINE helper, (continued)