static int fimc_is_scc_video_s_ctrl(struct file *file, void *priv, struct v4l2_control *ctrl) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; struct fimc_is_device_ischain *device; BUG_ON(!vctx); BUG_ON(!GET_DEVICE(vctx)); BUG_ON(!ctrl); mdbgv_scc("%s\n", vctx, __func__); device = GET_DEVICE(vctx); switch (ctrl->id) { default: ret = fimc_is_video_s_ctrl(file, vctx, ctrl); if (ret) { err("fimc_is_video_s_ctrl is fail(%d)", ret); goto p_err; } break; } p_err: return ret; }
static int fimc_is_dis_video_s_ctrl(struct file *file, void *priv, struct v4l2_control *ctrl) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; struct fimc_is_device_ischain *device; BUG_ON(!vctx); BUG_ON(!GET_DEVICE(vctx)); BUG_ON(!ctrl); mdbgv_dis("%s\n", vctx, __func__); device = GET_DEVICE(vctx); switch (ctrl->id) { case V4L2_CID_IS_FORCE_DONE: set_bit(FIMC_IS_GROUP_REQUEST_FSTOP, &device->group_dis.state); break; default: ret = fimc_is_video_s_ctrl(file, vctx, ctrl); if (ret) { err("fimc_is_video_s_ctrl is fail(%d)", ret); goto p_err; } break; } p_err: return ret; }