mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
disp: msm: Support ACL when setting panel param
Support ACL when setting panel param, so user-mode can control the enable/disable of ACL property. Port form 9f9c112 Change-Id: I6db8673f88fb9fbc85e98f15af654b03706e586f Signed-off-by: shuoyan <shuoyan@motorola.com> Reviewed-on: https://gerrit.mot.com/1697583 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
05b1f38038
commit
1245a50c12
1 changed files with 25 additions and 7 deletions
|
|
@ -814,7 +814,20 @@ static int dsi_panel_set_hbm(struct dsi_panel *panel,
|
|||
{
|
||||
int rc = 0;
|
||||
|
||||
pr_info("(%d)\n", param_info->value);
|
||||
pr_info("Set HBM to (%d)\n", param_info->value);
|
||||
rc = dsi_panel_send_param_cmd(panel, param_info);
|
||||
if (rc < 0)
|
||||
DSI_ERR("%s: failed to send param cmds. ret=%d\n", __func__, rc);
|
||||
|
||||
return rc;
|
||||
};
|
||||
|
||||
static int dsi_panel_set_acl(struct dsi_panel *panel,
|
||||
struct msm_param_info *param_info)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
pr_info("Set ACL to (%d)\n", param_info->value);
|
||||
rc = dsi_panel_send_param_cmd(panel, param_info);
|
||||
if (rc < 0)
|
||||
DSI_ERR("%s: failed to send param cmds. ret=%d\n", __func__, rc);
|
||||
|
|
@ -834,12 +847,17 @@ int dsi_panel_set_param(struct dsi_panel *panel,
|
|||
|
||||
DSI_DEBUG("%s+\n", __func__);
|
||||
|
||||
if (param_info->param_idx == PARAM_HBM_ID)
|
||||
rc = dsi_panel_set_hbm(panel, param_info);
|
||||
else {
|
||||
DSI_ERR("%s: Invalid set_param type=%d\n",
|
||||
__func__, param_info->param_idx);
|
||||
rc = -EINVAL;
|
||||
switch (param_info->param_idx) {
|
||||
case PARAM_HBM_ID :
|
||||
dsi_panel_set_hbm(panel, param_info);
|
||||
break;
|
||||
case PARAM_ACL_ID :
|
||||
dsi_panel_set_acl(panel, param_info);
|
||||
break;
|
||||
default:
|
||||
DSI_ERR("%s: Invalid set_param type=%d\n",
|
||||
__func__, param_info->param_idx);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue