cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From c67b37a75c6b76da744853a24d029f8b5fde9177 Mon Sep 17 00:00:00 2001
0a122b
From: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
Date: Wed, 15 Jan 2014 09:14:32 -0500
0a122b
Subject: [PATCH 05/14] audio: Lower default wakeup rate to 100 times / second
0a122b
0a122b
Message-id: <f7a7da0d506fd9969e30a4a164dbfe5146bba766.1389776721.git.mrezanin@redhat.com>
0a122b
Patchwork-id: 56720
0a122b
O-Subject: [RHEL7 qemu-kvm PATCH 2/3] audio: Lower default wakeup rate to 100 times / second
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: Hans de Goede <hdegoede@redhat.com>
0a122b
0a122b
This is more then plenty to keep audio card fifos filles / emptied.
0a122b
0a122b
This drops host cpu-load for audio playback inside a linux vm from
0a122b
13% to 9%.
0a122b
0a122b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
0a122b
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
0a122b
(cherry picked from commit 40a814b0b1789b94c483190b3208729b5182e5bd)
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 audio/audio.c | 2 +-
0a122b
 1 file changed, 1 insertion(+), 1 deletion(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 audio/audio.c | 2 +-
0a122b
 1 file changed, 1 insertion(+), 1 deletion(-)
0a122b
0a122b
diff --git a/audio/audio.c b/audio/audio.c
0a122b
index ebf7d3f..33b3fb6 100644
0a122b
--- a/audio/audio.c
0a122b
+++ b/audio/audio.c
0a122b
@@ -95,7 +95,7 @@ static struct {
0a122b
         }
0a122b
     },
0a122b
 
0a122b
-    .period = { .hertz = 250 },
0a122b
+    .period = { .hertz = 100 },
0a122b
     .plive = 0,
0a122b
     .log_to_monitor = 0,
0a122b
     .try_poll_in = 1,
0a122b
-- 
0a122b
1.8.3.1
0a122b