Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210084905.5570-6-tzimmermann@suse.de

+2 -2
+1 -1
drivers/gpu/drm/udl/udl_drv.c
··· 105 105 106 106 DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index); 107 107 108 - r = drm_fbdev_generic_setup(&udl->drm, 16); 108 + r = drm_fbdev_generic_setup(&udl->drm, 0); 109 109 if (r) 110 110 goto err_drm_dev_unregister; 111 111
+1 -1
drivers/gpu/drm/udl/udl_modeset.c
··· 380 380 dev->mode_config.max_height = 2048; 381 381 382 382 dev->mode_config.prefer_shadow = 0; 383 - dev->mode_config.preferred_depth = 24; 383 + dev->mode_config.preferred_depth = 16; 384 384 385 385 dev->mode_config.funcs = &udl_mode_funcs; 386 386