[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/19] audio: deprecate -soundhw sb16
From: |
Gerd Hoffmann |
Subject: |
[PATCH v3 09/19] audio: deprecate -soundhw sb16 |
Date: |
Mon, 22 Jun 2020 13:29:04 +0200 |
Switch to deprecated_register_soundhw().
Remove the now obsolete init function.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/audio/sb16.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c
index df6f755a37f8..2d9e50f99b5d 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)
--
2.18.4
- Re: [PATCH v3 12/19] audio: add soundhw deprecation notice, (continued)
- [PATCH v3 06/19] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/06/22
- [PATCH v3 08/19] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/06/22
- [PATCH v3 13/19] pc_basic_device_init: pass PCMachineState, Gerd Hoffmann, 2020/06/22
- [PATCH v3 17/19] audio: rework pcspk_init(), Gerd Hoffmann, 2020/06/22
- [PATCH v3 18/19] audio: create pcspk device early, add audiodev alias., Gerd Hoffmann, 2020/06/22
- [PATCH v3 19/19] audio: set default value for pcspk.iobase property, Gerd Hoffmann, 2020/06/22
- [PATCH v3 05/19] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/06/22
- [PATCH v3 07/19] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/06/22
- [PATCH v3 09/19] audio: deprecate -soundhw sb16,
Gerd Hoffmann <=