From ca89f72092bdb42e077f2f64f417edad009ce0ef Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Mon, 8 May 2017 17:57:33 -0300 Subject: audio: Move arch_init audio code to hw/audio/soundhw.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no reason to keep the soundhw table in arch_init.c. Move that code to a new hw/audio/soundhw.c file. While moving the code, trivial coding style issues were fixed. Signed-off-by: Eduardo Habkost Reviewed-by: David Gibson Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-id: 20170508205735.23444-2-ehabkost@redhat.com Signed-off-by: Gerd Hoffmann --- include/hw/audio/audio.h | 3 +++ include/sysemu/arch_init.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/hw/audio/audio.h b/include/hw/audio/audio.h index 55d40f7..259bb2c 100644 --- a/include/hw/audio/audio.h +++ b/include/hw/audio/audio.h @@ -7,4 +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 select_soundhw(const char *optarg); + #endif diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 2bf16b2..8751c46 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -28,8 +28,6 @@ enum { extern const uint32_t arch_type; -void select_soundhw(const char *optarg); -void audio_init(void); int kvm_available(void); int xen_available(void); -- cgit v1.1