Skip to content

Commit 1e8a6ce

Browse files
anarsouljernejsk
authored andcommitted
drm/bridge: anx6345: set correct BPC for display_info of connector
Some drivers (e.g. sun4i-drm) need this info to decide whether they need to enable dithering. Currently driver reports what panel supports and if panel supports 8 we don't get dithering enabled. Hardcode BPC to 6 for now since that's the only BPC that driver supports. Fixes: 6aa1926 ("drm/bridge: Add Analogix anx6345 support") Signed-off-by: Vasily Khoruzhick <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Jernej Skrabec <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 53612c3 commit 1e8a6ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/bridge/analogix/analogix-anx6345.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ static int anx6345_get_modes(struct drm_connector *connector)
485485

486486
num_modes += drm_add_edid_modes(connector, anx6345->edid);
487487

488+
/* Driver currently supports only 6bpc */
489+
connector->display_info.bpc = 6;
490+
488491
unlock:
489492
if (power_off)
490493
anx6345_poweroff(anx6345);

0 commit comments

Comments
 (0)