Browse Source

video: driver: reset pending_release flag

When fw sends FBD with release done flag,
reset driver pending_release flag. Without
this fix, a buffer will wrongly marked as
pending_release although release done was
already arrived from fw leading to issues
when trying to mark buffer as release_eligible
or when sending release command to fw.

Change-Id: Ib6b9f6233b133442057f3938159f6f0f33fc90f8
Signed-off-by: Darshana Patil <[email protected]>
Darshana Patil 2 years ago
parent
commit
6aaa2d38dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver/vidc/src/venus_hfi_response.c

+ 1 - 0
driver/vidc/src/venus_hfi_response.c

@@ -1414,6 +1414,7 @@ int handle_release_output_buffer(struct msm_vidc_inst *inst,
 	}
 
 	buf->attr &= ~MSM_VIDC_ATTR_READ_ONLY;
+	buf->attr &= ~MSM_VIDC_ATTR_PENDING_RELEASE;
 	print_vidc_buffer(VIDC_LOW, "low ", "release done", inst, buf);
 
 	return rc;