提交 8b32076c 编写于 作者: S Sylvia Tsai 提交者: Alex Deucher

drm/amd/display: Adding dm controlled signal type in dc_stream

- Adding dm controlled signal type in dc_stream
- Adding fallback to dvi signal when output signal is hdmi and the connector
  type is not
Signed-off-by: NSylvia Tsai <sylvia.tsai@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: NSylvia Tsai <Sylvia.Tsai@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 6e5d1c82
......@@ -1237,22 +1237,22 @@ static struct audio *find_first_free_audio(struct resource_context *res_ctx)
static void update_stream_signal(struct core_stream *stream)
{
const struct dc_sink *dc_sink = stream->public.sink;
if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
stream->signal = stream->sink->link->public.connector_signal;
else if (dc_sink->sink_signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
dc_sink->sink_signal == SIGNAL_TYPE_DVI_DUAL_LINK)
/* For asic supports dual link DVI, we should adjust signal type
* based on timing pixel clock. If pixel clock more than 165Mhz,
* signal is dual link, otherwise, single link.
*/
if (stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
if (stream->public.output_signal == SIGNAL_TYPE_NONE) {
const struct dc_sink *dc_sink = stream->public.sink;
if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
stream->signal =
stream->sink->link->
public.connector_signal;
else
stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
else
stream->signal = dc_sink->sink_signal;
stream->signal = dc_sink->sink_signal;
} else {
stream->signal = stream->public.output_signal;
}
if (stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK &&
stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
}
bool resource_is_stream_unchanged(
......
......@@ -411,6 +411,7 @@ enum surface_update_type {
struct dc_stream {
const struct dc_sink *sink;
struct dc_crtc_timing timing;
enum signal_type output_signal;
enum dc_color_space output_color_space;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册