[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 05/20] audio: deprecate -soundhw es1370
From: |
Gerd Hoffmann |
Subject: |
[PATCH v4 05/20] audio: deprecate -soundhw es1370 |
Date: |
Wed, 24 Jun 2020 13:30:11 +0200 |
Switch to deprecated_register_soundhw(). Remove the now obsolete init
function. Add an alias so both es1370 and ES1370 are working with
-device.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/audio/es1370.c | 9 ++-------
qdev-monitor.c | 1 +
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c
index 5f8a83ff5624..4255463a49ff 100644
--- a/hw/audio/es1370.c
+++ b/hw/audio/es1370.c
@@ -884,12 +884,6 @@ static void es1370_exit(PCIDevice *dev)
AUD_remove_card(&s->card);
}
-static int es1370_init (PCIBus *bus)
-{
- pci_create_simple (bus, -1, TYPE_ES1370);
- return 0;
-}
-
static Property es1370_properties[] = {
DEFINE_AUDIO_PROPERTIES(ES1370State, card),
DEFINE_PROP_END_OF_LIST(),
@@ -928,7 +922,8 @@ static const TypeInfo es1370_info = {
static void es1370_register_types (void)
{
type_register_static (&es1370_info);
- pci_register_soundhw("es1370", "ENSONIQ AudioPCI ES1370", es1370_init);
+ deprecated_register_soundhw("es1370", "ENSONIQ AudioPCI ES1370",
+ 0, TYPE_ES1370);
}
type_init (es1370_register_types)
diff --git a/qdev-monitor.c b/qdev-monitor.c
index 105d9792ecdf..e3083fae394b 100644
--- a/qdev-monitor.c
+++ b/qdev-monitor.c
@@ -55,6 +55,7 @@ typedef struct QDevAlias
static const QDevAlias qdev_alias_table[] = {
{ "AC97", "ac97" }, /* -soundhw name */
{ "e1000", "e1000-82540em" },
+ { "ES1370", "es1370" }, /* -soundhw name */
{ "ich9-ahci", "ahci" },
{ "lsi53c895a", "lsi" },
{ "virtio-9p-ccw", "virtio-9p", QEMU_ARCH_S390X },
--
2.18.4
- [PATCH v4 09/20] audio: deprecate -soundhw sb16, (continued)
- [PATCH v4 09/20] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/06/24
- [PATCH v4 17/20] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/06/24
- [PATCH v4 19/20] pcspk: update docs/system/target-i386-desc.rst.inc, Gerd Hoffmann, 2020/06/24
- [PATCH v4 02/20] stubs: add pci_create_simple, Gerd Hoffmann, 2020/06/24
- [PATCH v4 12/20] pc_basic_device_init: drop has_pit arg, Gerd Hoffmann, 2020/06/24
- [PATCH v4 20/20] audio: set default value for pcspk.iobase property, Gerd Hoffmann, 2020/06/24
- [PATCH v4 08/20] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/06/24
- [PATCH v4 14/20] softmmu: initialize spice and audio earlier, Gerd Hoffmann, 2020/06/24
- [PATCH v4 07/20] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/06/24
- [PATCH v4 05/20] audio: deprecate -soundhw es1370,
Gerd Hoffmann <=
- [PATCH v4 01/20] stubs: add isa_create_simple, Gerd Hoffmann, 2020/06/24
- [PATCH v4 18/20] audio: add soundhw deprecation notice, Gerd Hoffmann, 2020/06/24
- [PATCH v4 13/20] pc_basic_device_init: drop no_vmport arg, Gerd Hoffmann, 2020/06/24
- [PATCH v4 03/20] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/06/24
- [PATCH v4 04/20] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/06/24
- [PATCH v4 15/20] audio: rework pcspk_init(), Gerd Hoffmann, 2020/06/24
- [PATCH v4 16/20] audio: create pcspk device early, Gerd Hoffmann, 2020/06/24