diff options
author | Martin Kletzander <mkletzan@redhat.com> | 2022-04-25 10:21:52 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-22 16:30:07 +0200 |
commit | fac7e497ca3ee088330b19b915ed09e67fcfce4c (patch) | |
tree | 0fd0e36b85e5f3366372dd7d19ed6da7b2305c91 | |
parent | 79d3e56c2071d402fd55f135aea872d8fe24d269 (diff) | |
download | qemu-fac7e497ca3ee088330b19b915ed09e67fcfce4c.zip qemu-fac7e497ca3ee088330b19b915ed09e67fcfce4c.tar.gz qemu-fac7e497ca3ee088330b19b915ed09e67fcfce4c.tar.bz2 |
hw/display/xlnx_dp.c: Add audiodev property
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>
-rw-r--r-- | hw/display/xlnx_dp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c index 43c7dd8..341e91e 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 = { |