[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/20] audio: deprecate -soundhw hda
From: |
Gerd Hoffmann |
Subject: |
[PULL 10/20] audio: deprecate -soundhw hda |
Date: |
Mon, 6 Jul 2020 21:29:11 +0200 |
Add deprecation message to the audio init function.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200702132525.6849-11-kraxel@redhat.com
---
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 f673b8317a84..f6cea49686d7 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_new("hda-duplex");
--
2.18.4
- [PULL 04/20] audio: deprecate -soundhw ac97, (continued)
- [PULL 04/20] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/07/06
- [PULL 09/20] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/07/06
- [PULL 15/20] audio: rework pcspk_init(), Gerd Hoffmann, 2020/07/06
- [PULL 08/20] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/07/06
- [PULL 19/20] pcspk: update docs/system/target-i386-desc.rst.inc, Gerd Hoffmann, 2020/07/06
- [PULL 17/20] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/07/06
- [PULL 06/20] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/07/06
- [PULL 18/20] audio: add soundhw deprecation notice, Gerd Hoffmann, 2020/07/06
- [PULL 07/20] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/07/06
- [PULL 13/20] pc_basic_device_init: drop no_vmport arg, Gerd Hoffmann, 2020/07/06
- [PULL 10/20] audio: deprecate -soundhw hda,
Gerd Hoffmann <=
- [PULL 16/20] audio: create pcspk device early, Gerd Hoffmann, 2020/07/06
- [PULL 11/20] pc_basic_device_init: pass PCMachineState, Gerd Hoffmann, 2020/07/06
- [PULL 20/20] audio: set default value for pcspk.iobase property, Gerd Hoffmann, 2020/07/06
- [PULL 05/20] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/07/06
- [PULL 14/20] softmmu: initialize spice and audio earlier, Gerd Hoffmann, 2020/07/06
- Re: [PULL 00/20] Audio 20200706 patches, Peter Maydell, 2020/07/08