media: ti-vpe: cal: Implement media controller centric API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 4 Mar 2021 13:45:21 +0000 (14:45 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 09:19:30 +0000 (10:19 +0100)
commit38e89e790fe27f131d7310f9020d577bf9d2527f
tree45ab4b9d580a8d0aa70958cfd3bb6d45ca2a2d01
parentb83209176d6892ea2e086d0f1d45fdd1cf5f8569
media: ti-vpe: cal: Implement media controller centric API

The CAL driver is video node centric, it controls the whole device
through the video device nodes. This limits the possible use cases as it
can't support sources that are more complex than a single subdev. To
support more complex hardware pipelines, implement support for the media
controller centric API. The exposed API can be selected through a module
parameter.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/ti-vpe/cal-camerarx.c
drivers/media/platform/ti-vpe/cal-video.c
drivers/media/platform/ti-vpe/cal.c
drivers/media/platform/ti-vpe/cal.h