[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/12] audio: deprecate -soundhw hda
From: |
Gerd Hoffmann |
Subject: |
[PATCH 10/12] audio: deprecate -soundhw hda |
Date: |
Wed, 29 Apr 2020 13:02:12 +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 e8d18b7c5887..df4f13157d44 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.2
- [PATCH 02/12] stubs: add pci_create_simple, (continued)
- [PATCH 02/12] stubs: add pci_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 04/12] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/04/29
- [PATCH 09/12] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/04/29
- [PATCH 05/12] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/04/29
- [PATCH 07/12] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/04/29
- [PATCH 01/12] stubs: add isa_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 12/12] [RFC] audio: try use onboard audiodev for pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 08/12] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/04/29
- [PATCH 10/12] audio: deprecate -soundhw hda,
Gerd Hoffmann <=
- [PATCH 03/12] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/04/29
- [PATCH 11/12] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 06/12] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Daniel P . Berrangé, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Philippe Mathieu-Daudé, 2020/04/29