• Eugen Hristev's avatar
    media: microchip: microchip-isc: prepare for media controller support · 920b2665
    Eugen Hristev authored
    Prepare the support for media-controller.
    This means that the capabilities of the driver have changed and now it's
    capable of media controller operations.
    The driver will register its media device, and add the video entity to this
    media device. The subdevices are registered to the same media device.
    The ISC will have a base entity which is auto-detected as
    microchip_isc_base.
    It will also register a subdevice that allows cropping of the incoming
    frame to the maximum frame size supported by the ISC.
    The ISC will create a link between the subdevice that is asynchronously
    registered and the microchip_isc_scaler entity.
    Then, the microchip_isc_scaler and microchip_isc_base are connected
    through another link.
    This patch does not change the previous capability of the driver, the
    fact that the format is still being propagated from the top video node
    down to the sensor.
    Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
    Reviewed-by: default avatarJacopo Mondi <jacopo@jmondi.org>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
    920b2665
microchip-sama5d2-isc.c 18 KB