From cbf5675eef5d4194532d3a57c8b5d4c0af831ed7 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 21 Aug 2009 01:34:29 +0200 Subject: [PATCH] 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 --- src/pcm/pcm_ioplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3