summaryrefslogtreecommitdiffstats
path: root/hw/audio/pcspk.c
diff options
context:
space:
mode:
authorGerd Hoffmann2020-07-02 15:25:25 +0200
committerGerd Hoffmann2020-07-06 17:01:11 +0200
commit2336172d9b396b4fa4483712f5560a563c25352f (patch)
tree6cf6abe7fc96439090163e5b22b4dd245fef7543 /hw/audio/pcspk.c
parentpcspk: update docs/system/target-i386-desc.rst.inc (diff)
downloadqemu-2336172d9b396b4fa4483712f5560a563c25352f.tar.gz
qemu-2336172d9b396b4fa4483712f5560a563c25352f.tar.xz
qemu-2336172d9b396b4fa4483712f5560a563c25352f.zip
audio: set default value for pcspk.iobase property
Allows dropping the explicit qdev_prop_set_uint32 call in pcspk_init. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200702132525.6849-21-kraxel@redhat.com
Diffstat (limited to 'hw/audio/pcspk.c')
-rw-r--r--hw/audio/pcspk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c
index 4c7e339ac2..ea539e7605 100644
--- a/hw/audio/pcspk.c
+++ b/hw/audio/pcspk.c
@@ -219,7 +219,7 @@ static const VMStateDescription vmstate_spk = {
static Property pcspk_properties[] = {
DEFINE_AUDIO_PROPERTIES(PCSpkState, card),
- DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, -1),
+ DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, 0x61),
DEFINE_PROP_BOOL("migrate", PCSpkState, migrate, true),
DEFINE_PROP_END_OF_LIST(),
};