media: venus: venc: blacklist two encoder properties
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Thu, 12 Dec 2019 09:35:21 +0000 (10:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 27 Feb 2020 15:39:54 +0000 (16:39 +0100)
Those two properties are not implemented for Venus v4 (sdm845),
thus don't set them to firmware.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/hfi_cmds.c

index 4f64507..c67e412 100644 (file)
@@ -1207,6 +1207,8 @@ pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt,
        case HFI_PROPERTY_CONFIG_VENC_MAX_BITRATE:
        case HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER:
        case HFI_PROPERTY_PARAM_BUFFER_ALLOC_MODE:
+       case HFI_PROPERTY_PARAM_VENC_SESSION_QP:
+       case HFI_PROPERTY_PARAM_VENC_SESSION_QP_RANGE:
                /* not implemented on Venus 4xx */
                return -ENOTSUPP;
        default: