summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-08-21 01:34:29 +0200
committerTakashi Iwai <tiwai@suse.de>2009-08-21 01:34:29 +0200
commitcbf5675eef5d4194532d3a57c8b5d4c0af831ed7 (patch)
treef688faf1f4d36e6d6ae95fa834e65d3fa6e40761
parentbd5389278c96f585afcac4058420e4f3ac201d2a (diff)
downloadalsa-lib-cbf5675eef5d4194532d3a57c8b5d4c0af831ed7.tar.gz
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>
-rw-r--r--src/pcm/pcm_ioplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c
index c582f5af..2aa75727 100644
--- a/src/pcm/pcm_ioplug.c
+++ b/src/pcm/pcm_ioplug.c
@@ -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)