mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
Push AUD_init down to devices
Now we can safely call AUD_init multiple times we can push it down to individual audio devices, rather than having to pass it from the board init. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
0d9acba8fd
commit
22d83b140e
23 changed files with 46 additions and 102 deletions
|
@ -1398,18 +1398,14 @@ static int SB_load (QEMUFile *f, void *opaque, int version_id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int SB16_init (AudioState *audio, qemu_irq *pic)
|
||||
int SB16_init (qemu_irq *pic)
|
||||
{
|
||||
AudioState *audio = AUD_init();
|
||||
SB16State *s;
|
||||
int i;
|
||||
static const uint8_t dsp_write_ports[] = {0x6, 0xc};
|
||||
static const uint8_t dsp_read_ports[] = {0x6, 0xa, 0xc, 0xd, 0xe, 0xf};
|
||||
|
||||
if (!audio) {
|
||||
dolog ("No audio state\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
s = qemu_mallocz (sizeof (*s));
|
||||
|
||||
s->cmd = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue