diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-08-21 01:34:29 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-08-21 01:34:29 +0200 |
commit | cbf5675eef5d4194532d3a57c8b5d4c0af831ed7 (patch) | |
tree | f688faf1f4d36e6d6ae95fa834e65d3fa6e40761 | |
parent | bd5389278c96f585afcac4058420e4f3ac201d2a (diff) | |
download | alsa-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.c | 2 |
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) |