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:
Wim Taymans 2021-02-08 11:48:32 +01:00
parent 210950dc0a
commit 94ec577dcd

View file

@ -761,6 +761,7 @@ static int alsa_recover(struct state *state, int err)
case SND_PCM_STATE_SUSPENDED:
spa_log_info(state->log, NAME" %p: recover from state %s",
state, snd_pcm_state_name(st));
err = -ESTRPIPE;
break;
default:
spa_log_error(state->log, NAME" %p: recover from error state %s",