Merge tag 'drm-vc4-next-2016-12-09' of https://github.com/anholt/linux into drm-next
This pull request brings in VEC (TV-out) support for vc4, along with a pageflipping race fix. * tag 'drm-vc4-next-2016-12-09' of https://github.com/anholt/linux: drm/vc4: Don't use drm_put_dev drm/vc4: Document VEC DT binding drm/vc4: Add support for the VEC (Video Encoder) IP drm: Add TV connector states to drm_connector_state drm: Turn DRM_MODE_SUBCONNECTOR_xx definitions into an enum drm/vc4: Fix ->clock_select setting for the VEC encoder drm/vc4: Fix race between page flip completion event and clean-up
This commit is contained in:
@@ -1087,12 +1087,38 @@ int drm_atomic_connector_set_property(struct drm_connector *connector,
|
||||
* now?) atomic writes to DPMS property:
|
||||
*/
|
||||
return -EINVAL;
|
||||
} else if (property == config->tv_select_subconnector_property) {
|
||||
state->tv.subconnector = val;
|
||||
} else if (property == config->tv_left_margin_property) {
|
||||
state->tv.margins.left = val;
|
||||
} else if (property == config->tv_right_margin_property) {
|
||||
state->tv.margins.right = val;
|
||||
} else if (property == config->tv_top_margin_property) {
|
||||
state->tv.margins.top = val;
|
||||
} else if (property == config->tv_bottom_margin_property) {
|
||||
state->tv.margins.bottom = val;
|
||||
} else if (property == config->tv_mode_property) {
|
||||
state->tv.mode = val;
|
||||
} else if (property == config->tv_brightness_property) {
|
||||
state->tv.brightness = val;
|
||||
} else if (property == config->tv_contrast_property) {
|
||||
state->tv.contrast = val;
|
||||
} else if (property == config->tv_flicker_reduction_property) {
|
||||
state->tv.flicker_reduction = val;
|
||||
} else if (property == config->tv_overscan_property) {
|
||||
state->tv.overscan = val;
|
||||
} else if (property == config->tv_saturation_property) {
|
||||
state->tv.saturation = val;
|
||||
} else if (property == config->tv_hue_property) {
|
||||
state->tv.hue = val;
|
||||
} else if (connector->funcs->atomic_set_property) {
|
||||
return connector->funcs->atomic_set_property(connector,
|
||||
state, property, val);
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(drm_atomic_connector_set_property);
|
||||
|
||||
@@ -1135,6 +1161,30 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
|
||||
*val = (state->crtc) ? state->crtc->base.id : 0;
|
||||
} else if (property == config->dpms_property) {
|
||||
*val = connector->dpms;
|
||||
} else if (property == config->tv_select_subconnector_property) {
|
||||
*val = state->tv.subconnector;
|
||||
} else if (property == config->tv_left_margin_property) {
|
||||
*val = state->tv.margins.left;
|
||||
} else if (property == config->tv_right_margin_property) {
|
||||
*val = state->tv.margins.right;
|
||||
} else if (property == config->tv_top_margin_property) {
|
||||
*val = state->tv.margins.top;
|
||||
} else if (property == config->tv_bottom_margin_property) {
|
||||
*val = state->tv.margins.bottom;
|
||||
} else if (property == config->tv_mode_property) {
|
||||
*val = state->tv.mode;
|
||||
} else if (property == config->tv_brightness_property) {
|
||||
*val = state->tv.brightness;
|
||||
} else if (property == config->tv_contrast_property) {
|
||||
*val = state->tv.contrast;
|
||||
} else if (property == config->tv_flicker_reduction_property) {
|
||||
*val = state->tv.flicker_reduction;
|
||||
} else if (property == config->tv_overscan_property) {
|
||||
*val = state->tv.overscan;
|
||||
} else if (property == config->tv_saturation_property) {
|
||||
*val = state->tv.saturation;
|
||||
} else if (property == config->tv_hue_property) {
|
||||
*val = state->tv.hue;
|
||||
} else if (connector->funcs->atomic_get_property) {
|
||||
return connector->funcs->atomic_get_property(connector,
|
||||
state, property, val);
|
||||
|
Reference in New Issue
Block a user