disp: msm: dp: remove usage of compression ratio enum from DP driver

As overall display driver is moving away from hard-coded compression
ratios, prepare the DP driver for the same by removing the usage of
the compression ratio enum.

Change-Id: I298db7d20baed8afec9f96dff8c7e950702bfec9
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
This commit is contained in:
Abhinav Kumar
2020-01-10 19:14:07 -08:00
committed by Gerrit - the friendly Code Review server
parent 64ee2c4d72
commit 27844b7b60
7 changed files with 51 additions and 72 deletions

View File

@@ -526,7 +526,7 @@ static int dp_mst_calc_pbn_mode(struct dp_display_mode *dp_mode)
bool dsc_en;
s64 pbn_fp;
dsc_en = dp_mode->timing.comp_info.comp_ratio ? true : false;
dsc_en = (dp_mode->timing.comp_info.comp_ratio > 1) ? true : false;
bpp = dsc_en ?
DSC_BPP(dp_mode->timing.comp_info.dsc_info.config)
: dp_mode->timing.bpp;