From: Takashi Iwai Date: Thu, 31 Mar 2005 15:23:20 +0000 (+0000) Subject: Stop timer at XRUN X-Git-Tag: v1.0.9rc3~26 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a0a440dcf4f7f06b5415424971bed4146d970554;p=alsa-lib.git Stop timer at XRUN Stop PCM timer at XRUN. --- diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index 290459dd..2e1caf05 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -280,6 +280,7 @@ static int _snd_pcm_dmix_sync_ptr(snd_pcm_t *pcm, int do_slave_sync) return 0; if ((avail = snd_pcm_mmap_playback_avail(pcm)) >= pcm->stop_threshold) { struct timeval tv; + snd_timer_stop(dmix->timer); gettimeofday(&tv, 0); dmix->trigger_tstamp.tv_sec = tv.tv_sec; dmix->trigger_tstamp.tv_nsec = tv.tv_usec * 1000L;