[media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush
authorTiffany Lin <tiffany.lin@mediatek.com>
Fri, 2 Dec 2016 02:38:34 +0000 (00:38 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 09:49:24 +0000 (07:49 -0200)
commit4865fffa834884ffc49a551bb3c7ac8a76e8585d
treeca8a6b1351a2173816eb87de722917fd0c773c4d
parent974eadf1fc4f9bd0e9da686e7ba6c3e4e708fc45
[media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush

Also remove the code using size-0 OUTPUT buffer to flush.

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Wu-Cheng Li <wuchengli@chromium.org>
Reviewed-by: Kuang-che Wu <kcwu@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h