MMFMWK-8552-2: correct the error no when reqbufs fail
authorming_qian <ming.qian@nxp.com>
Wed, 11 Sep 2019 08:59:58 +0000 (16:59 +0800)
committerming_qian <ming.qian@nxp.com>
Wed, 11 Sep 2019 09:05:45 +0000 (17:05 +0800)
if stream status is on,
reqbufs will fail,
return -EBUSY instead of -EINVAL

Signed-off-by: ming_qian <ming.qian@nxp.com>
(cherry picked from commit 65cfc81f73639c633d9e9b7c23c9c58443fa661f)

drivers/mxc/vpu_malone/vpu_b0.c

index a009bd9..a0ed963 100644 (file)
@@ -1401,7 +1401,7 @@ static int v4l2_ioctl_reqbufs(struct file *file,
                vpu_err("%s reqbufs (%d) during streaming\n",
                        q_data->type ? "CAPTURE" : "OUTPUT",
                        reqbuf->count);
-               return -EINVAL;
+               return -EBUSY;
        }
 
        if (reqbuf->count > 0 && !q_data->sizeimage[0]) {