msm: vidc: Enhance HW capabilities parsing
- HW sends all the capabilities in SYS_INIT_DONE only. Hence
remove the parsing from SESSION_INIT_DONE.
- Add parsing logic for new capabilities.
CRs-Fixed: 2006193
Change-Id: I08484995f3437806751aa37c4b036f7ab42b371c
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
diff --git a/drivers/media/platform/msm/vidc/vidc_hfi_helper.h b/drivers/media/platform/msm/vidc/vidc_hfi_helper.h
index a552992..6863d5e 100644
--- a/drivers/media/platform/msm/vidc/vidc_hfi_helper.h
+++ b/drivers/media/platform/msm/vidc/vidc_hfi_helper.h
@@ -372,6 +372,23 @@
#define HFI_CAPABILITY_LCU_SIZE (HFI_COMMON_BASE + 0x14)
#define HFI_CAPABILITY_HIER_P_HYBRID_NUM_ENH_LAYERS (HFI_COMMON_BASE + 0x15)
#define HFI_CAPABILITY_MBS_PER_SECOND_POWERSAVE (HFI_COMMON_BASE + 0x16)
+#define HFI_CAPABILITY_EXTRADATA (HFI_COMMON_BASE + 0X17)
+#define HFI_CAPABILITY_PROFILE (HFI_COMMON_BASE + 0X18)
+#define HFI_CAPABILITY_LEVEL (HFI_COMMON_BASE + 0X19)
+#define HFI_CAPABILITY_I_FRAME_QP (HFI_COMMON_BASE + 0X20)
+#define HFI_CAPABILITY_P_FRAME_QP (HFI_COMMON_BASE + 0X21)
+#define HFI_CAPABILITY_B_FRAME_QP (HFI_COMMON_BASE + 0X22)
+#define HFI_CAPABILITY_RATE_CONTROL_MODES (HFI_COMMON_BASE + 0X23)
+#define HFI_CAPABILITY_BLUR_WIDTH (HFI_COMMON_BASE + 0X24)
+#define HFI_CAPABILITY_BLUR_HEIGHT (HFI_COMMON_BASE + 0X25)
+#define HFI_CAPABILITY_SLICE_DELIVERY_MODES (HFI_COMMON_BASE + 0X26)
+#define HFI_CAPABILITY_SLICE_BYTE (HFI_COMMON_BASE + 0X27)
+#define HFI_CAPABILITY_SLICE_MB (HFI_COMMON_BASE + 0X28)
+#define HFI_CAPABILITY_SECURE (HFI_COMMON_BASE + 0X29)
+#define HFI_CAPABILITY_MAX_NUM_B_FRAMES (HFI_COMMON_BASE + 0X2A)
+#define HFI_CAPABILITY_MAX_VIDEOCORES (HFI_COMMON_BASE + 0X2B)
+#define HFI_CAPABILITY_MAX_WORKMODES (HFI_COMMON_BASE + 0X2C)
+#define HFI_CAPABILITY_UBWC_CR_STATS (HFI_COMMON_BASE + 0X2D)
struct hfi_capability_supported {
u32 capability_type;