thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
0a122b
From 269456948b6a1aa7d7c63cf0d4a39bd623eb6f0c Mon Sep 17 00:00:00 2001
0a122b
From: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
Date: Wed, 15 Jan 2014 09:14:33 -0500
0a122b
Subject: [PATCH 06/14] audio: adjust pulse to 100Hz wakeup rate
0a122b
0a122b
Message-id: <83102d05b6ab8140cc893407509ca55fd6dd4d72.1389776721.git.mrezanin@redhat.com>
0a122b
Patchwork-id: 56722
0a122b
O-Subject: [RHEL7 qemu-kvm PATCH 3/3] audio: adjust pulse to 100Hz wakeup rate
0a122b
Bugzilla: 1017636
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
0a122b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
0a122b
0a122b
From: Gerd Hoffmann <kraxel@redhat.com>
0a122b
0a122b
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
0a122b
(cherry picked from commit 0e8ae611bda0dfb038da2d865801d8adbd692bad)
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 audio/paaudio.c | 8 ++++----
0a122b
 1 file changed, 4 insertions(+), 4 deletions(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 audio/paaudio.c | 8 ++++----
0a122b
 1 file changed, 4 insertions(+), 4 deletions(-)
0a122b
0a122b
diff --git a/audio/paaudio.c b/audio/paaudio.c
0a122b
index 8b69778..90ff245 100644
0a122b
--- a/audio/paaudio.c
0a122b
+++ b/audio/paaudio.c
0a122b
@@ -547,11 +547,11 @@ static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as)
0a122b
     ss.rate = as->freq;
0a122b
 
0a122b
     /*
0a122b
-     * qemu audio tick runs at 250 Hz (by default), so processing
0a122b
-     * data chunks worth 4 ms of sound should be a good fit.
0a122b
+     * qemu audio tick runs at 100 Hz (by default), so processing
0a122b
+     * data chunks worth 10 ms of sound should be a good fit.
0a122b
      */
0a122b
-    ba.tlength = pa_usec_to_bytes (4 * 1000, &ss);
0a122b
-    ba.minreq = pa_usec_to_bytes (2 * 1000, &ss);
0a122b
+    ba.tlength = pa_usec_to_bytes (10 * 1000, &ss);
0a122b
+    ba.minreq = pa_usec_to_bytes (5 * 1000, &ss);
0a122b
     ba.maxlength = -1;
0a122b
     ba.prebuf = -1;
0a122b
 
0a122b
-- 
0a122b
1.8.3.1
0a122b