Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcae6f67 authored by Shadab Naseem's avatar Shadab Naseem
Browse files

msm: vidc: Log marker for ConCam boot time calculation



Mark the first encoded frame in log for ConCam boot time
calculation.

Change-Id: I65cf409b8f4182ec9acb1d2988a34fa241ef1eed
Signed-off-by: default avatarShadab Naseem <snaseem@codeaurora.org>
parent 2233d875
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <soc/qcom/subsystem_restart.h>
#include <soc/qcom/boot_stats.h>
#include <asm/div64.h>
#include "msm_vidc_common.h"
#include "vidc_hfi_api.h"
@@ -1986,6 +1987,7 @@ static void handle_fbd(enum hal_command_response cmd, void *data)
	enum hal_buffer buffer_type;
	int extra_idx = 0;
	int64_t time_usec = 0;
	static int first_enc_frame = 1;

	if (!response) {
		dprintk(VIDC_ERR, "Invalid response from vidc_hal\n");
@@ -2115,6 +2117,11 @@ static void handle_fbd(enum hal_command_response cmd, void *data)
				vb->v4l2_planes[extra_idx].bytesused,
				vb->v4l2_planes[extra_idx].length);
		}
		if (first_enc_frame == 1) {
			boot_stats_init();
			pr_debug("KPI: First Encoded frame received\n");
			first_enc_frame++;
		}
		dprintk(VIDC_DBG,
		"Got fbd from hal: device_addr: %pa, alloc: %d, filled: %d, offset: %d, ts: %lld, flags: %#x, crop: %d %d %d %d, pic_type: %#x, mark_data: %#x\n",
		&fill_buf_done->packet_buffer1, fill_buf_done->alloc_len1,