mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: dmix: Prepare slave when it's in SETUP, too
SETUP is an unusual state, but it's still possible. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6d1d620ead
commit
8feb96ed9b
1 changed files with 1 additions and 0 deletions
|
|
@ -819,6 +819,7 @@ int snd_pcm_direct_prepare(snd_pcm_t *pcm)
|
|||
int err;
|
||||
|
||||
switch (snd_pcm_state(dmix->spcm)) {
|
||||
case SND_PCM_STATE_SETUP:
|
||||
case SND_PCM_STATE_XRUN:
|
||||
case SND_PCM_STATE_SUSPENDED:
|
||||
case SND_PCM_STATE_DISCONNECTED:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue