Lines Matching refs:ctrl_fd
54 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl);
64 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl);
80 if (-1 == ioctl (my_obj->ctrl_fd, VIDIOC_QUERYCTRL, &queryctrl)) {
85 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
118 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
130 if(0 != (rc = mm_camera_util_g_ctrl(my_obj->ctrl_fd,
140 if(0 != (rc = mm_camera_util_g_ctrl(my_obj->ctrl_fd,
145 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
205 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
224 return mm_camera_util_s_ctrl(my_obj->ctrl_fd,
228 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, V4L2_CID_SHARPNESS,
231 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, V4L2_CID_CONTRAST,
234 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, V4L2_CID_SATURATION,
237 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, V4L2_CID_BRIGHTNESS,
242 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_ISO,
245 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, V4L2_CID_ZOOM_ABSOLUTE,
248 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_LUMA_ADAPTATION,
255 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_HJR, *((int *)(parm->p_value)));
421 rc = mm_camera_util_private_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_CTRL_CMD,
444 rc = mm_camera_util_private_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_CTRL_CMD,
728 rc = ioctl(my_obj->ctrl_fd, VIDIOC_UNSUBSCRIBE_EVENT, &sub);
731 rc = ioctl(my_obj->ctrl_fd, VIDIOC_UNSUBSCRIBE_EVENT, &sub);
742 rc = ioctl(my_obj->ctrl_fd, VIDIOC_SUBSCRIBE_EVENT, &sub);
747 rc = ioctl(my_obj->ctrl_fd, VIDIOC_SUBSCRIBE_EVENT, &sub);
984 //rc = mm_camera_dev_open(&my_obj->ctrl_fd, dev_name);
989 my_obj->ctrl_fd = open(dev_name,O_RDWR | O_NONBLOCK);
990 ALOGV("%s: ctrl_fd = %d", __func__, my_obj->ctrl_fd);
992 if((my_obj->ctrl_fd > 0) || (errno != EIO) || (n_try <= 0 )) {
1003 if (my_obj->ctrl_fd <= 0) {
1030 close(my_obj->ctrl_fd);
1031 my_obj->ctrl_fd = -1;
1035 /* set ctrl_fd to be the mem_mapping fd */
1036 rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
1041 close(my_obj->ctrl_fd);
1043 my_obj->ctrl_fd = -1;
1048 rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd,
1063 close(my_obj->ctrl_fd);
1065 my_obj->ctrl_fd = -1;
1076 CDBG("%s: '%s', ctrl_fd=%d,op_mode=%d,rc=%d\n",
1077 __func__, dev_name, my_obj->ctrl_fd, my_obj->op_mode, rc);
1096 if(my_obj->ctrl_fd > 0) {
1097 rc = close(my_obj->ctrl_fd);
1100 CDBG("%s: !!!!FATAL ERROR!!!! ctrl_fd = %d, rc = %d",
1101 __func__, my_obj->ctrl_fd, rc);
1103 my_obj->ctrl_fd = 0;