audio: adjust pulse to 100Hz wakeup rate
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Dec 2013 09:49:13 +0000 (10:49 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Dec 2013 08:19:26 +0000 (09:19 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/paaudio.c

index 8b69778ad96dedf6b66dc292bf3893c3d06d1ca2..90ff24500b1016b652dc2cd4074821f49d80c24b 100644 (file)
@@ -547,11 +547,11 @@ static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as)
     ss.rate = as->freq;
 
     /*
-     * qemu audio tick runs at 250 Hz (by default), so processing
-     * data chunks worth 4 ms of sound should be a good fit.
+     * qemu audio tick runs at 100 Hz (by default), so processing
+     * data chunks worth 10 ms of sound should be a good fit.
      */
-    ba.tlength = pa_usec_to_bytes (4 * 1000, &ss);
-    ba.minreq = pa_usec_to_bytes (2 * 1000, &ss);
+    ba.tlength = pa_usec_to_bytes (10 * 1000, &ss);
+    ba.minreq = pa_usec_to_bytes (5 * 1000, &ss);
     ba.maxlength = -1;
     ba.prebuf = -1;