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

Commit 14a45132 authored by Ruofei Ma's avatar Ruofei Ma Committed by Gerrit - the friendly Code Review server
Browse files

msm: cvp: Set default session type for kernel sessions



Set default session as DME for all kernel sessions.

Change-Id: I93201a9012f591a1103bc5873b1ea92d829c46dd
Signed-off-by: default avatarRuofei Ma <ruofeim@codeaurora.org>
parent c555fe48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ struct cvp_hfi_cmd_sys_get_property_packet {

enum HFI_SESSION_TYPE {
	HFI_SESSION_CV = 1,
	HFI_SESSION_LRME,
	HFI_SESSION_DME,
	HFI_SESSION_ODT,
	HFI_SESSION_FD
};
+3 −0
Original line number Diff line number Diff line
@@ -2133,6 +2133,9 @@ int msm_cvp_session_init(struct msm_cvp_inst *inst)
	inst->clk_data.sys_cache_bw = 1000;

	inst->prop.type = HFI_SESSION_CV;
	if (inst->session_type == MSM_CVP_KERNEL)
		inst->prop.type = HFI_SESSION_DME;

	inst->prop.kernel_mask = 0xFFFFFFFF;
	inst->prop.priority = 0;
	inst->prop.is_secure = 0;