hdmirx: add DRM RCV detection. [1/1]
authorLei Yang <lei.yang@amlogic.com>
Wed, 19 Dec 2018 07:17:17 +0000 (15:17 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 20 Dec 2018 06:42:33 +0000 (22:42 -0800)
PD#SWPL-3117

Problem:
Cannot get the HDR packets/

Solution:
add HDR RCV detection, Low priority than EMP.

Verify:
txlx tl1

Change-Id: I364fc942840b6eef465df16b89fd0a9fd0ccb3ff
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h
drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_wrapper.c

index b99c115..b37101a 100644 (file)
@@ -34,7 +34,7 @@
 #include "hdmi_rx_edid.h"
 
 
-#define RX_VER0 "ver.2018-12-13"
+#define RX_VER0 "ver.2018/12/19"
 /*
  *
  *
index 5f59905..e0576ab 100644 (file)
@@ -410,6 +410,12 @@ static int hdmi_rx_ctrl_irq_handler(void)
                                        rx_pr("[irq] EMP_RCV %#x\n",
                                        intr_pedc);
                                emp_handle_flag = true;
+                       } else if (rx_get_bits(intr_pedc,
+                               DRM_RCV_EN_TXLX) != 0) {
+                               if (log_level & 0x400)
+                                       rx_pr("[irq] DRM_RCV_EN %#x\n",
+                                       intr_pedc);
+                               drm_handle_flag = true;
                        }
                } else if (rx.chip_id == CHIP_ID_TXLX) {
                        if (rx_get_bits(intr_pedc,