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)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:29:27 +0000 (15:29 +0800)
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 d92dd21..8e6fa38 100644 (file)
@@ -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