msm📷isp: Sync Raw & Pixel frame IDs in case of offline ISP

Incase of offline isp Raw frame ID need to synchronized  with
pixel frame id.

Change-Id: I95280fd96855a4dedb9cb0c64014e08beb4661f0
Signed-off-by: Rajeev Kulkarni <krajeev@codeaurora.org>
This commit is contained in:
Rajeev Kulkarni 2015-10-01 15:11:28 -07:00 committed by Gerrit - the friendly Code Review server
parent 2b2d38068f
commit 062e988276
2 changed files with 12 additions and 1 deletions

View File

@ -2343,7 +2343,17 @@ static int msm_isp_start_axi_stream(struct vfe_device *vfe_dev,
if (SRC_TO_INTF(stream_info->stream_src) >= VFE_RAW_0 &&
SRC_TO_INTF(stream_info->stream_src) <
VFE_SRC_MAX) {
vfe_dev->axi_data.src_info[SRC_TO_INTF(
/* Incase PIX and RDI streams are part of same
* session, this will ensure RDI stream will
* have same frame id as of PIX stream
*/
if (stream_cfg_cmd->sync_frame_id_src)
vfe_dev->axi_data.src_info[SRC_TO_INTF(
stream_info->stream_src)].frame_id =
vfe_dev->axi_data.src_info[VFE_PIX_0]
.frame_id;
else
vfe_dev->axi_data.src_info[SRC_TO_INTF(
stream_info->stream_src)].frame_id = 0;
vfe_dev->axi_data.src_info[SRC_TO_INTF(
stream_info->stream_src)].active = 1;

View File

@ -295,6 +295,7 @@ struct msm_vfe_axi_stream_cfg_cmd {
uint8_t num_streams;
uint32_t stream_handle[VFE_AXI_SRC_MAX];
enum msm_vfe_axi_stream_cmd cmd;
uint8_t sync_frame_id_src;
};
enum msm_vfe_axi_stream_update_type {