[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/12] audio: deprecate -soundhw gus
From: |
Gerd Hoffmann |
Subject: |
[PATCH 08/12] audio: deprecate -soundhw gus |
Date: |
Wed, 29 Apr 2020 13:02:10 +0200 |
Switch to deprecated_register_soundhw().
Remove the now obsolete init function.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/audio/gus.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/hw/audio/gus.c b/hw/audio/gus.c
index eb4a803fb53b..61d16fad9ffb 100644
--- a/hw/audio/gus.c
+++ b/hw/audio/gus.c
@@ -292,12 +292,6 @@ static void gus_realizefn (DeviceState *dev, Error **errp)
AUD_set_active_out (s->voice, 1);
}
-static int GUS_init (ISABus *bus)
-{
- isa_create_simple (bus, TYPE_GUS);
- return 0;
-}
-
static Property gus_properties[] = {
DEFINE_AUDIO_PROPERTIES(GUSState, card),
DEFINE_PROP_UINT32 ("freq", GUSState, freq, 44100),
@@ -328,7 +322,7 @@ static const TypeInfo gus_info = {
static void gus_register_types (void)
{
type_register_static (&gus_info);
- isa_register_soundhw("gus", "Gravis Ultrasound GF1", GUS_init);
+ deprecated_register_soundhw("gus", "Gravis Ultrasound GF1", 1, TYPE_GUS);
}
type_init (gus_register_types)
--
2.18.2
- [PATCH 00/12] audio: deprecate -soundhw, Gerd Hoffmann, 2020/04/29
- [PATCH 02/12] stubs: add pci_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 04/12] audio: deprecate -soundhw ac97, Gerd Hoffmann, 2020/04/29
- [PATCH 09/12] audio: deprecate -soundhw sb16, Gerd Hoffmann, 2020/04/29
- [PATCH 05/12] audio: deprecate -soundhw es1370, Gerd Hoffmann, 2020/04/29
- [PATCH 07/12] audio: deprecate -soundhw cs4231a, Gerd Hoffmann, 2020/04/29
- [PATCH 01/12] stubs: add isa_create_simple, Gerd Hoffmann, 2020/04/29
- [PATCH 12/12] [RFC] audio: try use onboard audiodev for pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 08/12] audio: deprecate -soundhw gus,
Gerd Hoffmann <=
- [PATCH 10/12] audio: deprecate -soundhw hda, Gerd Hoffmann, 2020/04/29
- [PATCH 03/12] audio: add deprecated_register_soundhw, Gerd Hoffmann, 2020/04/29
- [PATCH 11/12] audio: deprecate -soundhw pcspk, Gerd Hoffmann, 2020/04/29
- [PATCH 06/12] audio: deprecate -soundhw adlib, Gerd Hoffmann, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Daniel P . Berrangé, 2020/04/29
- Re: [PATCH 00/12] audio: deprecate -soundhw, Philippe Mathieu-Daudé, 2020/04/29