]> git.proxmox.com Git - mirror_qemu.git/commitdiff
audio: Rename audio_init() to soundhw_init()
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 8 May 2017 20:57:34 +0000 (17:57 -0300)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 19 May 2017 08:48:53 +0000 (10:48 +0200)
To make it consistent with the remaining soundhw.c functions and
avoid confusion with the audio_init() function in audio/audio.c,
rename audio_init() to soundhw_init().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-id: 20170508205735.23444-3-ehabkost@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/audio/soundhw.c
hw/ppc/prep.c
include/hw/audio/audio.h
vl.c

index 5e96b73c81497baf6a564e6bee978f03a495d927..29565da93d4b31238a9767c1c76a74c9667c66a4 100644 (file)
@@ -129,7 +129,7 @@ void select_soundhw(const char *optarg)
     }
 }
 
-void audio_init(void)
+void soundhw_init(void)
 {
     struct soundhw *c;
     ISABus *isa_bus = (ISABus *) object_resolve_path_type("", TYPE_ISA_BUS, NULL);
index 96a4813b3feb2683055d2439495b4665103861c3..4a7d2cfbe00d2330cfa71421cd9b6906fe7b9b3a 100644 (file)
@@ -783,7 +783,7 @@ static void ibm_40p_init(MachineState *machine)
                        &cmos_checksum);
 
     /* initialize audio subsystem */
-    audio_init();
+    soundhw_init();
 
     /* add some more devices */
     if (defaults_enabled()) {
index 259bb2cf961f33fb3f65f5cbb77f3b4ba653b82c..119f7d78d5062f539c004d3302245c2a6566d0d1 100644 (file)
@@ -7,7 +7,7 @@ void isa_register_soundhw(const char *name, const char *descr,
 void pci_register_soundhw(const char *name, const char *descr,
                           int (*init_pci)(PCIBus *bus));
 
-void audio_init(void);
+void soundhw_init(void);
 void select_soundhw(const char *optarg);
 
 #endif
diff --git a/vl.c b/vl.c
index 6e46889cdebd30c45dbac682a80a3a8a0b572db9..8f08f422a771cb8509fbd2384e2ad7f71588582b 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -4575,7 +4575,7 @@ int main(int argc, char **argv, char **envp)
 
     realtime_init();
 
-    audio_init();
+    soundhw_init();
 
     if (hax_enabled()) {
         hax_sync_vcpus();