Loading drivers/media/platform/msm/vidc/msm_vidc_common.c +10 −6 Original line number Diff line number Diff line Loading @@ -783,8 +783,16 @@ static void handle_event_change(enum command_response cmd, void *data) } msm_comm_init_dcvs_load(inst); rc = msm_vidc_check_session_supported(inst); if (!rc) if (!rc) { msm_vidc_queue_v4l2_event(inst, event); } else if (rc == -ENOTSUPP) { msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_UNSUPPORTED); } else if (rc == -EBUSY) { msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_OVERLOAD); } return; } else { dprintk(VIDC_ERR, Loading Loading @@ -4260,7 +4268,7 @@ static int msm_vidc_load_supported(struct msm_vidc_inst *inst) num_mbs_per_sec, inst->core->resources.max_load); msm_vidc_print_running_insts(inst->core); return -EINVAL; return -EBUSY; } } return 0; Loading Loading @@ -4432,8 +4440,6 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst) rc = msm_vidc_load_supported(inst); if (rc) { change_inst_state(inst, MSM_VIDC_CORE_INVALID); msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_OVERLOAD); dprintk(VIDC_WARN, "%s: Hardware is overloaded\n", __func__); return rc; Loading Loading @@ -4472,8 +4478,6 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst) } if (rc) { change_inst_state(inst, MSM_VIDC_CORE_INVALID); msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_UNSUPPORTED); dprintk(VIDC_ERR, "%s: Resolution unsupported\n", __func__); } Loading Loading
drivers/media/platform/msm/vidc/msm_vidc_common.c +10 −6 Original line number Diff line number Diff line Loading @@ -783,8 +783,16 @@ static void handle_event_change(enum command_response cmd, void *data) } msm_comm_init_dcvs_load(inst); rc = msm_vidc_check_session_supported(inst); if (!rc) if (!rc) { msm_vidc_queue_v4l2_event(inst, event); } else if (rc == -ENOTSUPP) { msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_UNSUPPORTED); } else if (rc == -EBUSY) { msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_OVERLOAD); } return; } else { dprintk(VIDC_ERR, Loading Loading @@ -4260,7 +4268,7 @@ static int msm_vidc_load_supported(struct msm_vidc_inst *inst) num_mbs_per_sec, inst->core->resources.max_load); msm_vidc_print_running_insts(inst->core); return -EINVAL; return -EBUSY; } } return 0; Loading Loading @@ -4432,8 +4440,6 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst) rc = msm_vidc_load_supported(inst); if (rc) { change_inst_state(inst, MSM_VIDC_CORE_INVALID); msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_OVERLOAD); dprintk(VIDC_WARN, "%s: Hardware is overloaded\n", __func__); return rc; Loading Loading @@ -4472,8 +4478,6 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst) } if (rc) { change_inst_state(inst, MSM_VIDC_CORE_INVALID); msm_vidc_queue_v4l2_event(inst, V4L2_EVENT_MSM_VIDC_HW_UNSUPPORTED); dprintk(VIDC_ERR, "%s: Resolution unsupported\n", __func__); } Loading