Commit f4a87d54 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Mauro Carvalho Chehab
Browse files

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: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 71e3a181
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -473,6 +473,9 @@ int cal_ctx_prepare(struct cal_ctx *ctx)
{
	int ret;

	ctx->use_pix_proc = !ctx->fmtinfo->meta;

	if (ctx->use_pix_proc) {
		ret = cal_reserve_pix_proc(ctx->cal);
		if (ret < 0) {
			ctx_err(ctx, "Failed to reserve pix proc: %d\n", ret);
@@ -480,7 +483,7 @@ int cal_ctx_prepare(struct cal_ctx *ctx)
		}

		ctx->pix_proc = ret;
	ctx->use_pix_proc = true;
	}

	return 0;
}
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ struct cal_format_info {
	u32	code;
	/* Bits per pixel */
	u8	bpp;
	bool	meta;
};

/* buffer for one video frame */