From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQTdQ-0000fL-8A for qemu-devel@nongnu.org; Wed, 08 Dec 2010 18:41:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQTdP-00008U-54 for qemu-devel@nongnu.org; Wed, 08 Dec 2010 18:41:20 -0500 Received: from mail.serverraum.org ([78.47.150.89]:58774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQTdO-000083-Of for qemu-devel@nongnu.org; Wed, 08 Dec 2010 18:41:18 -0500 From: Michael Walle Date: Thu, 9 Dec 2010 00:34:35 +0100 Message-Id: <1291851275-17499-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH] audio: reset timer when enabling capture mode List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Walle The audio timer also has to be reset when a capture device is enabled. This will ensure the timer to be started even if just capture devices are active. Signed-off-by: Michael Walle --- audio/audio.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index ade342e..1edbb29 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1240,6 +1240,7 @@ void AUD_set_active_in (SWVoiceIn *sw, int on) hw->enabled = 1; if (s->vm_running) { hw->pcm_ops->ctl_in (hw, VOICE_ENABLE, conf.try_poll_in); + audio_reset_timer (); } } sw->total_hw_samples_acquired = hw->total_samples_captured; -- 1.7.2.3