msm: cvp: Support new HFI FLUSH MSG value

Change is to support both deprecated FLUSH MSG value and new
value in kernel before new HFI FLUSH MSG value released.

Change-Id: I376bb58f6f9625e692a814836f276c9c98c164d4
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen 2020-06-01 15:33:31 -07:00
commit d2241c8215
2 changed files with 4 additions and 1 deletions

View file

@ -146,8 +146,10 @@
(HFI_MSG_SESSION_CVP_START + 0x037)
#define HFI_MSG_SESSION_CVP_RELEASE_PERSIST_BUFFERS\
(HFI_MSG_SESSION_CVP_START + 0x038)
#define HFI_MSG_SESSION_CVP_FLUSH\
#define HFI_MSG_SESSION_CVP_FLUSH_DEPRECATE\
(HFI_CMD_SESSION_CVP_START + 0x03A)
#define HFI_MSG_SESSION_CVP_FLUSH\
(HFI_MSG_SESSION_CVP_START + 0x03A)
#define CVP_IFACEQ_MAX_PKT_SIZE 1024
#define CVP_IFACEQ_MED_PKT_SIZE 768

View file

@ -648,6 +648,7 @@ int cvp_hfi_process_msg_packet(u32 device_id, void *hdr,
pkt_func = (pkt_func_def)hfi_process_session_abort_done;
break;
case HFI_MSG_SESSION_CVP_FLUSH:
case HFI_MSG_SESSION_CVP_FLUSH_DEPRECATE:
pkt_func = (pkt_func_def)hfi_process_session_flush_done;
break;
case HFI_MSG_SESSION_CVP_OPERATION_CONFIG: