diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2020-12-07 21:31:30 +0000 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2020-12-09 10:44:22 +0000 |
commit | 620c1a34fb6fb27efb4d15bb5f12c278619e7d6f (patch) | |
tree | 15dce9382c1d332649fec075bc33b9de603771a2 | |
parent | aab268f48aaa993b88e0b1ee8af4984be32f92d8 (diff) |
venus: v6 ifs that are requiredtracking-qcomlt-sm8250-09_12_20+venus-working
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r-- | drivers/media/platform/qcom/venus/helpers.c | 7 | ||||
-rw-r--r-- | drivers/media/platform/qcom/venus/hfi_venus.c | 2 | ||||
-rw-r--r-- | drivers/media/platform/qcom/venus/pm_helpers.c | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index ef60ee2a1088..3e83fb27ab12 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -285,7 +285,7 @@ int venus_helper_intbufs_alloc(struct venus_inst *inst) size_t arr_sz, i; int ret; - if (IS_V4(inst->core)) { + if (IS_V4(inst->core) || IS_V6(inst->core)) { arr_sz = ARRAY_SIZE(intbuf_types_4xx); intbuf = intbuf_types_4xx; } else { @@ -488,7 +488,7 @@ static bool is_dynamic_bufmode(struct venus_inst *inst) * v4 doesn't send BUFFER_ALLOC_MODE_SUPPORTED property and supports * dynamic buffer mode by default for HFI_BUFFER_OUTPUT/OUTPUT2. */ - if (IS_V4(core)) + if (IS_V4(core) || IS_V6(core)) return true; caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); @@ -1085,6 +1085,9 @@ int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode) if (!IS_V4(inst->core)) return 0; + if (!IS_V6(inst->core)) + return 0; + wm.video_work_mode = mode; return hfi_session_set_property(inst, ptype, &wm); diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index 58c654dbe33d..f1ef3b20074c 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -1635,7 +1635,7 @@ power_off: static int venus_suspend(struct venus_core *core) { - if (IS_V3(core) || IS_V4(core)) + if (IS_V3(core) || IS_V4(core) || IS_V6(core)) return venus_suspend_3xx(core); return venus_suspend_1xx(core); diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c index ff628cc06d5e..0441645358a9 100644 --- a/drivers/media/platform/qcom/venus/pm_helpers.c +++ b/drivers/media/platform/qcom/venus/pm_helpers.c @@ -1042,6 +1042,7 @@ const struct venus_pm_ops *venus_pm_get(enum hfi_version version) case HFI_VERSION_3XX: return &pm_ops_v3; case HFI_VERSION_4XX: + case HFI_VERSION_6XX: return &pm_ops_v4; } |