[PATCH 23/39] drm/amd/dal: Only set backlight level for eDP panel.
Harry Wentland
harry.wentland at amd.com
Thu Nov 24 02:02:52 UTC 2016
From: Yongqiang Sun <yongqiang.sun at amd.com>
Change-Id: I67af5009aa86ea256e42c02ac902fe28f4ca65a4
Signed-off-by: Yongqiang Sun <yongqiang.sun at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/dal/dc/core/dc.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c
index aaf61a1feb47..dbd7b4b6bfe9 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
@@ -261,9 +261,11 @@ static bool set_backlight(struct dc *dc, unsigned int backlight_level,
struct core_dc *core_dc = DC_TO_CORE(dc);
int i;
- for (i = 0; i < core_dc->link_count; i++)
- dc_link_set_backlight_level(&core_dc->links[i]->public,
- backlight_level, frame_ramp, stream);
+ if (stream->sink->sink_signal == SIGNAL_TYPE_EDP) {
+ for (i = 0; i < core_dc->link_count; i++)
+ dc_link_set_backlight_level(&core_dc->links[i]->public,
+ backlight_level, frame_ramp, stream);
+ }
return true;
--
2.10.1
More information about the amd-gfx
mailing list