Revision 22d83b14 hw/sb16.c
b/hw/sb16.c | ||
---|---|---|
1398 | 1398 |
return 0; |
1399 | 1399 |
} |
1400 | 1400 |
|
1401 |
int SB16_init (AudioState *audio, qemu_irq *pic)
|
|
1401 |
int SB16_init (qemu_irq *pic) |
|
1402 | 1402 |
{ |
1403 |
AudioState *audio = AUD_init(); |
|
1403 | 1404 |
SB16State *s; |
1404 | 1405 |
int i; |
1405 | 1406 |
static const uint8_t dsp_write_ports[] = {0x6, 0xc}; |
1406 | 1407 |
static const uint8_t dsp_read_ports[] = {0x6, 0xa, 0xc, 0xd, 0xe, 0xf}; |
1407 | 1408 |
|
1408 |
if (!audio) { |
|
1409 |
dolog ("No audio state\n"); |
|
1410 |
return -1; |
|
1411 |
} |
|
1412 |
|
|
1413 | 1409 |
s = qemu_mallocz (sizeof (*s)); |
1414 | 1410 |
|
1415 | 1411 |
s->cmd = -1; |
Also available in: Unified diff