Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad92d1fc authored by Krishna Chaitanya Devarakonda's avatar Krishna Chaitanya Devarakonda
Browse files

msm: mdss: Set default fps for dedicated WB



In targets with dedicated writeback paths, the FPS isn't
set properly for BW calculations for WB cases. Setting
the FPS to default frame rate, for such cases.

Change-Id: I83c545f3344ee5fc3d356f0e08d3c20453e22b31
Signed-off-by: default avatarKrishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
parent 1a5123de
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -703,6 +703,7 @@ int mdss_mdp_get_panel_params(struct mdss_mdp_pipe *pipe,
		*v_total = mixer->height;
		*xres = mixer->width;
		*h_total = mixer->width;
		*fps = DEFAULT_FRAME_RATE;
	}

	return 0;
@@ -714,7 +715,8 @@ int mdss_mdp_get_pipe_overlap_bw(struct mdss_mdp_pipe *pipe,
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();
	struct mdss_mdp_mixer *mixer = pipe->mixer_left;
	struct mdss_rect src, dst;
	u32 v_total, fps, h_total, xres, src_h;
	u32 v_total = 0, h_total = 0, xres = 0, src_h = 0;
	u32 fps = DEFAULT_FRAME_RATE;
	*quota = 0;
	*quota_nocr = 0;