dolby: Graphics blending tests fail when 4k output [4/4]
authoryao liu <yao.liu@amlogic.com>
Wed, 26 Jun 2019 13:30:26 +0000 (21:30 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 1 Jul 2019 05:43:39 +0000 (22:43 -0700)
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 <yao.liu@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index f60a7d6..3e26a1b 100644 (file)
@@ -720,6 +720,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,
@@ -729,7 +738,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