Commit d8177841 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/udl: Set preferred color depth to 16 bpp

The current default color depth of 24 bpp is not even supported by
the driver. Being the native format for communicating with the adapter,
16 bpp is the correct choice.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210084905.5570-6-tzimmermann@suse.de
parent 997d33c3
...@@ -105,7 +105,7 @@ static int udl_usb_probe(struct usb_interface *interface, ...@@ -105,7 +105,7 @@ static int udl_usb_probe(struct usb_interface *interface,
DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index); DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index);
r = drm_fbdev_generic_setup(&udl->drm, 16); r = drm_fbdev_generic_setup(&udl->drm, 0);
if (r) if (r)
goto err_drm_dev_unregister; goto err_drm_dev_unregister;
......
...@@ -380,7 +380,7 @@ int udl_modeset_init(struct drm_device *dev) ...@@ -380,7 +380,7 @@ int udl_modeset_init(struct drm_device *dev)
dev->mode_config.max_height = 2048; dev->mode_config.max_height = 2048;
dev->mode_config.prefer_shadow = 0; dev->mode_config.prefer_shadow = 0;
dev->mode_config.preferred_depth = 24; dev->mode_config.preferred_depth = 16;
dev->mode_config.funcs = &udl_mode_funcs; dev->mode_config.funcs = &udl_mode_funcs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment