summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/mtk-vcodec/vdec_drv_if.c
diff options
context:
space:
mode:
authorTiffany Lin <tiffany.lin@mediatek.com>2016-09-02 09:19:56 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 12:09:29 -0200
commitd1fad85f5af329650d101069ae8f78e3043b8f2b (patch)
treef7c1ed4f34057e2a7128bf99d38af5cc16fbfb61 /drivers/media/platform/mtk-vcodec/vdec_drv_if.c
parenta7b131751cd364a85ec115cb0a1898db6663ee8e (diff)
[media] vcodec: mediatek: Add Mediatek VP8 Video Decoder Driver
Add vp8 decoder driver for MT8173 [mchehab@s-opensource.org: make checkpatch.pl happy] Signed-off-by: PC Chen <pc.chen@mediatek.com> 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/vdec_drv_if.c')
-rw-r--r--drivers/media/platform/mtk-vcodec/vdec_drv_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/mtk-vcodec/vdec_drv_if.c b/drivers/media/platform/mtk-vcodec/vdec_drv_if.c
index e03f126eb51f..25c7cb96b716 100644
--- a/drivers/media/platform/mtk-vcodec/vdec_drv_if.c
+++ b/drivers/media/platform/mtk-vcodec/vdec_drv_if.c
@@ -24,6 +24,7 @@
#include "mtk_vpu.h"
const struct vdec_common_if *get_h264_dec_comm_if(void);
+const struct vdec_common_if *get_vp8_dec_comm_if(void);
int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc)
{
@@ -34,6 +35,7 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc)
ctx->dec_if = get_h264_dec_comm_if();
break;
case V4L2_PIX_FMT_VP8:
+ ctx->dec_if = get_vp8_dec_comm_if();
break;
default:
return -EINVAL;