[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/13] audio: deprecate -soundhw hda
From: |
Gerd Hoffmann |
Subject: |
[PATCH v2 10/13] audio: deprecate -soundhw hda |
Date: |
Fri, 15 May 2020 16:35:25 +0200 |
Add deprecation message to the audio init function.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/audio/intel-hda.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
index 4696ae0d9a61..d491e407b317 100644
--- a/hw/audio/intel-hda.c
+++ b/hw/audio/intel-hda.c
@@ -25,6 +25,7 @@
#include "qemu/bitops.h"
#include "qemu/log.h"
#include "qemu/module.h"
+#include "qemu/error-report.h"
#include "hw/audio/soundhw.h"
#include "intel-hda.h"
#include "migration/vmstate.h"
@@ -1307,6 +1308,8 @@ static int intel_hda_and_codec_init(PCIBus *bus)
BusState *hdabus;
DeviceState *codec;
+ warn_report("'-soundhw hda' is deprecated, "
+ "please use '-device intel-hda -device hda-duplex' instead");
controller = DEVICE(pci_create_simple(bus, -1, "intel-hda"));
hdabus = QLIST_FIRST(&controller->child_bus);
codec = qdev_create(hdabus, "hda-duplex");
--
2.18.4
- [PATCH v2 00/13] audio: deprecate -soundhw, Gerd Hoffmann, 2020/05/15
- [PATCH v2 01/13] stubs: add isa_create_simple, Gerd Hoffmann, 2020/05/15
- [PATCH v2 06/13] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/05/15
- [PATCH v2 08/13] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/05/15
- [PATCH v2 09/13] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/05/15
- [PATCH v2 10/13] audio: deprecate -soundhw hda,
Gerd Hoffmann <=
- [PATCH v2 07/13] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/05/15
- [PATCH v2 12/13] audio: add soundhw deprecation notice, Gerd Hoffmann, 2020/05/15
- [PATCH v2 03/13] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/05/15
- [PATCH v2 05/13] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/05/15
- [PATCH v2 13/13] [RFC] audio: try use onboard audiodev for pcspk, Gerd Hoffmann, 2020/05/15
- [PATCH v2 04/13] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/05/15
- [PATCH v2 02/13] stubs: add pci_create_simple, Gerd Hoffmann, 2020/05/15
- [PATCH v2 11/13] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/05/15