v4l2_pipeline_link_notify(9) Link management notification callback

SYNOPSIS

int v4l2_pipeline_link_notify(struct media_link * link, u32 flags, unsigned int notification);

ARGUMENTS

link

The link

flags

New link flags that will be applied

notification

The link's state change notification type (MEDIA_DEV_NOTIFY_*)

DESCRIPTION

React to link management on powered pipelines by updating the use count of all entities in the source and sink sides of the link. Entities are powered on or off accordingly. The use of this function should be paired with v4l2_pipeline_pm_use.

Return 0 on success or a negative error code on failure. Powering entities off is assumed to never fail. This function will not fail for disconnection events.

COPYRIGHT