[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback
From: |
Martin Kletzander |
Subject: |
[PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback |
Date: |
Mon, 25 Apr 2022 10:21:55 +0200 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
---
hw/ppc/prep.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index bf622aa38fab..52d801afb307 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -46,6 +46,7 @@
#include "elf.h"
#include "qemu/units.h"
#include "kvm_ppc.h"
+#include "audio/audio.h"
/* SMP is not enabled, for now */
#define MAX_CPUS 1
@@ -304,6 +305,9 @@ static void ibm_40p_init(MachineState *machine)
dev = DEVICE(isa_dev);
qdev_prop_set_uint32(dev, "iobase", 0x830);
qdev_prop_set_uint32(dev, "irq", 10);
+
+ qdev_prop_set_string(dev, "audiodev",
+ audio_maybe_init_dummy("ppc.defaudio"));
isa_realize_and_unref(isa_dev, isa_bus, &error_fatal);
isa_dev = isa_new("pc87312");
--
2.35.1
- [PATCH 16/18] audio: Remove legacy audio environment variables and options, (continued)
- [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, 2022/04/25
- [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 <=
- [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
- [PATCH 03/18] hw/audio: Simplify hda audio init, Martin Kletzander, 2022/04/25