yeahuh / rpms / qemu-kvm

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