diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-04-26 09:02:40 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-17 09:11:57 +0200 |
commit | 7a12903182c8c0e3ba61eb9c5bdf160f337686c5 (patch) | |
tree | 709ebb1ee6b8f347b7bb25b601acec33aab45d6e /drivers/media/platform/ti/cal/cal.h | |
parent | 897c45df291ff063d6a0acb20b3a0c276c6adf6a (diff) | |
download | linux-7a12903182c8c0e3ba61eb9c5bdf160f337686c5.tar.gz |
media: ti: cal: use frame desc to get vc and dt
Use get_frame_desc() to get the frame desc from the connected source,
and use the provided virtual channel and datatype instead of hardcoded
ones.
get_frame_desc() can contain multiple streams, but as we don't support
multiple streams yet, we will just always use the first stream.
If the source doesn't support get_frame_desc(), fall back to the
previous method of always capturing virtual channel 0 and any datatype.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/ti/cal/cal.h')
-rw-r--r-- | drivers/media/platform/ti/cal/cal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/ti/cal/cal.h b/drivers/media/platform/ti/cal/cal.h index 527e22d022f3..61409ddced98 100644 --- a/drivers/media/platform/ti/cal/cal.h +++ b/drivers/media/platform/ti/cal/cal.h @@ -323,6 +323,8 @@ const struct cal_format_info *cal_format_by_code(u32 code); void cal_quickdump_regs(struct cal_dev *cal); +int cal_camerarx_get_remote_frame_desc(struct cal_camerarx *phy, + struct v4l2_mbus_frame_desc *desc); void cal_camerarx_disable(struct cal_camerarx *phy); void cal_camerarx_i913_errata(struct cal_camerarx *phy); struct cal_camerarx *cal_camerarx_create(struct cal_dev *cal, |