aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2009-08-11 20:30:10 -0400
committerDave Airlie <airlied@redhat.com>2009-08-12 20:33:48 -0400
commita75f0236292a5fca65f26efedca48bd07db1834d (patch)
tree04d30bcc08b62c50dd370d99a1fe79f642c92fd6 /drivers/gpu/drm/drm_crtc.c
parent841b4117b30d544690fceb952037b1cddf14783f (diff)
drm: Add more standard TV properties.
Overscan, saturation, hue. Used in the nouveau driver for GPUs with integrated TV encoders. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c18
1 files changed, 18 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}
741EXPORT_SYMBOL(drm_mode_create_tv_properties); 759EXPORT_SYMBOL(drm_mode_create_tv_properties);