Skip to content

Commit bab1e2f

Browse files
committed
Merge tag 'drm-misc-next-fixes-2017-05-05' of git://anongit.freedesktop.org/git/drm-misc into drm-next
Core Changes: - Add quirk for LGD 764 panel to default 10bpc (Mario) Cc: Mario Kleiner <mario.kleiner.de@gmail.com> * tag 'drm-misc-next-fixes-2017-05-05' of git://anongit.freedesktop.org/git/drm-misc: drm/edid: Add 10 bpc quirk for LGD 764 panel in HP zBook 17 G2
2 parents 09d79d1 + e345da8 commit bab1e2f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/drm_edid.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
#define EDID_QUIRK_FORCE_12BPC (1 << 9)
8181
/* Force 6bpc */
8282
#define EDID_QUIRK_FORCE_6BPC (1 << 10)
83+
/* Force 10bpc */
84+
#define EDID_QUIRK_FORCE_10BPC (1 << 11)
8385

8486
struct detailed_mode_closure {
8587
struct drm_connector *connector;
@@ -122,6 +124,9 @@ static const struct edid_quirk {
122124
{ "FCM", 13600, EDID_QUIRK_PREFER_LARGE_75 |
123125
EDID_QUIRK_DETAILED_IN_CM },
124126

127+
/* LGD panel of HP zBook 17 G2, eDP 10 bpc, but reports unknown bpc */
128+
{ "LGD", 764, EDID_QUIRK_FORCE_10BPC },
129+
125130
/* LG Philips LCD LP154W01-A5 */
126131
{ "LPL", 0, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
127132
{ "LPL", 0x2a00, EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE },
@@ -4244,6 +4249,9 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
42444249
if (quirks & EDID_QUIRK_FORCE_8BPC)
42454250
connector->display_info.bpc = 8;
42464251

4252+
if (quirks & EDID_QUIRK_FORCE_10BPC)
4253+
connector->display_info.bpc = 10;
4254+
42474255
if (quirks & EDID_QUIRK_FORCE_12BPC)
42484256
connector->display_info.bpc = 12;
42494257

0 commit comments

Comments
 (0)