qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

audio: deprecate -soundhw es1370

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>
Message-id: 20200702132525.6849-6-kraxel@redhat.com

+3 -7
+2 -7
hw/audio/es1370.c
··· 884 884 AUD_remove_card(&s->card); 885 885 } 886 886 887 - static int es1370_init (PCIBus *bus) 888 - { 889 - pci_create_simple (bus, -1, TYPE_ES1370); 890 - return 0; 891 - } 892 - 893 887 static Property es1370_properties[] = { 894 888 DEFINE_AUDIO_PROPERTIES(ES1370State, card), 895 889 DEFINE_PROP_END_OF_LIST(), ··· 928 922 static void es1370_register_types (void) 929 923 { 930 924 type_register_static (&es1370_info); 931 - pci_register_soundhw("es1370", "ENSONIQ AudioPCI ES1370", es1370_init); 925 + deprecated_register_soundhw("es1370", "ENSONIQ AudioPCI ES1370", 926 + 0, TYPE_ES1370); 932 927 } 933 928 934 929 type_init (es1370_register_types)
+1
qdev-monitor.c
··· 55 55 static const QDevAlias qdev_alias_table[] = { 56 56 { "AC97", "ac97" }, /* -soundhw name */ 57 57 { "e1000", "e1000-82540em" }, 58 + { "ES1370", "es1370" }, /* -soundhw name */ 58 59 { "ich9-ahci", "ahci" }, 59 60 { "lsi53c895a", "lsi" }, 60 61 { "virtio-9p-ccw", "virtio-9p", QEMU_ARCH_S390X },