From febdc420bb344bb8c9f436fe03f68d32447360af Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Sat, 23 Nov 2019 15:16:03 +0000 Subject: v4l: fixed build issue on the android P. [1/1] PD#SWPL-5313 Problem: the symbol undefined cause build fail. Solution: fixed build issue on the android P Verify: u212 Change-Id: I7a576efc202b851bf88e68769f7627f7db501a82 Signed-off-by: Nanxin Qin --- diff --git a/drivers/frame_provider/decoder/utils/vdec.c b/drivers/frame_provider/decoder/utils/vdec.c index 3d3ecec..1a6f982 100644 --- a/drivers/frame_provider/decoder/utils/vdec.c +++ b/drivers/frame_provider/decoder/utils/vdec.c @@ -33,7 +33,9 @@ #include #include #include +#ifdef CONFIG_AMLOGIC_V4L_VIDEO3 #include +#endif #include /*for VDEC_DEBUG_SUPPORT*/ #include @@ -2217,9 +2219,13 @@ s32 vdec_init(struct vdec_s *vdec, int is_4k) "vdec-map-%d", vdec->id); } else if (p->frame_base_video_path == FRAME_BASE_PATH_DI_V4LVIDEO) { +#ifdef CONFIG_AMLOGIC_V4L_VIDEO3 r = v4lvideo_assign_map(&vdec->vf_receiver_name, &vdec->vf_receiver_inst); - if (r < 0) { +#else + r = -1; +#endif + if (r < 0) { pr_err("V4lVideo frame receiver allocation failed.\n"); mutex_lock(&vdec_mutex); inited_vcodec_num--; -- cgit