From patchwork Thu Mar 14 13:38:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Schrodt X-Patchwork-Id: 10852867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20C4717E6 for ; Thu, 14 Mar 2019 13:49:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A40C29DB4 for ; Thu, 14 Mar 2019 13:49:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2BD529E7F; Thu, 14 Mar 2019 13:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5E6B229DB4 for ; Thu, 14 Mar 2019 13:49:05 +0000 (UTC) Received: from localhost ([127.0.0.1]:37409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4QjI-0002ZT-HJ for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Mar 2019 09:49:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4Qha-0000it-PC for qemu-devel@nongnu.org; Thu, 14 Mar 2019 09:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4QZi-0000Xs-Is for qemu-devel@nongnu.org; Thu, 14 Mar 2019 09:39:12 -0400 Received: from zapp.schrodt.org ([46.4.119.246]:37896) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4QZg-0000Tb-CS for qemu-devel@nongnu.org; Thu, 14 Mar 2019 09:39:08 -0400 Received: from schapa.schrodt.org ([46.237.225.84]:37386 helo=zoidberg.machine.schrodt.org) by zapp.schrodt.org with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1h4QZW-0003H3-SS; Thu, 14 Mar 2019 14:38:58 +0100 Received: from spheenik by zoidberg.machine.schrodt.org with local (Exim 4.92) (envelope-from ) id 1h4QZW-0009uN-Kh; Thu, 14 Mar 2019 14:38:58 +0100 From: Martin Schrodt To: qemu-devel@nongnu.org Date: Thu, 14 Mar 2019 14:38:55 +0100 Message-Id: <20190314133858.37970-1-martin@schrodt.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.4.119.246 Subject: [Qemu-devel] [PATCH 0/3] Fixes for PulseAudio driver X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kraxel@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series scratches small itches with the pa audio driver. First patch is probably a bug introduced in last weeks -audiodev merge. The configured buffer length was ignored by the code, and a constant value was used instead. Second patch makes the latency configurable: The 10ms constant value did not work on my machine (caused both guest and host audio to malfunction), so I made it configurable, and set a default of 15ms, which is fine here. Third patch fixes a long time problem with microphone input having half a minute (not kidding) delay. Is there a chance this still gets included in 4.0? If that's the case I'd make a post on Reddit's VFIO section to find some testers, to see if the defaults work. Martin Schrodt (3): fix: buffer_length is ignored make latency configurable fix input lag audio/paaudio.c | 45 +++++++++++++++++++++++++++++++-------------- qapi/audio.json | 5 ++++- 2 files changed, 35 insertions(+), 15 deletions(-)