Skip to content

Commit 8dd5a5e

Browse files
surajk8rodrigovivi
authored andcommitted
drm/i915/hdcp: Use correct function to check if encoder is HDMI
Use intel_encoder_is_hdmi function which was recently introduced to see if encoder is HDMI or not. --v2 -Add Fixes tag [Jani] Fixes: 6a3691c ("drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI") Signed-off-by: Suraj Kandpal <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 2499212) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 4480604 commit 8dd5a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/display/intel_hdcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ intel_hdcp_adjust_hdcp_line_rekeying(struct intel_encoder *encoder,
4141
u32 rekey_bit = 0;
4242

4343
/* Here we assume HDMI is in TMDS mode of operation */
44-
if (encoder->type != INTEL_OUTPUT_HDMI)
44+
if (!intel_encoder_is_hdmi(encoder))
4545
return;
4646

4747
if (DISPLAY_VER(display) >= 30) {

0 commit comments

Comments
 (0)