mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
alsa: make sure _recover() works from SUSPENDED
Pass -ESTRPIPE to _recover() when our state is SUSPENDED so that it always attempts to resume, regardless of the error code.
This commit is contained in:
parent
210950dc0a
commit
94ec577dcd
1 changed files with 1 additions and 0 deletions
|
|
@ -761,6 +761,7 @@ static int alsa_recover(struct state *state, int err)
|
||||||
case SND_PCM_STATE_SUSPENDED:
|
case SND_PCM_STATE_SUSPENDED:
|
||||||
spa_log_info(state->log, NAME" %p: recover from state %s",
|
spa_log_info(state->log, NAME" %p: recover from state %s",
|
||||||
state, snd_pcm_state_name(st));
|
state, snd_pcm_state_name(st));
|
||||||
|
err = -ESTRPIPE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
spa_log_error(state->log, NAME" %p: recover from error state %s",
|
spa_log_error(state->log, NAME" %p: recover from error state %s",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue