aboutsummaryrefslogtreecommitdiff
path: root/hw/audio
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-02 15:25:14 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-06 17:01:11 +0200
commit4b96159ecca1c48a1f4cbbc940b59cd05b473400 (patch)
treea45beec115a5877549d05f24f6f4040fb758489d /hw/audio
parentba541176f4385749d56574cda55fb86053a9d0b6 (diff)
downloadqemu-4b96159ecca1c48a1f4cbbc940b59cd05b473400.zip
qemu-4b96159ecca1c48a1f4cbbc940b59cd05b473400.tar.gz
qemu-4b96159ecca1c48a1f4cbbc940b59cd05b473400.tar.bz2
audio: deprecate -soundhw sb16
Switch to deprecated_register_soundhw(). Remove the now obsolete init function. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200702132525.6849-10-kraxel@redhat.com
Diffstat (limited to 'hw/audio')
-rw-r--r--hw/audio/sb16.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c
index df6f755..2d9e50f 100644
--- a/hw/audio/sb16.c
+++ b/hw/audio/sb16.c
@@ -1415,12 +1415,6 @@ static void sb16_realizefn (DeviceState *dev, Error **errp)
AUD_register_card ("sb16", &s->card);
}
-static int SB16_init (ISABus *bus)
-{
- isa_create_simple (bus, TYPE_SB16);
- return 0;
-}
-
static Property sb16_properties[] = {
DEFINE_AUDIO_PROPERTIES(SB16State, card),
DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */
@@ -1453,7 +1447,8 @@ static const TypeInfo sb16_info = {
static void sb16_register_types (void)
{
type_register_static (&sb16_info);
- isa_register_soundhw("sb16", "Creative Sound Blaster 16", SB16_init);
+ deprecated_register_soundhw("sb16", "Creative Sound Blaster 16",
+ 1, TYPE_SB16);
}
type_init (sb16_register_types)