diff --git a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c index 9b745c8368bc..25ed70254fe3 100644 --- a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c +++ b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c @@ -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; diff --git a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h index b248ca265764..54a308ec5914 100644 --- a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h +++ b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h @@ -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)