• Laurent Pinchart's avatar
    media: renesas: vsp1: Replace vsp1_partition_window with v4l2_rect · 41be7fcc
    Laurent Pinchart authored
    The vsp1_partition_window structure is used to store the horizontal size
    of a partition window. This is all that is currently needed, as all
    partitions span the whole image vertically. The horizontal window size
    is retrieved in the .configure_partition() handler from the
    vsp1_partition_window structure, and the vertical window size from the
    subdev state.
    
    Accessing the subdev state in the .configure_partition() handler is
    problematic in the context of moving to the V4L2 subdev active state
    API, as .configure_partition() is called in non-interruptable context,
    and the state lock can't be taken. To avoid this, start by storing the
    vertical size in the window, replacing the custom vsp1_partition_window
    structure with a v4l2_rect. Retrieving the vertical size from the window
    in .configure_partition() will be done in a subsequent change.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    Reviewed-by: default avatarJacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
    41be7fcc
vsp1_wpf.c 15.7 KB