From 0f4227f42b2a3610d6e26d5ad4f249fbf77f7dda Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 29 Aug 2021 08:43:50 +0800 Subject: [PATCH] qcom2/enqueue_buffer: use macro CAM_MEM_FLAG_HW_READ_WRITE (#22060) --- selfdrive/camerad/cameras/camera_qcom2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/camerad/cameras/camera_qcom2.cc b/selfdrive/camerad/cameras/camera_qcom2.cc index 279d3694b5..b614cfc669 100644 --- a/selfdrive/camerad/cameras/camera_qcom2.cc +++ b/selfdrive/camerad/cameras/camera_qcom2.cc @@ -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}; mem_mgr_map_cmd.mmu_hdls[0] = s->multi_cam_state->device_iommu; 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; 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);