drm_helper_probe_single_connector_modes
Prev | Modeset Helper Functions Reference | Next

## Name

drm_helper_probe_single_connector_modes — get complete set of display modes

## Synopsis

`int drm_helper_probe_single_connector_modes (` | struct drm_connector * connector,
| uint32_t maxX,
| uint32_t maxY`)`;

## Arguments

`connector`

  connector to probe

`maxX`

  max width for modes

`maxY`

  max height for modes

## LOCKING

Caller must hold mode config lock.

Based on the helper callbacks implemented by `connector` try to detect all valid modes. Modes will first be added to the connector's probed_modes list, then culled (based on validity and the `maxX`, `maxY` parameters) and put into the normal modes list.

Intended to be use as a generic implementation of the ->`fill_modes` `connector` vfunc for drivers that use the crtc helpers for output mode filtering and detection.

## RETURNS

Number of modes found on `connector`.

Prev | Up | Next
drm_helper_move_panel_connectors_to_head | Home | drm_helper_encoder_in_use