mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
msm: cvp: Avoid releasing buffers during boot
CVP auto PIL opens CVP for early initialization. However session buffers were not created in that case. Avoid releasing buffers if session is created for auto PIL. Change-Id: I3339f1b865b0e106af0bbed47ad067e2d183e5b5 Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
parent
b38b5109bf
commit
5c420492ed
1 changed files with 3 additions and 3 deletions
|
|
@ -457,10 +457,10 @@ int msm_cvp_close(void *instance)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
msm_cvp_cleanup_instance(inst);
|
||||
|
||||
if (inst->session_type != MSM_CVP_BOOT)
|
||||
if (inst->session_type != MSM_CVP_BOOT) {
|
||||
msm_cvp_cleanup_instance(inst);
|
||||
msm_cvp_session_deinit(inst);
|
||||
}
|
||||
|
||||
rc = msm_cvp_comm_try_state(inst, MSM_CVP_CORE_UNINIT);
|
||||
if (rc) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue