Skip to content

Commit e8a3758

Browse files
Brian Zhukongsuozt
authored andcommitted
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 <[email protected]>
1 parent 6862fb2 commit e8a3758

File tree

1 file changed

+4
-2
lines changed
  • drivers/amlogic/media/video_sink

1 file changed

+4
-2
lines changed

drivers/amlogic/media/video_sink/vpp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ static int vpp_set_filters_internal(
909909
reverse = input->reverse;
910910
#endif
911911

912-
if (vf->type & VIDTYPE_MVC) {
912+
if ((vf->type & VIDTYPE_MVC) ||
913+
(input->proc_3d_type & MODE_3D_ENABLE)) {
913914
video_source_crop_left = 0;
914915
video_source_crop_right = 0;
915916
video_source_crop_top = 0;
@@ -2514,7 +2515,8 @@ static int vpp_set_filters_no_scaler_internal(
25142515
reverse = input->reverse;
25152516
#endif
25162517

2517-
if (vf->type & VIDTYPE_MVC) {
2518+
if ((vf->type & VIDTYPE_MVC) ||
2519+
(input->proc_3d_type & MODE_3D_ENABLE)) {
25182520
video_source_crop_left = 0;
25192521
video_source_crop_right = 0;
25202522
video_source_crop_top = 0;

0 commit comments

Comments
 (0)