[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 7/9] hw/display/xlnx_dp.c: Add audiodev property
From: |
Paolo Bonzini |
Subject: |
[PULL 7/9] hw/display/xlnx_dp.c: Add audiodev property |
Date: |
Fri, 22 Sep 2023 17:42:26 +0200 |
From: Martin Kletzander <mkletzan@redhat.com>
There was no way to set this and we need that for it to be able to properly
initialise.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Message-ID:
<16963256573fcbfa7720aa2fd000ba74a4055222.1650874791.git.mkletzan@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/display/xlnx_dp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c
index 43c7dd8e9cd..341e91e886f 100644
--- a/hw/display/xlnx_dp.c
+++ b/hw/display/xlnx_dp.c
@@ -1385,6 +1385,11 @@ static void xlnx_dp_reset(DeviceState *dev)
xlnx_dp_update_irq(s);
}
+static Property xlnx_dp_device_properties[] = {
+ DEFINE_AUDIO_PROPERTIES(XlnxDPState, aud_card),
+ DEFINE_PROP_END_OF_LIST(),
+};
+
static void xlnx_dp_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
@@ -1392,6 +1397,7 @@ static void xlnx_dp_class_init(ObjectClass *oc, void
*data)
dc->realize = xlnx_dp_realize;
dc->vmsd = &vmstate_dp;
dc->reset = xlnx_dp_reset;
+ device_class_set_props(dc, xlnx_dp_device_properties);
}
static const TypeInfo xlnx_dp_info = {
--
2.41.0
- [PULL v2 0/9] i386, audio changes for 2023-09-22, Paolo Bonzini, 2023/09/22
- [PULL 1/9] target/i386: enumerate bit 56 of MSR_IA32_VMX_BASIC, Paolo Bonzini, 2023/09/22
- [PULL 2/9] target/i386: Export GDS_NO bit to guests, Paolo Bonzini, 2023/09/22
- [PULL 3/9] qemu/timer: Add host ticks function for RISC-V, Paolo Bonzini, 2023/09/22
- [PULL 4/9] hw/input/tsc210x: Extract common init code into new function, Paolo Bonzini, 2023/09/22
- [PULL 5/9] hw/audio: Simplify hda audio init, Paolo Bonzini, 2023/09/22
- [PULL 6/9] hw/audio/lm4549: Add errp error reporting to init function, Paolo Bonzini, 2023/09/22
- [PULL 7/9] hw/display/xlnx_dp.c: Add audiodev property,
Paolo Bonzini <=
- [PULL 8/9] tests/qtest: Specify audiodev= and -audiodev, Paolo Bonzini, 2023/09/22
- [PULL 9/9] vl: recognize audiodev groups in configuration files, Paolo Bonzini, 2023/09/22
- Re: [PULL v2 0/9] i386, audio changes for 2023-09-22, Stefan Hajnoczi, 2023/09/25