提交 f4a87d54 编写于 作者: T Tomi Valkeinen 提交者: Mauro Carvalho Chehab

media: ti-vpe: cal: add embedded data support

Add support for capturing embedded data from the sensor. The only
difference with capturing pixel data and embedded data is that we need
to ensure the PIX PROC is disabled for embedded data so that CAL doesn't
repack the data.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 71e3a181
...@@ -473,14 +473,17 @@ int cal_ctx_prepare(struct cal_ctx *ctx) ...@@ -473,14 +473,17 @@ int cal_ctx_prepare(struct cal_ctx *ctx)
{ {
int ret; int ret;
ret = cal_reserve_pix_proc(ctx->cal); ctx->use_pix_proc = !ctx->fmtinfo->meta;
if (ret < 0) {
ctx_err(ctx, "Failed to reserve pix proc: %d\n", ret);
return ret;
}
ctx->pix_proc = ret; if (ctx->use_pix_proc) {
ctx->use_pix_proc = true; ret = cal_reserve_pix_proc(ctx->cal);
if (ret < 0) {
ctx_err(ctx, "Failed to reserve pix proc: %d\n", ret);
return ret;
}
ctx->pix_proc = ret;
}
return 0; return 0;
} }
......
...@@ -88,6 +88,7 @@ struct cal_format_info { ...@@ -88,6 +88,7 @@ struct cal_format_info {
u32 code; u32 code;
/* Bits per pixel */ /* Bits per pixel */
u8 bpp; u8 bpp;
bool meta;
}; };
/* buffer for one video frame */ /* buffer for one video frame */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册