compositor-drm: Define DPMS property as an enum
authorDaniel Stone <daniels@collabora.com>
Fri, 6 Jul 2018 10:36:49 +0000 (11:36 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 9 Jul 2018 12:30:03 +0000 (15:30 +0300)
commit7625577a4f8dd975a1ba3270d3b5eca1fdef7256
treeab9413f6246dd9f367c206cd35dfb4a449e86685
parent79e95cb9951c167d5a0a13a2e101cae752256a63
compositor-drm: Define DPMS property as an enum

The DPMS connector property is an enum property in KMS, which made our
property handling complain at startup as we weren't defining its enums.
Fix our definition so we parse the enum values.

The only user of the property is the legacy path, which can continue
using fixed values as those values are part of the KMS ABI. The atomic
path does not need any changes, since atomic uses routing and CRTC
active to determine the connector's power state, rather than a property.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/125
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor-drm.c