[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/18] hw/display/xlnx_dp.c: Add audiodev property
From: |
Martin Kletzander |
Subject: |
[PATCH 09/18] hw/display/xlnx_dp.c: Add audiodev property |
Date: |
Mon, 25 Apr 2022 10:21:52 +0200 |
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>
---
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 9bb781e31254..b16d6be2b5cc 100644
--- a/hw/display/xlnx_dp.c
+++ b/hw/display/xlnx_dp.c
@@ -1357,6 +1357,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);
@@ -1364,6 +1369,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.35.1
- [PATCH 00/18] RFC: Remove deprecated audio features, Martin Kletzander, 2022/04/25
- [PATCH 11/18] hw/arm: Support machine-default audiodev with fallback, Martin Kletzander, 2022/04/25
- [PATCH 16/18] audio: Remove legacy audio environment variables and options, Martin Kletzander, 2022/04/25
- [PATCH 17/18] audio: Remove unused can_be_default, Martin Kletzander, 2022/04/25
- [PATCH 13/18] audio: Make AUD_register_card fallible and require audiodev=, Martin Kletzander, 2022/04/25
- [PATCH 09/18] hw/display/xlnx_dp.c: Add audiodev property,
Martin Kletzander <=
- [PATCH 04/18] hw/audio/lm4549: Add errp error reporting to init function, Martin Kletzander, 2022/04/25
- [PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback, Martin Kletzander, 2022/04/25
- [PATCH 02/18] hw/input/tsc210x: Extract common init code into new function, Martin Kletzander, 2022/04/25
- [PATCH 06/18] ui/vnc: Require audiodev=, Martin Kletzander, 2022/04/25
- [PATCH 15/18] audio: Be more strict during audio backend initialisation, Martin Kletzander, 2022/04/25