diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 987bba5f4e5a..479b4b48369e 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -8198,9 +8198,9 @@ SET_FILTER: if (cur_frame_par->sr0_position) vpp_misc_set |= PREBLD_SR0_VD1_SCALER; - else + else /* SR0_AFTER_DNLP */ vpp_misc_set &= - ~SR0_AFTER_DNLP; + ~PREBLD_SR0_VD1_SCALER; else vpp_misc_set |= PREBLD_SR0_VD1_SCALER; @@ -8211,9 +8211,9 @@ SET_FILTER: if (cur_frame_par->sr1_position) vpp_misc_set |= DNLP_SR1_CM; - else + else /* SR1_AFTER_POSTBLEN */ vpp_misc_set &= - ~SR1_AFTER_POSTBLEN; + ~DNLP_SR1_CM; else vpp_misc_set |= DNLP_SR1_CM; @@ -13261,9 +13261,8 @@ static int __init video_early_init(void) } else if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12B)) { WRITE_VCBUS_REG_BITS( SRSHARP0_SHARP_SYNC_CTRL, 1, 0, 1); - /* TODO: check if the bit8 is available */ - /* WRITE_VCBUS_REG_BITS( */ - /* SRSHARP0_SHARP_SYNC_CTRL, 1, 8, 1); */ + WRITE_VCBUS_REG_BITS( + SRSHARP0_SHARP_SYNC_CTRL, 1, 8, 1); } return 0; } diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index 28094877a50c..a53ace081676 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -2009,6 +2009,16 @@ static void vpp_set_super_scaler( next_frame_par->supsc1_vert_ratio ? 1 : 0; next_frame_par->supsc1_hori_ratio = 0; } + + /*double check core0 input width for core0_vert_ratio!!!*/ + if (next_frame_par->supsc0_vert_ratio && + (width_out >> next_frame_par->supsc0_hori_ratio > + sr->core0_v_enable_width_max)) { + next_frame_par->supsc0_vert_ratio = 0; + if (next_frame_par->supsc0_hori_ratio == 0) + next_frame_par->supsc0_enable = 0; + } + /*double check core1 input width for core1_vert_ratio!!!*/ if (next_frame_par->supsc1_vert_ratio && (width_out >> next_frame_par->supsc1_hori_ratio > @@ -2017,6 +2027,7 @@ static void vpp_set_super_scaler( if (next_frame_par->supsc1_hori_ratio == 0) next_frame_par->supsc1_enable = 0; } + /* option add patch */ if ((ver_sc_multiple_num <= super_scaler_v_ratio) && (src_height >= SUPER_CORE0_WIDTH_MAX / 2) &&