aboutsummaryrefslogtreecommitdiff
path: root/hw/tsc210x.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-05-14 03:11:35 +0400
committermalc <av1474@comtv.ru>2009-05-14 03:20:43 +0400
commit1a7dafce1dfc3dc2052d0c5d8397e72121291c57 (patch)
tree6b83da7787156494d16c58e2d5a41396a01a964f /hw/tsc210x.c
parentb36aa85c7bef893bdad1f0646a2f6b3018eff0fb (diff)
Remove any pretense that there can be more than one AudioState
Diffstat (limited to 'hw/tsc210x.c')
-rw-r--r--hw/tsc210x.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/tsc210x.c b/hw/tsc210x.c
index 316156db8a..16874e060d 100644
--- a/hw/tsc210x.c
+++ b/hw/tsc210x.c
@@ -82,7 +82,6 @@ typedef struct {
SWVoiceOut *dac_voice[1];
int i2s_rx_rate;
int i2s_tx_rate;
- AudioState *audio;
int tr[8];
@@ -1117,7 +1116,6 @@ uWireSlave *tsc2102_init(qemu_irq pint)
s->pint = pint;
s->model = 0x2102;
s->name = "tsc2102";
- s->audio = AUD_init();;
s->tr[0] = 0;
s->tr[1] = 1;
@@ -1143,7 +1141,7 @@ uWireSlave *tsc2102_init(qemu_irq pint)
qemu_add_mouse_event_handler(tsc210x_touchscreen_event, s, 1,
"QEMU TSC2102-driven Touchscreen");
- AUD_register_card(s->audio, s->name, &s->card);
+ AUD_register_card(s->name, &s->card);
qemu_register_reset((void *) tsc210x_reset, s);
register_savevm(s->name, -1, 0,
@@ -1169,7 +1167,6 @@ uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav)
s->davint = dav;
s->model = 0x2301;
s->name = "tsc2301";
- s->audio = AUD_init();
s->tr[0] = 0;
s->tr[1] = 1;
@@ -1195,7 +1192,7 @@ uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav)
qemu_add_mouse_event_handler(tsc210x_touchscreen_event, s, 1,
"QEMU TSC2301-driven Touchscreen");
- AUD_register_card(s->audio, s->name, &s->card);
+ AUD_register_card(s->name, &s->card);
qemu_register_reset((void *) tsc210x_reset, s);
register_savevm(s->name, -1, 0, tsc210x_save, tsc210x_load, s);