osd_drm: fix osd drm vsync irq error
authorpengcheng chen <pengcheng.chen@amlogic.com>
Mon, 9 Apr 2018 07:32:49 +0000 (15:32 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 9 Apr 2018 13:27:20 +0000 (05:27 -0800)
PD#160546: osd_drm: fix osd drm vsync irq error

Change-Id: Ieebc611553142ccc41052d1395f323f693b9330a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_drm.c

index 69289e4..fc6f7cd 100644 (file)
@@ -731,7 +731,7 @@ EXPORT_SYMBOL(osd_drm_debugfs_exit);
 void osd_drm_vsync_isr_handler(void)
 {
 
-       if (osd_hw.hw_rdma_en) {
+       if (!osd_hw.hw_rdma_en) {
                osd_update_scan_mode();
                /* go through update list */
                walk_through_update_list();
@@ -740,7 +740,7 @@ void osd_drm_vsync_isr_handler(void)
                osd_update_vsync_hit();
                osd_hw_reset();
        } else {
-               if (get_cpu_type() != MESON_CPU_MAJOR_ID_AXG)
+               if (get_cpu_type() != __MESON_CPU_MAJOR_ID_AXG)
                        osd_rdma_interrupt_done_clear();
                else {
                        osd_update_scan_mode();