|
|
@ -493,7 +493,7 @@ void enqueue_buffer(struct CameraState *s, int i, bool dp) { |
|
|
|
struct cam_mem_mgr_map_cmd mem_mgr_map_cmd = {0}; |
|
|
|
struct cam_mem_mgr_map_cmd mem_mgr_map_cmd = {0}; |
|
|
|
mem_mgr_map_cmd.mmu_hdls[0] = s->multi_cam_state->device_iommu; |
|
|
|
mem_mgr_map_cmd.mmu_hdls[0] = s->multi_cam_state->device_iommu; |
|
|
|
mem_mgr_map_cmd.num_hdl = 1; |
|
|
|
mem_mgr_map_cmd.num_hdl = 1; |
|
|
|
mem_mgr_map_cmd.flags = 1; |
|
|
|
mem_mgr_map_cmd.flags = CAM_MEM_FLAG_HW_READ_WRITE; |
|
|
|
mem_mgr_map_cmd.fd = s->buf.camera_bufs[i].fd; |
|
|
|
mem_mgr_map_cmd.fd = s->buf.camera_bufs[i].fd; |
|
|
|
ret = cam_control(s->multi_cam_state->video0_fd, CAM_REQ_MGR_MAP_BUF, &mem_mgr_map_cmd, sizeof(mem_mgr_map_cmd)); |
|
|
|
ret = cam_control(s->multi_cam_state->video0_fd, CAM_REQ_MGR_MAP_BUF, &mem_mgr_map_cmd, sizeof(mem_mgr_map_cmd)); |
|
|
|
// LOGD("map buf req: (fd: %d) 0x%x %d", s->bufs[i].fd, mem_mgr_map_cmd.out.buf_handle, ret);
|
|
|
|
// LOGD("map buf req: (fd: %d) 0x%x %d", s->bufs[i].fd, mem_mgr_map_cmd.out.buf_handle, ret);
|
|
|
|