author | Zongdong Jiao <zongdong.jiao@amlogic.com> | 2020-04-23 11:18:39 (GMT) |
---|---|---|
committer | Shen Liu <shen.liu@amlogic.com> | 2020-05-26 07:58:07 (GMT) |
commit | c25154b93b00f8185c1041a23d57a0b69e0c15ca (patch) | |
tree | 8d01e7c4cb4e55090c1199401703524b79ebc7a7 | |
parent | 445b5b11290f6cc682efeb168e9f2081e4cfb9d1 (diff) | |
download | common-c25154b93b00f8185c1041a23d57a0b69e0c15ca.zip common-c25154b93b00f8185c1041a23d57a0b69e0c15ca.tar.gz common-c25154b93b00f8185c1041a23d57a0b69e0c15ca.tar.bz2 |
hdmitx: add hdcp limitation [1/1]
PD#SWPL-24787
Problem:
For some type's chip, there is no 4k output, and there
will no need the hdcp22
Solution:
Add hdcp limitation
Verify:
805x/y
Change-Id: I36bf7b89d614a738bfca2d5c50a14d2355063792
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
-rw-r--r-- | drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 91b8f29..56dae95 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -2198,6 +2198,11 @@ static bool hdmitx_limited_1080p(void) return 0; } +static bool hdmitx_limited_hdcp14(void) +{ + return hdmitx_limited_1080p(); +} + /**/ static ssize_t show_disp_cap(struct device *dev, struct device_attribute *attr, char *buf) @@ -2948,7 +2953,8 @@ static ssize_t show_hdcp_lstore(struct device *dev, DDC_HDCP_14_LSTORE, 0)) hdmitx_device.lstore += 1; if (hdmitx_device.HWOp.CntlDDC(&hdmitx_device, - DDC_HDCP_22_LSTORE, 0)) + DDC_HDCP_22_LSTORE, 0) && + !hdmitx_limited_hdcp14()) hdmitx_device.lstore += 2; } if (hdmitx_device.lstore & 0x1) |