From: Nicolas Dufresne Date: Mon, 15 Dec 2014 21:10:58 +0000 (-0300) Subject: [media] s5p-mfc-dec: Don't use encoder stop command X-Git-Tag: firefly_0821_release~176^2~795^2~1555 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68e77d2e6e38a1a3b95fdc358bec45e81d965ebf;p=firefly-linux-kernel-4.4.55.git [media] s5p-mfc-dec: Don't use encoder stop command The decoder should handle V4L2_DEC_CMD_STOP to trigger drain, but it currently expecting V4L2_ENC_CMD_STOP. Signed-off-by: Nicolas Dufresne Acked-by: Kamil Debski Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index 9b14827ef4b9..da80c038e86b 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -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;