Loading drivers/video/msm/mdss/mdss_mdp_rotator.c +11 −11 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, struct mdss_mdp_data *dst_data) { struct mdss_mdp_pipe *rot_pipe = NULL; struct mdss_mdp_ctl *ctl; struct mdss_mdp_ctl *orig_ctl, *rot_ctl; int ret; if (!rot || !rot->ref_cnt) Loading @@ -218,20 +218,20 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, pr_debug("queue rotator pnum=%d\n", rot_pipe->num); ctl = rot_pipe->mixer->ctl; if (ctl->shared_lock) mutex_lock(ctl->shared_lock); orig_ctl = rot_pipe->mixer->ctl; if (orig_ctl->shared_lock) mutex_lock(orig_ctl->shared_lock); ctl = mdss_mdp_ctl_mixer_switch(ctl, rot_ctl = mdss_mdp_ctl_mixer_switch(orig_ctl, MDSS_MDP_WB_CTL_TYPE_BLOCK); if (!ctl) { if (!rot_ctl) { ret = -EINVAL; goto error; } else { rot->pipe->mixer = ctl->mixer_left; rot->pipe->mixer = rot_ctl->mixer_left; } if (rot->params_changed || ctl->mdata->mixer_switched) { if (rot->params_changed || rot_ctl->mdata->mixer_switched) { rot->params_changed = 0; rot_pipe->flags = rot->flags; rot_pipe->src_fmt = mdss_mdp_get_format_params(rot->format); Loading @@ -257,12 +257,12 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, goto error; } ret = mdss_mdp_rotator_kickoff(ctl, rot, dst_data); ret = mdss_mdp_rotator_kickoff(rot_ctl, rot, dst_data); return ret; error: if (ctl->shared_lock) mutex_unlock(ctl->shared_lock); if (orig_ctl->shared_lock) mutex_unlock(orig_ctl->shared_lock); return ret; } Loading Loading
drivers/video/msm/mdss/mdss_mdp_rotator.c +11 −11 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, struct mdss_mdp_data *dst_data) { struct mdss_mdp_pipe *rot_pipe = NULL; struct mdss_mdp_ctl *ctl; struct mdss_mdp_ctl *orig_ctl, *rot_ctl; int ret; if (!rot || !rot->ref_cnt) Loading @@ -218,20 +218,20 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, pr_debug("queue rotator pnum=%d\n", rot_pipe->num); ctl = rot_pipe->mixer->ctl; if (ctl->shared_lock) mutex_lock(ctl->shared_lock); orig_ctl = rot_pipe->mixer->ctl; if (orig_ctl->shared_lock) mutex_lock(orig_ctl->shared_lock); ctl = mdss_mdp_ctl_mixer_switch(ctl, rot_ctl = mdss_mdp_ctl_mixer_switch(orig_ctl, MDSS_MDP_WB_CTL_TYPE_BLOCK); if (!ctl) { if (!rot_ctl) { ret = -EINVAL; goto error; } else { rot->pipe->mixer = ctl->mixer_left; rot->pipe->mixer = rot_ctl->mixer_left; } if (rot->params_changed || ctl->mdata->mixer_switched) { if (rot->params_changed || rot_ctl->mdata->mixer_switched) { rot->params_changed = 0; rot_pipe->flags = rot->flags; rot_pipe->src_fmt = mdss_mdp_get_format_params(rot->format); Loading @@ -257,12 +257,12 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, goto error; } ret = mdss_mdp_rotator_kickoff(ctl, rot, dst_data); ret = mdss_mdp_rotator_kickoff(rot_ctl, rot, dst_data); return ret; error: if (ctl->shared_lock) mutex_unlock(ctl->shared_lock); if (orig_ctl->shared_lock) mutex_unlock(orig_ctl->shared_lock); return ret; } Loading