[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/13] audio: deprecate -soundhw sb16
From: |
Gerd Hoffmann |
Subject: |
[PATCH v2 09/13] audio: deprecate -soundhw sb16 |
Date: |
Fri, 15 May 2020 16:35:24 +0200 |
Switch to deprecated_register_soundhw().
Remove the now obsolete init function.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
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
- [PATCH v2 00/13] audio: deprecate -soundhw, Gerd Hoffmann, 2020/05/15
- [PATCH v2 01/13] stubs: add isa_create_simple, Gerd Hoffmann, 2020/05/15
- [PATCH v2 06/13] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/05/15
- [PATCH v2 08/13] audio: deprecate -soundhw gus, Gerd Hoffmann, 2020/05/15
- [PATCH v2 09/13] audio: deprecate -soundhw sb16,
Gerd Hoffmann <=
- [PATCH v2 10/13] audio: deprecate -soundhw hda, Gerd Hoffmann, 2020/05/15
- [PATCH v2 07/13] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/05/15
- [PATCH v2 12/13] audio: add soundhw deprecation notice, Gerd Hoffmann, 2020/05/15
- [PATCH v2 03/13] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/05/15
- [PATCH v2 05/13] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/05/15
- [PATCH v2 13/13] [RFC] audio: try use onboard audiodev for pcspk, Gerd Hoffmann, 2020/05/15
- [PATCH v2 04/13] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/05/15
- [PATCH v2 02/13] stubs: add pci_create_simple, Gerd Hoffmann, 2020/05/15
- [PATCH v2 11/13] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/05/15