search for: drm_property_create_rang

Displaying 13 results from an estimated 13 matches for "drm_property_create_rang".

2013 Sep 08
1
[PATCH] drm/nv10/plane: add plane support for nv10-nv40
...GFP_KERNEL); + int ret; + + if (!plane) + return; + + ret = drm_plane_init(device, &plane->base, 3 /* both crtc's */, + &nv10_plane_funcs, + formats, ARRAY_SIZE(formats), false); + if (ret) + goto err; + + /* Set up the plane properties */ + plane->props.colorkey = drm_property_create_range( + device, 0, "colorkey", 0, 0x01ffffff); + plane->props.contrast = drm_property_create_range( + device, 0, "contrast", 0, 8192 - 1); + plane->props.brightness = drm_property_create_range( + device, 0, "brightness", 0, 1024); + plane->props.hue = drm_pr...
2018 Feb 20
4
[PATCH] drm/nouveau: Replace the iturbt_709 prop with the standarad COLOR_ENCODNIG prop
...ne->iturbt_709 = value; + else if (property == nv_plane->base.color_encoding_property) + nv_plane->color_encoding = value; else return -EINVAL; @@ -313,14 +312,11 @@ nv10_overlay_init(struct drm_device *device) device, 0, "hue", 0, 359); plane->props.saturation = drm_property_create_range( device, 0, "saturation", 0, 8192 - 1); - plane->props.iturbt_709 = drm_property_create_range( - device, 0, "iturbt_709", 0, 1); if (!plane->props.colorkey || !plane->props.contrast || !plane->props.brightness || !plane->props.hue || -...
2018 Feb 20
0
[PATCH] drm/nouveau: Replace the iturbt_709 prop with the standarad COLOR_ENCODNIG prop
...) > + nv_plane->color_encoding = value; > else > return -EINVAL; > > @@ -313,14 +312,11 @@ nv10_overlay_init(struct drm_device *device) > device, 0, "hue", 0, 359); > plane->props.saturation = drm_property_create_range( > device, 0, "saturation", 0, 8192 - 1); > - plane->props.iturbt_709 = drm_property_create_range( > - device, 0, "iturbt_709", 0, 1); > if (!plane->props.colorkey || > !plane->props...
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...k)) > + continue; > + > + entry = &drm_underscan_mode_enum_list[i]; > + ret = drm_property_add_enum(prop, entry->type, entry->name); > + if (ret) > + goto err_free_mode_prop; > + } > + > + connector->underscan_mode_property = prop; > + > + prop = drm_property_create_range(dev, 0, "underscan hborder", 0, > + max_hborder); > + if (!prop) > + goto err_free_mode_prop; > + > + connector->underscan_hborder_property = prop; > + > + prop = drm_property_create_range(dev, 0, "underscan vborder", 0, > + max_vborder); &...
2018 May 07
8
[PATCH 0/3] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. Note that I use this new
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
...st *entry; + int ret; + + if (!(BIT(i) & mode_mask)) + continue; + + entry = &drm_underscan_mode_enum_list[i]; + ret = drm_property_add_enum(prop, entry->type, entry->name); + if (ret) + goto err_free_mode_prop; + } + + connector->underscan_mode_property = prop; + + prop = drm_property_create_range(dev, 0, "underscan hborder", 0, + max_hborder); + if (!prop) + goto err_free_mode_prop; + + connector->underscan_hborder_property = prop; + + prop = drm_property_create_range(dev, 0, "underscan vborder", 0, + max_vborder); + if (!prop) + goto err_free_hborder_pro...
2018 Nov 22
0
[PATCH v3 1/3] drm/connector: Add generic underscan properties
...st *entry; + int ret; + + if (!(BIT(i) & mode_mask)) + continue; + + entry = &drm_underscan_mode_enum_list[i]; + ret = drm_property_add_enum(prop, entry->type, entry->name); + if (ret) + goto err_free_mode_prop; + } + + connector->underscan_mode_property = prop; + + prop = drm_property_create_range(dev, 0, "underscan hborder", 0, + max_hborder); + if (!prop) + goto err_free_mode_prop; + + connector->underscan_hborder_property = prop; + + prop = drm_property_create_range(dev, 0, "underscan vborder", 0, + max_vborder); + if (!prop) + goto err_free_hborder_pro...
2018 May 11
5
[PATCH v2 0/4] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. In this v2, I also converted the
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
...try = &drm_underscan_mode_enum_list[i]; > > + ret = drm_property_add_enum(prop, entry->type, entry->name); > > + if (ret) > > + goto err_free_mode_prop; > > + } > > + > > + connector->underscan_mode_property = prop; > > + > > + prop = drm_property_create_range(dev, 0, "underscan hborder", 0, > > + max_hborder); > > + if (!prop) > > + goto err_free_mode_prop; > > + > > + connector->underscan_hborder_property = prop; > > + > > + prop = drm_property_create_range(dev, 0, "underscan vborder&qu...
2013 Nov 15
4
[PATCH 1/5] drm/nv10/plane: fix format computation
Otherwise none of the format checks pass, since the width was still in 16.16 encoding. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- This must have been some sort of last-second cleanup I made and forgot to test, because with this code, there's no way it could ever have worked... drivers/gpu/drm/nouveau/dispnv04/overlay.c | 17 +++++++++-------- 1 file changed, 9
2018 Nov 22
1
[PATCH v3 1/3] drm/connector: Add generic underscan properties
...p; mode_mask)) >+ continue; >+ >+ entry = &drm_underscan_mode_enum_list[i]; >+ ret = drm_property_add_enum(prop, entry->type, entry->name); >+ if (ret) >+ goto err_free_mode_prop; >+ } >+ >+ connector->underscan_mode_property = prop; >+ >+ prop = drm_property_create_range(dev, 0, "underscan hborder", 0, >+ max_hborder); >+ if (!prop) >+ goto err_free_mode_prop; >+ >+ connector->underscan_hborder_property = prop; >+ >+ prop = drm_property_create_range(dev, 0, "underscan vborder", 0, >+ max_vborder); >+ if...
2018 Nov 22
5
[PATCH v3 0/3] drm/connector: Provide generic support for underscan
Hello, This is an attempt at providing generic support for underscan connector props. We already have 3 drivers defining the same underscan, underscan vborder and underscan hborder properties (amd, radeon and nouveau) and I am about to add a new one, hence my proposal to put the prop parsing code in the core and add ->underscan fields to drm_connector_state. This v3 was based on the "VC4
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...k)) > + continue; > + > + entry = &drm_underscan_mode_enum_list[i]; > + ret = drm_property_add_enum(prop, entry->type, entry->name); > + if (ret) > + goto err_free_mode_prop; > + } > + > + connector->underscan_mode_property = prop; > + > + prop = drm_property_create_range(dev, 0, "underscan hborder", 0, > + max_hborder); > + if (!prop) > + goto err_free_mode_prop; > + > + connector->underscan_hborder_property = prop; > + > + prop = drm_property_create_range(dev, 0, "underscan vborder", 0, > + max_vborder); &...