mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 13:22:22 +08:00
camera_qcom2: use macros for link control operations (#22088)
old-commit-hash: ee5ef4dab25b638837fecae3fbb1c9acc615b65a
This commit is contained in:
@@ -733,7 +733,7 @@ static void camera_open(CameraState *s) {
|
||||
s->link_handle = req_mgr_link_info.link_hdl;
|
||||
|
||||
static struct cam_req_mgr_link_control req_mgr_link_control = {0};
|
||||
req_mgr_link_control.ops = 0;
|
||||
req_mgr_link_control.ops = CAM_REQ_MGR_LINK_ACTIVATE;
|
||||
req_mgr_link_control.session_hdl = s->session_handle;
|
||||
req_mgr_link_control.num_links = 1;
|
||||
req_mgr_link_control.link_hdls[0] = s->link_handle;
|
||||
@@ -828,7 +828,7 @@ static void camera_close(CameraState *s) {
|
||||
// link control stop
|
||||
LOG("-- Stop link control");
|
||||
static struct cam_req_mgr_link_control req_mgr_link_control = {0};
|
||||
req_mgr_link_control.ops = 1;
|
||||
req_mgr_link_control.ops = CAM_REQ_MGR_LINK_DEACTIVATE;
|
||||
req_mgr_link_control.session_hdl = s->session_handle;
|
||||
req_mgr_link_control.num_links = 1;
|
||||
req_mgr_link_control.link_hdls[0] = s->link_handle;
|
||||
|
||||
Reference in New Issue
Block a user