summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-vcodec
diff options
context:
space:
mode:
authorTiffany Lin <tiffany.lin@mediatek.com>2016-09-09 12:48:06 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 12:09:36 -0200
commit86082512625cab8755970105098a4a8818e3f954 (patch)
treefc33231a3c610028252b718a3ae05829cb818d3f /drivers/media/platform/mtk-vcodec
parenta38b7ce98bffcf2dd0e1461e24f410f76bac4cb4 (diff)
downloadlinux-86082512625cab8755970105098a4a8818e3f954.tar.gz
[media] vcodec: mediatek: Add V4L2_PIX_FMT_MT21C support for v4l2 decoder
Add V4L2_PIX_FMT_MT21C support Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec')
-rw-r--r--drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
index 5823bccfac3e..05209193ff7e 100644
--- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
+++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
@@ -25,7 +25,7 @@
#include "mtk_vcodec_dec_pm.h"
#define OUT_FMT_IDX 0
-#define CAP_FMT_IDX 0
+#define CAP_FMT_IDX 3
#define MTK_VDEC_MIN_W 64U
#define MTK_VDEC_MIN_H 64U
@@ -48,6 +48,11 @@ static struct mtk_video_fmt mtk_video_formats[] = {
.type = MTK_FMT_DEC,
.num_planes = 1,
},
+ {
+ .fourcc = V4L2_PIX_FMT_MT21C,
+ .type = MTK_FMT_FRAME,
+ .num_planes = 2,
+ },
};
static const struct mtk_codec_framesizes mtk_vdec_framesizes[] = {