di: The last frame of the video flash garbage [1/1]
authorYong Qin <yong.qin@amlogic.com>
Fri, 22 Mar 2019 06:36:17 +0000 (14:36 +0800)
committerYong Qin <yong.qin@amlogic.com>
Fri, 22 Mar 2019 10:32:29 +0000 (18:32 +0800)
PD#SWPL-6070

Problem:
flash garbages when unreg process.

Solution:
can't speed down the clkb rate, there is a mirror mode

Verify:
tl1

Change-Id: I5fcc29a1cda196992a457f40fee31992f4bc1528
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 064c494..048ea27 100644 (file)
@@ -129,7 +129,7 @@ static di_dev_t *de_devp;
 static dev_t di_devno;
 static struct class *di_clsp;
 
-static const char version_s[] = "2019-03-20a";
+static const char version_s[] = "2019-03-22va";
 
 static int bypass_state = 1;
 static int bypass_all;
@@ -6543,11 +6543,14 @@ static int di_task_handle(void *data)
                                di_pre_stru.disable_req_flag) &&
                                (di_pre_stru.pre_de_busy == 0)) {
                                di_unreg_process();
+                               #if 0
+                               /* if mirror mode, can't speed down the clk*/
                                /* set min rate for power saving */
                                if (de_devp->vpu_clkb) {
                                        clk_set_rate(de_devp->vpu_clkb,
                                                de_devp->clkb_min_rate);
                                }
+                               #endif
                        }
                        if (di_pre_stru.reg_req_flag_irq ||
                                di_pre_stru.reg_req_flag) {