[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/20] audio: deprecate -soundhw sb16
From: |
Gerd Hoffmann |
Subject: |
[PULL 09/20] audio: deprecate -soundhw sb16 |
Date: |
Mon, 6 Jul 2020 21:29:10 +0200 |
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
---
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
- [PULL 00/20] Audio 20200706 patches, Gerd Hoffmann, 2020/07/06
- [PULL 02/20] stubs: add pci_create_simple, Gerd Hoffmann, 2020/07/06
- [PULL 03/20] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/07/06
- [PULL 12/20] pc_basic_device_init: drop has_pit arg, Gerd Hoffmann, 2020/07/06
- [PULL 01/20] stubs: add isa_create_simple, Gerd Hoffmann, 2020/07/06
- [PULL 04/20] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/07/06
- [PULL 09/20] audio: deprecate -soundhw sb16,
Gerd Hoffmann <=
- [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, 2020/07/06
- [PULL 16/20] audio: create pcspk device early, Gerd Hoffmann, 2020/07/06