[media] s5p-mfc-dec: Don't use encoder stop command
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 15 Dec 2014 21:10:58 +0000 (18:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
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 <nicolas.dufresne@collabora.com>
Acked-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
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;