소스 검색

video: driver: set firmware debug log cmd in session open

Currently firmware debug log command is sent only in
system initialization command which is not sufficient as
system init cmd will be sent only once during system bootup
and hence set firmware debug log cmd in every session open.

Change-Id: I5d6cf781ac8f168afd182777a6b8a0579db22d09
Signed-off-by: Maheshwar Ajja <[email protected]>
Maheshwar Ajja 4 년 전
부모
커밋
0e8d5a08a3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      driver/vidc/src/venus_hfi.c

+ 3 - 0
driver/vidc/src/venus_hfi.c

@@ -2792,6 +2792,9 @@ int venus_hfi_session_open(struct msm_vidc_inst *inst)
 		goto unlock;
 	}
 
+	__sys_set_debug(core,
+		(msm_vidc_debug & FW_LOGMASK) >> FW_LOGSHIFT);
+
 	rc = hfi_packet_session_command(inst,
 				HFI_CMD_OPEN,
 				(HFI_HOST_FLAGS_RESPONSE_REQUIRED |