diff options
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 18 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index a8c831134fc3..362a538cdedc 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -736,6 +736,24 @@ int drm_mode_create_tv_properties(struct drm_device *dev, int num_modes, | |||
736 | dev->mode_config.tv_flicker_reduction_property->values[0] = 0; | 736 | dev->mode_config.tv_flicker_reduction_property->values[0] = 0; |
737 | dev->mode_config.tv_flicker_reduction_property->values[1] = 100; | 737 | dev->mode_config.tv_flicker_reduction_property->values[1] = 100; |
738 | 738 | ||
739 | dev->mode_config.tv_overscan_property = | ||
740 | drm_property_create(dev, DRM_MODE_PROP_RANGE, | ||
741 | "overscan", 2); | ||
742 | dev->mode_config.tv_overscan_property->values[0] = 0; | ||
743 | dev->mode_config.tv_overscan_property->values[1] = 100; | ||
744 | |||
745 | dev->mode_config.tv_saturation_property = | ||
746 | drm_property_create(dev, DRM_MODE_PROP_RANGE, | ||
747 | "saturation", 2); | ||
748 | dev->mode_config.tv_saturation_property->values[0] = 0; | ||
749 | dev->mode_config.tv_saturation_property->values[1] = 100; | ||
750 | |||
751 | dev->mode_config.tv_hue_property = | ||
752 | drm_property_create(dev, DRM_MODE_PROP_RANGE, | ||
753 | "hue", 2); | ||
754 | dev->mode_config.tv_hue_property->values[0] = 0; | ||
755 | dev->mode_config.tv_hue_property->values[1] = 100; | ||
756 | |||
739 | return 0; | 757 | return 0; |
740 | } | 758 | } |
741 | EXPORT_SYMBOL(drm_mode_create_tv_properties); | 759 | EXPORT_SYMBOL(drm_mode_create_tv_properties); |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 5f2cc0ca4c7d..db92a83f8ca9 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -575,6 +575,9 @@ struct drm_mode_config { | |||
575 | struct drm_property *tv_brightness_property; | 575 | struct drm_property *tv_brightness_property; |
576 | struct drm_property *tv_contrast_property; | 576 | struct drm_property *tv_contrast_property; |
577 | struct drm_property *tv_flicker_reduction_property; | 577 | struct drm_property *tv_flicker_reduction_property; |
578 | struct drm_property *tv_overscan_property; | ||
579 | struct drm_property *tv_saturation_property; | ||
580 | struct drm_property *tv_hue_property; | ||
578 | 581 | ||
579 | /* Optional properties */ | 582 | /* Optional properties */ |
580 | struct drm_property *scaling_mode_property; | 583 | struct drm_property *scaling_mode_property; |