diff options
| author | Ahung Cheng <ahcheng@nvidia.com> | 2018-07-12 04:24:07 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2020-04-20 14:26:18 -0400 |
| commit | 5849d2daafabd656ec59334bc54d54cc9e289f9a (patch) | |
| tree | 961ebe2b647306fb58f653fd9276cdbe6408fda6 | |
| parent | 0a85f78b86e727b977d8534f58d7aa8322ce7b77 (diff) | |
tegra: hdcp: pass SOR instance to upstream
upstream library needs to get the active SOR
instance
bug 2219364
Change-Id: I79b5fb9ae690037ac98f7e46b053da14d4322c63
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1776730
(cherry picked from commit 206d44dcbd84f933e9d2bb7f0f7c532b5b3ed632)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2313884
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
| -rw-r--r-- | drivers/video/tegra/dc/hdcp/dphdcp.c | 3 | ||||
| -rw-r--r-- | drivers/video/tegra/dc/hdcp/hdmihdcp.c | 3 | ||||
| -rw-r--r-- | include/uapi/video/nvhdcp.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/hdcp/dphdcp.c b/drivers/video/tegra/dc/hdcp/dphdcp.c index 9d55f3f9a..e364f7f6f 100644 --- a/drivers/video/tegra/dc/hdcp/dphdcp.c +++ b/drivers/video/tegra/dc/hdcp/dphdcp.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * dphdcp.c: dp hdcp driver. | 2 | * dphdcp.c: dp hdcp driver. |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2015-2019, NVIDIA CORPORATION, All rights reserved. | 4 | * Copyright (c) 2015-2020, NVIDIA CORPORATION, All rights reserved. |
| 5 | * | 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public | 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and | 7 | * License version 2, as published by the Free Software Foundation, and |
| @@ -2076,6 +2076,7 @@ static int get_dphdcp_state(struct tegra_dphdcp *dphdcp, | |||
| 2076 | pkt->hdcp22 = dphdcp->hdcp22; | 2076 | pkt->hdcp22 = dphdcp->hdcp22; |
| 2077 | pkt->port = TEGRA_NVHDCP_PORT_DP; | 2077 | pkt->port = TEGRA_NVHDCP_PORT_DP; |
| 2078 | } | 2078 | } |
| 2079 | pkt->sor = dphdcp->dp->sor->ctrl_num; | ||
| 2079 | mutex_unlock(&dphdcp->lock); | 2080 | mutex_unlock(&dphdcp->lock); |
| 2080 | return 0; | 2081 | return 0; |
| 2081 | } | 2082 | } |
diff --git a/drivers/video/tegra/dc/hdcp/hdmihdcp.c b/drivers/video/tegra/dc/hdcp/hdmihdcp.c index f9a5949e0..0f415d944 100644 --- a/drivers/video/tegra/dc/hdcp/hdmihdcp.c +++ b/drivers/video/tegra/dc/hdcp/hdmihdcp.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * hdmihdcp.c: hdmi hdcp functions. | 2 | * hdmihdcp.c: hdmi hdcp functions. |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2014-2019, NVIDIA CORPORATION, All rights reserved. | 4 | * Copyright (c) 2014-2020, NVIDIA CORPORATION, All rights reserved. |
| 5 | * | 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public | 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and | 7 | * License version 2, as published by the Free Software Foundation, and |
| @@ -553,6 +553,7 @@ static int get_nvhdcp_state(struct tegra_nvhdcp *nvhdcp, | |||
| 553 | pkt->hdcp22 = nvhdcp->hdcp22; | 553 | pkt->hdcp22 = nvhdcp->hdcp22; |
| 554 | pkt->port = TEGRA_NVHDCP_PORT_HDMI; | 554 | pkt->port = TEGRA_NVHDCP_PORT_HDMI; |
| 555 | } | 555 | } |
| 556 | pkt->sor = nvhdcp->hdmi->sor->ctrl_num; | ||
| 556 | mutex_unlock(&nvhdcp->lock); | 557 | mutex_unlock(&nvhdcp->lock); |
| 557 | return 0; | 558 | return 0; |
| 558 | } | 559 | } |
diff --git a/include/uapi/video/nvhdcp.h b/include/uapi/video/nvhdcp.h index 7f759f56e..e07c9def1 100644 --- a/include/uapi/video/nvhdcp.h +++ b/include/uapi/video/nvhdcp.h | |||
| @@ -82,6 +82,8 @@ struct tegra_nvhdcp_packet { | |||
| 82 | __u32 port; /* (OUT) DP or HDMI */ | 82 | __u32 port; /* (OUT) DP or HDMI */ |
| 83 | 83 | ||
| 84 | __u32 binfo; /* (OUT) link/repeater status for DP */ | 84 | __u32 binfo; /* (OUT) link/repeater status for DP */ |
| 85 | |||
| 86 | __u32 sor; /* (OUT) SOR or SOR1 */ | ||
| 85 | }; | 87 | }; |
| 86 | 88 | ||
| 87 | /* parameters to TEGRAIO_NVHDCP_SET_POLICY */ | 89 | /* parameters to TEGRAIO_NVHDCP_SET_POLICY */ |
