summaryrefslogtreecommitdiffstats
path: root/hw/audio/adlib.c
diff options
context:
space:
mode:
authorAnthony Liguori2013-12-11 01:11:21 +0100
committerAnthony Liguori2013-12-11 01:11:21 +0100
commitb5527dad7dba7d85520aaec787fb6fb14be1c366 (patch)
tree775db4f5dca5f1ff0adb731ea08f58491f840d2d /hw/audio/adlib.c
parentMerge remote-tracking branch 'alon/libcacard_ccid.4' into staging (diff)
parentintel-hda: fix position buffer (diff)
downloadqemu-b5527dad7dba7d85520aaec787fb6fb14be1c366.tar.gz
qemu-b5527dad7dba7d85520aaec787fb6fb14be1c366.tar.xz
qemu-b5527dad7dba7d85520aaec787fb6fb14be1c366.zip
Merge remote-tracking branch 'kraxel/tags/pull-audio-1' into staging
Change audio wakeup rate from 250 Hz to 100 Hz. Emulation bugfixes for intel-hda and adlib. # gpg: Signature made Mon 09 Dec 2013 06:04:16 AM PST using RSA key ID D3E87138 # gpg: Can't check signature: public key not found # By Gerd Hoffmann (2) and others # Via Gerd Hoffmann * kraxel/tags/pull-audio-1: intel-hda: fix position buffer adlib: fix patching of port I/O addresses audio: adjust pulse to 100Hz wakeup rate audio: Lower default wakeup rate to 100 times / second Message-id: 1386597974-26506-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'hw/audio/adlib.c')
-rw-r--r--hw/audio/adlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c
index bd8e9d9815..e88d2dd845 100644
--- a/hw/audio/adlib.c
+++ b/hw/audio/adlib.c
@@ -347,8 +347,8 @@ static void adlib_realizefn (DeviceState *dev, Error **errp)
s->samples = AUD_get_buffer_size_out (s->voice) >> SHIFT;
s->mixbuf = g_malloc0 (s->samples << SHIFT);
- adlib_portio_list[1].offset = s->port;
- adlib_portio_list[2].offset = s->port + 8;
+ adlib_portio_list[0].offset = s->port;
+ adlib_portio_list[1].offset = s->port + 8;
portio_list_init (port_list, OBJECT(s), adlib_portio_list, s, "adlib");
portio_list_add (port_list, isa_address_space_io(&s->parent_obj), 0);
}