audio/hda: enable new timer code by default.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Jun 2018 11:12:00 +0000 (13:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 25 Jun 2018 11:57:57 +0000 (13:57 +0200)
Also add a compat property to disable it for old machine types,
needed for live migration compatibility.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180622111200.30561-6-kraxel@redhat.com

hw/audio/hda-codec.c
include/hw/compat.h

index ac67b9aada8a13922a92dba499eab71fc16fd839..fc4945086b4e9342391afa44a271f5e5c88f844d 100644 (file)
@@ -839,7 +839,7 @@ static const VMStateDescription vmstate_hda_audio = {
 static Property hda_audio_properties[] = {
     DEFINE_PROP_UINT32("debug", HDAAudioState, debug,   0),
     DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer,  true),
-    DEFINE_PROP_BOOL("use-timer", HDAAudioState, use_timer, false),
+    DEFINE_PROP_BOOL("use-timer", HDAAudioState, use_timer,  true),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index 563908b874c93483a124bcff71dba89089788c24..44d5964060cf2cc470046bb9474f8b81dec42653 100644 (file)
@@ -6,6 +6,10 @@
         .driver   = "migration",\
         .property = "decompress-error-check",\
         .value    = "off",\
+    },{\
+        .driver   = "hda-audio",\
+        .property = "use-timer",\
+        .value    = "false",\
     },
 
 #define HW_COMPAT_2_11 \