diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1637,6 +1637,10 @@ static int pcm_generic_transfer(struct pcm *pcm, void *data, if (frames > INT_MAX) return -EINVAL; + if (pcm_state(pcm) == PCM_STATE_SETUP && pcm_prepare(pcm) != 0) { + return -1; + } + again: if (pcm->flags & PCM_MMAP) |