mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
pcm/ioplug: fix error code in start callback
When snd_pcm_start() is called in the invalid state, it should return -EBADFD. But ioplug plugin returns -EAGAIN. Let's fix it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
bd5389278c
commit
cbf5675eef
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ static int snd_pcm_ioplug_start(snd_pcm_t *pcm)
|
|||
int err;
|
||||
|
||||
if (io->data->state != SND_PCM_STATE_PREPARED)
|
||||
return -EBUSY;
|
||||
return -EBADFD;
|
||||
|
||||
err = io->data->callback->start(io->data);
|
||||
if (err < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue