From e8a375885506d5626c7f7ac5348f15f3299848a0 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Tue, 2 Apr 2019 14:16:05 +0800 Subject: [PATCH] vpp: 3d: disable crop when 3d playback or hdmi in [1/1] PD#TV-3962 Problem: 3D mode does not support crop function Solution: Remove crop when 3D display. Verify: Verified on x301 Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16 Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/vpp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index ad8151fe811713..21e3d600ab33eb 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -909,7 +909,8 @@ static int vpp_set_filters_internal( reverse = input->reverse; #endif - if (vf->type & VIDTYPE_MVC) { + if ((vf->type & VIDTYPE_MVC) || + (input->proc_3d_type & MODE_3D_ENABLE)) { video_source_crop_left = 0; video_source_crop_right = 0; video_source_crop_top = 0; @@ -2514,7 +2515,8 @@ static int vpp_set_filters_no_scaler_internal( reverse = input->reverse; #endif - if (vf->type & VIDTYPE_MVC) { + if ((vf->type & VIDTYPE_MVC) || + (input->proc_3d_type & MODE_3D_ENABLE)) { video_source_crop_left = 0; video_source_crop_right = 0; video_source_crop_top = 0;