1. NAME▲

drm_helper_probe_single_connector_modes - get complete set of display modes

2. SYNOPSIS ▲

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

3. ARGUMENTS ▲

connector
    connector to probe

maxX
    max width for modes

maxY
    max height for modes

4. 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 connectorAqs 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 ->probe connector callback for drivers that use the crtc helpers for output mode filtering and detection.

5. RETURNS ▲

Number of modes found on connector.

6. AUTHORS ▲

Jesse Barnes <>
Intel Corporation,
    Initial version

Laurent Pinchart <>
Ideas on board SPRL,
    Driver internals

7. COPYRIGHT ▲