From c00d67298678f58add18a43660b1dad7812ea68b Mon Sep 17 00:00:00 2001 From: yao liu Date: Wed, 26 Jun 2019 21:30:26 +0800 Subject: [PATCH] dolby: Graphics blending tests fail when 4k output [4/4] PD#SWPL-10128 Problem: Osd scaling algorithm has bad effect Solution: Add repeat mode echo 0 > /sys/module/fb/parameters/osd_auto_adjust_filter echo 9 > /sys/module/fb/parameters/osd_h_filter_mode echo 9 > /sys/module/fb/parameters/osd_v_filter_mode Verify: Verified on sm1 Change-Id: Ibcb3925c0c7674043e10a249c7ee7dbeb029ca93 Signed-off-by: yao liu --- drivers/amlogic/media/osd/osd_hw.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index d92dd21..8e6fa38 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -722,6 +722,15 @@ static unsigned int osd_filter_coefs_3point_bspline[] = { 0x10601000 }; +static unsigned int osd_filter_coefs_repeat[] = { /* repeat coef0 */ + 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, + 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, + 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, + 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, + 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000, + 0x00800000, 0x00800000, 0x00800000 +}; + static unsigned int *filter_table[] = { osd_filter_coefs_bicubic_sharp, osd_filter_coefs_bicubic, @@ -731,7 +740,8 @@ static unsigned int *filter_table[] = { osd_filter_coefs_3point_triangle, osd_filter_coefs_4point_triangle, vpp_filter_coefs_4point_bspline, - osd_filter_coefs_3point_bspline + osd_filter_coefs_3point_bspline, + osd_filter_coefs_repeat }; #ifdef NEW_PPS_PHASE -- 2.7.4