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

Commit 2d03b3fc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: acquire init_frame_drop from userspace"

parents 7d8761e7 15ccc24d
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -570,6 +570,7 @@ static int ais_ife_csid_config_rdi_path(
	path_cfg->end_line = res->in_cfg.crop_bottom;
	path_cfg->end_line = res->in_cfg.crop_bottom;
	path_cfg->decode_fmt = res->in_cfg.decode_format;
	path_cfg->decode_fmt = res->in_cfg.decode_format;
	path_cfg->plain_fmt = res->in_cfg.pack_type;
	path_cfg->plain_fmt = res->in_cfg.pack_type;
	path_cfg->init_frame_drop = res->in_cfg.init_frame_drop;


	if (path_cfg->decode_fmt == 0xF)
	if (path_cfg->decode_fmt == 0xF)
		path_cfg->pix_enable = false;
		path_cfg->pix_enable = false;
@@ -822,8 +823,6 @@ static int ais_ife_csid_enable_rdi_path(
	csid_reg = csid_hw->csid_info->csid_reg;
	csid_reg = csid_hw->csid_info->csid_reg;
	soc_info = &csid_hw->hw_info->soc_info;
	soc_info = &csid_hw->hw_info->soc_info;
	path_data = &csid_hw->rdi_cfg[id];
	path_data = &csid_hw->rdi_cfg[id];

	path_data->init_frame_drop = 1;
	path_data->sof_cnt = 0;
	path_data->sof_cnt = 0;


	/* Enable the required RDI interrupts */
	/* Enable the required RDI interrupts */
+1 −0
Original line number Original line Diff line number Diff line
@@ -270,6 +270,7 @@ struct ais_ife_rdi_in_cfg {
	uint32_t crop_bottom;
	uint32_t crop_bottom;
	uint32_t crop_left;
	uint32_t crop_left;
	uint32_t crop_right;
	uint32_t crop_right;
	uint32_t init_frame_drop;
	uint32_t reserved;
	uint32_t reserved;
};
};


+1 −1
Original line number Original line Diff line number Diff line
@@ -1137,7 +1137,7 @@ static int ais_vfe_dispatch_irq(struct cam_hw_info *vfe_hw,
	core_info = (struct ais_vfe_hw_core_info *)vfe_hw->core_info;
	core_info = (struct ais_vfe_hw_core_info *)vfe_hw->core_info;


	CAM_DBG(CAM_ISP, "VFE[%d] event %d",
	CAM_DBG(CAM_ISP, "VFE[%d] event %d",
		core_info->vfe_idx, work_data->evt_type);
		core_info->vfe_idx, p_work->evt_type);


	task = cam_req_mgr_workq_get_task(core_info->workq);
	task = cam_req_mgr_workq_get_task(core_info->workq);
	if (!task) {
	if (!task) {