mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: deal with less frequent hw pointer updates
This commit is contained in:
parent
881ee6caea
commit
ec1d7b8df7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue