drm_primary_helper_disable
Prev | Plane Helper Reference | Next

## Name

drm_primary_helper_disable — Helper for primary plane disable

## Synopsis

`int drm_primary_helper_disable (` | struct drm_plane * plane`)`;

## Arguments

`plane`

  plane to disable

## Description

Provides a default plane disable handler for primary planes. This is handler is called in response to a userspace SetPlane operation on the plane with a NULL framebuffer parameter. It unconditionally fails the disable call with -EINVAL the only way to disable the primary plane without driver support is to disable the entier CRTC. Which does not match the plane ->disable hook.

Note that some hardware may be able to disable the primary plane without disabling the whole CRTC. Drivers for such hardware should provide their own disable handler that disables just the primary plane (and they'll likely need to provide their own update handler as well to properly re-enable a disabled primary plane).

## RETURNS

Unconditionally returns -EINVAL.

Prev | Up | Next
drm_primary_helper_update | Home | drm_primary_helper_destroy