diff mbox

audio: reset timer when enabling capture mode

Message ID 1291851275-17499-1-git-send-email-michael@walle.cc
State New
Headers show

Commit Message

Michael Walle Dec. 8, 2010, 11:34 p.m. UTC
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 <michael@walle.cc>
---
 audio/audio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

malc Dec. 9, 2010, 6:50 p.m. UTC | #1
On Thu, 9 Dec 2010, Michael Walle wrote:

> 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.

It was done in 39deb1e496de81957167daebf5cf5d1fbd5e47c2
diff mbox

Patch

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;