Browse Source

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 năm trước cách đây
mục cha
commit
0e8d5a08a3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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 |