From ec1d7b8df78892eb6030b3d6f639c57790cccf6c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 24 Sep 2018 13:37:10 +0200 Subject: [PATCH] alsa: deal with less frequent hw pointer updates --- spa/plugins/alsa/alsa-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-utils.c b/spa/plugins/alsa/alsa-utils.c index 67dbf98dc..e886a7d93 100644 --- a/spa/plugins/alsa/alsa-utils.c +++ b/spa/plugins/alsa/alsa-utils.c @@ -634,7 +634,7 @@ static void alsa_on_playback_timeout_event(struct spa_source *source) spa_log_trace(state->log, "timeout %ld %d %ld %ld %ld", state->filled, state->threshold, state->sample_count, state->now.tv_sec, state->now.tv_nsec); - if (state->filled > state->threshold) { + if (state->filled > state->threshold * 2) { if (snd_pcm_state(hndl) == SND_PCM_STATE_SUSPENDED) { spa_log_error(state->log, "suspended: try resume"); if ((res = alsa_try_resume(state)) < 0)