hdmirx: add hdcp22-not-support handle[2/2]
authoryicheng shen <yicheng.shen@amlogic.com>
Fri, 7 Sep 2018 06:21:32 +0000 (14:21 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 18 Sep 2018 10:51:59 +0000 (03:51 -0700)
PD#173334: hdmirx: add hdcp22-not-support handle

if systemcontrol cant access the aic tool,inform driver
that hdcp2.2 is not support via ioctl

Change-Id: I2d9541a497842e027e898f5fa3a23c51583c8181
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c
drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h

index 9b745c8..25ed702 100644 (file)
@@ -1046,6 +1046,17 @@ static long hdmirx_ioctl(struct file *file, unsigned int cmd,
                }
                rx_pr("hdcp1.4 key mode-%d\n", hdcp14_key_mode);
                break;
+       case HDMI_IOC_HDCP22_NOT_SUPPORT:
+               /* if sysctl can not find the aic tools,
+                * it will inform driver that 2.2 not support via ioctl
+                */
+               hdcp22_on = 0;
+               if (rx.open_fg)
+                       rx_send_hpd_pulse();
+               else
+                       hdmirx_wr_dwc(DWC_HDCP22_CONTROL, 2);
+               rx_pr("hdcp2.2 not support\n");
+               break;
        default:
                ret = -ENOIOCTLCMD;
                break;
index b248ca2..54a308e 100644 (file)
@@ -34,7 +34,7 @@
 #include "hdmi_rx_edid.h"
 
 
-#define RX_VER0 "ver.2018-09-07"
+#define RX_VER0 "ver.2018-09-11"
 /*
  *
  *
@@ -131,6 +131,7 @@ struct hdmirx_dev_s {
        struct pd_infoframe_s)
 #define HDMI_IOC_HDCP14_KEY_MODE _IOR(HDMI_IOC_MAGIC, 0x0d,\
        enum hdcp14_key_mode_e)
+#define HDMI_IOC_HDCP22_NOT_SUPPORT _IO(HDMI_IOC_MAGIC, 0x0e)
 
 #define IOC_SPD_INFO  _BIT(0)
 #define IOC_AUD_INFO  _BIT(1)