Skip to content

Commit fcb541c

Browse files
committed
audio: deprecate -soundhw hda
Add deprecation message to the audio init function. Signed-off-by: Gerd Hoffmann <[email protected]> Message-id: [email protected]
1 parent 4b96159 commit fcb541c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hw/audio/intel-hda.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "qemu/bitops.h"
2626
#include "qemu/log.h"
2727
#include "qemu/module.h"
28+
#include "qemu/error-report.h"
2829
#include "hw/audio/soundhw.h"
2930
#include "intel-hda.h"
3031
#include "migration/vmstate.h"
@@ -1307,6 +1308,8 @@ static int intel_hda_and_codec_init(PCIBus *bus)
13071308
BusState *hdabus;
13081309
DeviceState *codec;
13091310

1311+
warn_report("'-soundhw hda' is deprecated, "
1312+
"please use '-device intel-hda -device hda-duplex' instead");
13101313
controller = DEVICE(pci_create_simple(bus, -1, "intel-hda"));
13111314
hdabus = QLIST_FIRST(&controller->child_bus);
13121315
codec = qdev_new("hda-duplex");

0 commit comments

Comments
 (0)