After looking at Gerd's "audio: deprecate -soundhw": https://www.mail-archive.com/qemu-devel@nongnu.org/msg698818.html I updated a patch I started some time ago. It is unfinished due to problem with hda-intel and pcspk. I have some idea how to fix pcspk, but it invasive. I haven't looked at hda-intel yet. Looking at Gerd series, fixing these issue might be trivial for him, so I send this patch as it, in case it helps.
Since v1: - Include Gerd ISA/PCI stub patches to avoid link failure when target does no kselect the bus. Regards, Phil. Gerd Hoffmann (2): stubs: add isa_create_simple stubs: add pci_create_simple Philippe Mathieu-Daudé (1): hw/audio: Make 'soundhw' command line option a QOM interface include/hw/audio/soundhw.h | 20 +++- hw/audio/ac97.c | 10 +- hw/audio/adlib.c | 13 ++- hw/audio/cs4231a.c | 13 ++- hw/audio/es1370.c | 10 +- hw/audio/gus.c | 13 ++- hw/audio/intel-hda.c | 13 ++- hw/audio/pcspk.c | 14 ++- hw/audio/sb16.c | 13 ++- hw/audio/soundhw.c | 203 ++++++++++++++++++++----------------- stubs/isa-bus.c | 7 ++ stubs/pci-bus.c | 7 ++ stubs/Makefile.objs | 2 + 13 files changed, 194 insertions(+), 144 deletions(-) create mode 100644 stubs/isa-bus.c create mode 100644 stubs/pci-bus.c -- 2.21.1