[media] s5p-mfc-dec: Don't use encoder stop command
authorNicolas Dufresne <[email protected]>
Mon, 15 Dec 2014 21:10:58 +0000 (18:10 -0300)
committerMauro Carvalho Chehab <[email protected]>
Mon, 2 Feb 2015 11:57:36 +0000 (09:57 -0200)
The decoder should handle V4L2_DEC_CMD_STOP to trigger drain,
but it currently expecting V4L2_ENC_CMD_STOP.

Signed-off-by: Nicolas Dufresne <[email protected]>
Acked-by: Kamil Debski <[email protected]>
Signed-off-by: Kamil Debski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c

index 9b14827ef4b99eeff6b64e3171c7d67b948c0ba6..da80c038e86be052f82a9d1076aac94567e2afcc 100644 (file)
@@ -813,7 +813,7 @@ static int vidioc_decoder_cmd(struct file *file, void *priv,
        unsigned long flags;
 
        switch (cmd->cmd) {
-       case V4L2_ENC_CMD_STOP:
+       case V4L2_DEC_CMD_STOP:
                if (cmd->flags != 0)
                        return -EINVAL;