search for: drm_mode_prop_enum

Displaying 19 results from an estimated 19 matches for "drm_mode_prop_enum".

2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
This is probably a typo error which has been introduced in 2009... This fixes the following warning detected by Clang : drmmode_display.c:907:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (props && (props->flags && DRM_MODE_PROP_ENUM)) { Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com> --- src/drmmode_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 7c1d2bb..161bccd 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c...
2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
...een introduced in 2009... >> This fixes the following warning detected by Clang : >> >> drmmode_display.c:907:30: warning: use of logical '&&' with constant >> operand [-Wconstant-logical-operand] >> if (props && (props->flags && DRM_MODE_PROP_ENUM)) { >> >> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com> >> --- >> src/drmmode_display.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/drmmode_display.c b/src/drmmode_display.c >> index 7c1d2bb...
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties [PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available. [PATCH 3/3] kms: Add TV-out support src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 261 insertions(+), 142 deletions(-)
2010 Feb 10
0
[PATCH] Revert "kms: work around some bong hits with dpms"
...ptr drmmode = drmmode_output->drmmode; int mode_id = -1, i; - if (!NVPTR(output->scrn)->allow_dpms) - return; - for (i = 0; i < koutput->count_props; i++) { props = drmModeGetProperty(drmmode->fd, koutput->props[i]); if (props && (props->flags && DRM_MODE_PROP_ENUM)) { diff --git a/src/nv_driver.c b/src/nv_driver.c index 3908347..7149759 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -331,10 +331,8 @@ NVEnterVT(int scrnIndex, int flags) if (ret) ErrorF("Unable to get master: %d\n", ret); - pNv->allow_dpms = FALSE; if (!xf86SetDesi...
2018 Mar 16
2
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...ec8dd03d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -338,11 +338,9 @@ static struct nouveau_drm_prop_enum_list dither_depth[] = { if (c) { \ p = drm_property_create(dev, DRM_MODE_PROP_ENUM, n, c); \ l = (list); \ - c = 0; \ while (p && l->gen_mask) { \ if (l->gen_mask & (1 << (gen))) {...
2018 Oct 09
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...putPtr output, int mode) drmmode_ptr drmmode = drmmode_output->drmmode; int mode_id = -1, i; + if (!koutput) + return; + for (i = 0; i < koutput->count_props; i++) { props = drmModeGetProperty(drmmode->fd, koutput->props[i]); if (props && (props->flags & DRM_MODE_PROP_ENUM)) { @@ -1227,42 +1292,130 @@ drmmode_zaphod_match(ScrnInfoPtr pScrn, const char *s, char *output_name) return FALSE; } +static xf86OutputPtr find_output(ScrnInfoPtr pScrn, int id) +{ + xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); + int i; + for (i = 0; i < xf86_config-&...
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...drm_device *dev = connector->dev; > + struct drm_property *prop; > + > + if (!max_hborder || !max_vborder) > + return -EINVAL; > + > + if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) > + return -EINVAL; > + > + prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", > + hweight32(mode_mask)); > + if (!prop) > + return -ENOMEM; > + > + for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { > + const struct drm_prop_enum_list *entry; > + int ret; > + > + if (!(BIT(i) & mode_mask)) >...
2018 Apr 26
1
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -338,11 +338,9 @@ static struct nouveau_drm_prop_enum_list dither_depth[] = { if (c) { \ p = drm_property_create(dev, DRM_MODE_PROP_ENUM, n, c); \ l = (list); \ - c = 0; \ while (p && l->gen_mask) { \ if (...
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
2013 Jun 06
1
[PATCH 1/2] nouveau/mode: split out create_ranged_atom
...nouveau_create_ranged_atom(output, &p->atoms[0], + drmmode_prop->name, + drmmode_prop->values[0], + drmmode_prop->values[1], + value, + drmmode_prop->flags & DRM_MODE_PROP_IMMUTABLE ? TRUE : FALSE); } else if (drmmode_prop->flags & DRM_MODE_PROP_ENUM) { p->num_atoms = drmmode_prop->count_enums + 1; p->atoms = calloc(p->num_atoms, sizeof(Atom)); -- 1.8.2.1
2018 Apr 23
0
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -338,11 +338,9 @@ static struct nouveau_drm_prop_enum_list dither_depth[] = { if (c) { \ p = drm_property_create(dev, DRM_MODE_PROP_ENUM, n, c); \ l = (list); \ - c = 0; \ while (p && l->gen_mask) { \ if (...
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
..._SIZE(drm_underscan_mode_enum_list); + struct drm_device *dev = connector->dev; + struct drm_property *prop; + + if (!max_hborder || !max_vborder) + return -EINVAL; + + if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) + return -EINVAL; + + prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", + hweight32(mode_mask)); + if (!prop) + return -ENOMEM; + + for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { + const struct drm_prop_enum_list *entry; + int ret; + + if (!(BIT(i) & mode_mask)) + continue; + + entry = &drm_underscan_mod...
2018 Nov 22
0
[PATCH v3 1/3] drm/connector: Add generic underscan properties
..._SIZE(drm_underscan_mode_enum_list); + struct drm_device *dev = connector->dev; + struct drm_property *prop; + + if (!max_hborder || !max_vborder) + return -EINVAL; + + if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) + return -EINVAL; + + prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", + hweight32(mode_mask)); + if (!prop) + return -ENOMEM; + + for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { + const struct drm_prop_enum_list *entry; + int ret; + + if (!(BIT(i) & mode_mask)) + continue; + + entry = &drm_underscan_mod...
2018 May 07
0
[PATCH 1/3] drm/connector: Add generic underscan properties
...t; + struct drm_property *prop; > > + > > + if (!max_hborder || !max_vborder) > > + return -EINVAL; > > + > > + if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) > > + return -EINVAL; > > + > > + prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", > > + hweight32(mode_mask)); > > + if (!prop) > > + return -ENOMEM; > > + > > + for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { > > + const struct drm_prop_enum_list *entry; > > + int ret; > > + &gt...
2018 Nov 22
1
[PATCH v3 1/3] drm/connector: Add generic underscan properties
...;+ struct drm_device *dev = connector->dev; >+ struct drm_property *prop; >+ >+ if (!max_hborder || !max_vborder) >+ return -EINVAL; >+ >+ if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) >+ return -EINVAL; >+ >+ prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", >+ hweight32(mode_mask)); >+ if (!prop) >+ return -ENOMEM; >+ >+ for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { >+ const struct drm_prop_enum_list *entry; >+ int ret; >+ >+ if (!(BIT(i) & mode_mask)) >+ conti...
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 Jan 13
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...he properties for the current connector and + * look for the link-status property + */ + koutput = drmModeGetConnectorCurrent(drmmode->fd, con_id); + if (!koutput) + continue; + + idx = koutput_get_prop_idx(drmmode->fd, koutput, + DRM_MODE_PROP_ENUM, "link-status"); + + if ((idx > -1) && + (koutput->prop_values[idx] == DRM_MODE_LINK_STATUS_BAD)) { + /* the connector got a link failure, re-set the current mode */ + drmmode_set_mode_major(crtc, &crtc->mode, crtc->rotat...
2018 May 07
2
[PATCH 1/3] drm/connector: Add generic underscan properties
...drm_device *dev = connector->dev; > + struct drm_property *prop; > + > + if (!max_hborder || !max_vborder) > + return -EINVAL; > + > + if (!hweight32(mode_mask) || (mode_mask & ~GENMASK(nmodes - 1, 0))) > + return -EINVAL; > + > + prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, "underscan", > + hweight32(mode_mask)); > + if (!prop) > + return -ENOMEM; > + > + for (i = 0; i < ARRAY_SIZE(drm_underscan_mode_enum_list); i++) { > + const struct drm_prop_enum_list *entry; > + int ret; > + > + if (!(BIT(i) & mode_mask)) >...
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