compositor-drm: backlight control for all heads
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 15 Nov 2017 10:51:01 +0000 (12:51 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 18 Apr 2018 09:00:52 +0000 (12:00 +0300)
commitf8b850d4e10f7aafc34bb9d2d174424fd00c36fe
treef73e022f34bf4a1b7b56810f930b375fecf2c6ff
parentf005f25d62e048877dee96564a6b8c25a2b8752a
compositor-drm: backlight control for all heads

If an output has multiple (cloned) heads, it should be enough for any
head to support backlight control for DRM-backend to expose it.

Inspect all attached heads for backlight control and improve the
logging.

Pick the initial backlight level from whatever happens to be the "first"
head, because it's simple.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
libweston/compositor-drm.c