Browse Source

msm: camera: jpeg: Fix jpeg output in kailua presil

Changed code to fix wrong resource type causing blank output.

CRs-Fixed: 2932495
Change-Id: I7512b9784a6699d466e88e6f68dfc7144673bab1
Signed-off-by: Suraj Dongre <[email protected]>
Suraj Dongre 3 years ago
parent
commit
56b320495d
1 changed files with 4 additions and 3 deletions
  1. 4 3
      drivers/cam_jpeg/jpeg_hw/cam_jpeg_hw_mgr.c

+ 4 - 3
drivers/cam_jpeg/jpeg_hw/cam_jpeg_hw_mgr.c

@@ -1015,14 +1015,15 @@ static int cam_jpeg_mgr_prepare_hw_update(void *hw_mgr_priv,
 				io_cfg_ptr[i].fence;
 				io_cfg_ptr[i].fence;
 			prepare_args->num_in_map_entries++;
 			prepare_args->num_in_map_entries++;
 		} else {
 		} else {
-			prepare_args->in_map_entries[k].resource_handle =
+			prepare_args->out_map_entries[k].resource_handle =
 				io_cfg_ptr[i].resource_type;
 				io_cfg_ptr[i].resource_type;
 			prepare_args->out_map_entries[k++].sync_id =
 			prepare_args->out_map_entries[k++].sync_id =
 				io_cfg_ptr[i].fence;
 				io_cfg_ptr[i].fence;
 			prepare_args->num_out_map_entries++;
 			prepare_args->num_out_map_entries++;
 		}
 		}
-		CAM_DBG(CAM_JPEG, "dir[%d]: %u, fence: %u",
-			i, io_cfg_ptr[i].direction, io_cfg_ptr[i].fence);
+		CAM_DBG(CAM_JPEG, "dir[%d]: %u, fence: %u resource_type %d ",
+			i, io_cfg_ptr[i].direction, io_cfg_ptr[i].fence,
+			io_cfg_ptr[i].resource_type);
 	}
 	}
 
 
 	rc = cam_jpeg_add_command_buffers(packet, prepare_args, ctx_data);
 	rc = cam_jpeg_add_command_buffers(packet, prepare_args, ctx_data);