]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add TV connector states to drm_connector_state
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 2 Dec 2016 13:48:09 +0000 (14:48 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 9 Dec 2016 23:26:30 +0000 (15:26 -0800)
commit3a371aac4efeaba33759fbc6f6aa6a6203d76cd3
treee198f81ba3950698cea694c89fef6d4bd05a66cc
parentac5eb7dc317f5298ecb2f4900754a5852036b4cf
drm: Add TV connector states to drm_connector_state

Some generic TV connector properties are exposed in drm_mode_config, but
they are currently handled independently in each DRM encoder driver.

Extend the drm_connector_state to store TV related states, and modify the
drm_atomic_connector_{set,get}_property() helpers to fill the connector
state accordingly.

Each driver is then responsible for checking and applying the new config
in its ->atomic_mode_{check,set}() operations.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/drm_atomic.c
include/drm/drm_connector.h