mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05: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;
|
int err;
|
||||||
|
|
||||||
if (io->data->state != SND_PCM_STATE_PREPARED)
|
if (io->data->state != SND_PCM_STATE_PREPARED)
|
||||||
return -EBUSY;
|
return -EBADFD;
|
||||||
|
|
||||||
err = io->data->callback->start(io->data);
|
err = io->data->callback->start(io->data);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue