Skip to content

Commit ab956ed

Browse files
Chris Parkalexdeucher
authored andcommitted
drm/amd/display: Add a function for checking tmds mode
[Why] DVI is TMDS signal like HDMI but without audio. Current signal check does not correctly reflect DVI clock programming. [How] Define a new signal check for TMDS that includes DVI to HDMI TMDS programming. Reviewed-by: Dillon Varone <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Chris Park <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 97d9e8c commit ab956ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/gpu/drm/amd/display/include/signal_types.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,19 @@ static inline bool dc_is_dvi_signal(enum signal_type signal)
118118
}
119119
}
120120

121+
static inline bool dc_is_tmds_signal(enum signal_type signal)
122+
{
123+
switch (signal) {
124+
case SIGNAL_TYPE_DVI_SINGLE_LINK:
125+
case SIGNAL_TYPE_DVI_DUAL_LINK:
126+
case SIGNAL_TYPE_HDMI_TYPE_A:
127+
return true;
128+
break;
129+
default:
130+
return false;
131+
}
132+
}
133+
121134
static inline bool dc_is_dvi_single_link_signal(enum signal_type signal)
122135
{
123136
return (signal == SIGNAL_TYPE_DVI_SINGLE_LINK);

0 commit comments

Comments
 (0)