Skip to content

Commit

Permalink
display + dts: optimize dc dim tuning
Browse files Browse the repository at this point in the history
Use interpolation for most part.
  • Loading branch information
RealJohnGalt authored and Codecity001 committed Mar 13, 2023
1 parent 4c868ce commit 58e06c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 49 deletions.
17 changes: 1 addition & 16 deletions arch/arm64/boot/dts/qcom/dsi-panel-samsung_oneplus_dsc.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,7 @@
/* brightness, alpha */
0 255
1 224
2 213
3 211
4 208
5 206
6 203
8 200
10 196
15 186
20 176
30 160
45 139
70 114
100 90
150 56
227 14
260 0
1023 0
>;
qcom,mdss-pan-physical-width-dimension = <71>;
qcom,mdss-pan-physical-height-dimension = <154>;
Expand Down
17 changes: 1 addition & 16 deletions arch/arm64/boot/dts/qcom/dsi-panel-samsung_s6e3fc2x01.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,7 @@
/* brightness, alpha */
0 255
1 224
2 213
3 211
4 208
5 206
6 203
8 200
10 196
15 186
20 176
30 160
45 139
70 114
100 90
150 56
227 14
260 0
1023 0
>;
/* HDR Setting */
qcom,mdss-dsi-panel-hdr-enabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,7 @@
/* brightness, alpha */
0 255
1 224
2 213
3 211
4 208
5 206
6 203
8 200
10 196
15 186
20 176
30 160
45 139
70 114
100 90
150 56
227 14
260 0
1023 0
>;
qcom,mdss-brightness-default-val = <160>;
qcom,mdss-brightness-max-level = <1023>;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ static int dsi_panel_update_backlight(struct dsi_panel *panel,
}

if (panel->dc_dim && bl_lvl != 0)
bl_lvl = op_dimlayer_bl_alpha;
bl_lvl = 1023;

if (panel->bl_config.bl_high2bit) {
if (HBM_flag == true)
Expand Down

0 comments on commit 58e06c2

Please sign in to comment.