mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
audio: consolidate audio_init()
consolidate audio_init() and remove references to shoundhw. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
bec43cc3b6
commit
0dfa5ef90d
8 changed files with 41 additions and 80 deletions
|
@ -29,7 +29,7 @@
|
|||
#include "isa.h"
|
||||
#include "fdc.h"
|
||||
#include "sysemu.h"
|
||||
#include "audio/audio.h"
|
||||
#include "arch_init.h"
|
||||
#include "boards.h"
|
||||
#include "net.h"
|
||||
#include "esp.h"
|
||||
|
@ -90,26 +90,6 @@ static CPUWriteMemoryFunc * const dma_dummy_write[3] = {
|
|||
dma_dummy_writeb,
|
||||
};
|
||||
|
||||
static void audio_init(qemu_irq *pic)
|
||||
{
|
||||
struct soundhw *c;
|
||||
int audio_enabled = 0;
|
||||
|
||||
for (c = soundhw; !audio_enabled && c->name; ++c) {
|
||||
audio_enabled = c->enabled;
|
||||
}
|
||||
|
||||
if (audio_enabled) {
|
||||
for (c = soundhw; c->name; ++c) {
|
||||
if (c->enabled) {
|
||||
if (c->isa) {
|
||||
c->init.init_isa(pic);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#define MAGNUM_BIOS_SIZE_MAX 0x7e000
|
||||
#define MAGNUM_BIOS_SIZE (BIOS_SIZE < MAGNUM_BIOS_SIZE_MAX ? BIOS_SIZE : MAGNUM_BIOS_SIZE_MAX)
|
||||
|
||||
|
@ -284,7 +264,7 @@ void mips_jazz_init (ram_addr_t ram_size,
|
|||
|
||||
/* Sound card */
|
||||
/* FIXME: missing Jazz sound at 0x8000c000, rc4030[2] */
|
||||
audio_init(i8259);
|
||||
audio_init(i8259, NULL);
|
||||
|
||||
/* NVRAM: Unprotected at 0x9000, Protected at 0xa000, Read only at 0xb000 */
|
||||
ds1225y_init(0x80009000, "nvram");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue