From patchwork Thu Jul 5 13:03:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 141133 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1922093ljj; Thu, 5 Jul 2018 06:08:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfae9Vi/1x/pkoDfQTqPKApBItp5Q7K++R5KKFVCnJL/u3LsjWR63q27db8zorBp9ofV005 X-Received: by 2002:a65:4a42:: with SMTP id a2-v6mr5616676pgu.367.1530796106543; Thu, 05 Jul 2018 06:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530796106; cv=none; d=google.com; s=arc-20160816; b=OVtF3m2SDQfaVmq7On9/623IrM5BrI1JY7wTOEDs7GXjPv0DfK8wRtMISSVEXADTIS fDlFIgy6l58pukWsEaKsGf527blQJn+62b2mM6uSVZtw5VEG/LYUWNotKlkLd1sObh/9 3owSfnUX2xX9eIHerVQzVGDnPEV7KI0L4i04Gk0DwM834+2lsuTShCu77IVQR6hgi+4Z nrrAmw1AX6OTkx/ebK9r9lINTTfVxoyzXIQax1UEOnsM9AyAcA0Zl+5RG1hZvEe2fHHi vL+0iD5NEcQqJzTp5Z05e/YhMM9cDuh4HX4myhdFaloc9u/9GvFJzmnZFco1wMRp6XVH igSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=432LGMOKDri2aHGmlsk5+tKaCBAWzx8vp+BkYZY5QaE=; b=RZjRGkwJ8MnDSL4cWqBkSXjQOsDc353RFGOdJ6UM/nieZ0plDPUuS2xZvo5phlcZ9S nTjdWmP/YwY/vYrRZXgW857BfMOXjMlF+eWwRnC6QCikVl/9kXXxfIbqfxFAxiORoD7T lNeKD9gYyHQaNfnjLIBEjUF3/iWkowUKYn3/3Xq8hbDvDgQgUF3F41U42HhwlC6Q19Fb ih9TiINn21w3geW5JPKvF1bNolIcAo9mcjKOY75gz0nfyvlK5rF8exy6QS4jlfJ/rEPn GBUuCxsZsg1vHuyQ6A0xqBX2NCl3eusmtWmxFjkIiF2oOFkaC/Y/jEB78uTgmhiSmgHe 8YgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aBVRGtF7; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b59-v6si5946793plc.335.2018.07.05.06.08.26; Thu, 05 Jul 2018 06:08:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aBVRGtF7; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754486AbeGENFa (ORCPT + 13 others); Thu, 5 Jul 2018 09:05:30 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36662 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754430AbeGENFZ (ORCPT ); Thu, 5 Jul 2018 09:05:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id s14-v6so10733813wmc.1 for ; Thu, 05 Jul 2018 06:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mQvgz0he50LgDF6W19hQpoXcaRIIqvIGjdBolqGqtak=; b=aBVRGtF7chvAjFUuH4DJM+9T9BSUp4mwafrIU3ALbgzmIAB6H3ZT9YsZ8yIWXVsJZc U4NdSrXUnq5lW0n4IWk4N474qVIYcU6eqwr4YrlfRFt4HE+jCfs6ozAeeFQQ8rvry7lK Mb9D2izWO8I2T3p6qXC/rAF00jFgAfh6x9Jgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mQvgz0he50LgDF6W19hQpoXcaRIIqvIGjdBolqGqtak=; b=jxzLwzjf1bKUOqWlTj9wU6k45XXrtCHL9BVjcA2Bw77YiqG3IPOJj4kNWkOfYdFwaN xYrxtFcMxw6bP7LxetEp90Fvrs6/y/2gAS9a7h1FMkmdAKmRL/BTyABTeGElGXoaui9v Xpu9toaHjdjDVnpXuk03cBhmbHufzvXkMBFOk+3nnugHrVoHIACnYIXKbcvnTEOabaFW JGRsuuH5FYV4KrEiUdIqOXn6dlZkck6jTuk+Iv9QEe53vh2mko9z2dxFFBOxyXDosBZI w+LwVDDQJwOuzOy+xiRZJWK1r+lOhm0UK9J87JjgpouRFbawbwLsWXqheOmcTFcn/290 p6dA== X-Gm-Message-State: APt69E1ZGTB+I2olByH4IS9jwDqpSEsqTTp5bavfIJnzdqjl3Xy28sZU UCARtDcDZD4IdA9zgkKkEbQgTg== X-Received: by 2002:a1c:ee15:: with SMTP id m21-v6mr4118435wmh.112.1530795924608; Thu, 05 Jul 2018 06:05:24 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 11-v6sm2109102wrw.67.2018.07.05.06.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 06:05:24 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Stanimir Varbanov Subject: [PATCH v5 16/27] venus: core: delete not used buffer mode flags Date: Thu, 5 Jul 2018 16:03:50 +0300 Message-Id: <20180705130401.24315-17-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180705130401.24315-1-stanimir.varbanov@linaro.org> References: <20180705130401.24315-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Delete not used flag for capture buffer allocation mode and no longer used cap_bufs_mode_dynamic from instance structure. Signed-off-by: Stanimir Varbanov Reviewed-by: Tomasz Figa --- drivers/media/platform/qcom/venus/core.h | 4 ---- drivers/media/platform/qcom/venus/hfi_parser.c | 11 +++-------- 2 files changed, 3 insertions(+), 12 deletions(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index b995d1601c87..1d1a59a5d343 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -255,8 +255,6 @@ struct venus_buffer { * @priv: a private for HFI operations callbacks * @session_type: the type of the session (decoder or encoder) * @hprop: a union used as a holder by get property - * @cap_bufs_mode_static: buffers allocation mode capability - * @cap_bufs_mode_dynamic: buffers allocation mode capability */ struct venus_inst { struct list_head list; @@ -305,8 +303,6 @@ struct venus_inst { const struct hfi_inst_ops *ops; u32 session_type; union hfi_get_property hprop; - bool cap_bufs_mode_static; - bool cap_bufs_mode_dynamic; }; #define IS_V1(core) ((core)->res->hfi_version == HFI_VERSION_1XX) diff --git a/drivers/media/platform/qcom/venus/hfi_parser.c b/drivers/media/platform/qcom/venus/hfi_parser.c index afc0db3b5dc3..2293d936e49c 100644 --- a/drivers/media/platform/qcom/venus/hfi_parser.c +++ b/drivers/media/platform/qcom/venus/hfi_parser.c @@ -60,8 +60,7 @@ fill_buf_mode(struct venus_caps *cap, const void *data, unsigned int num) } static void -parse_alloc_mode(struct venus_core *core, struct venus_inst *inst, u32 codecs, - u32 domain, void *data) +parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data) { struct hfi_buffer_alloc_mode_supported *mode = data; u32 num_entries = mode->num_entries; @@ -74,13 +73,9 @@ parse_alloc_mode(struct venus_core *core, struct venus_inst *inst, u32 codecs, while (num_entries--) { if (mode->buffer_type == HFI_BUFFER_OUTPUT || - mode->buffer_type == HFI_BUFFER_OUTPUT2) { - if (*type == HFI_BUFFER_MODE_DYNAMIC && inst) - inst->cap_bufs_mode_dynamic = true; - + mode->buffer_type == HFI_BUFFER_OUTPUT2) for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, fill_buf_mode, type, 1); - } type++; } @@ -267,7 +262,7 @@ u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, parse_profile_level(core, codecs, domain, data); break; case HFI_PROPERTY_PARAM_BUFFER_ALLOC_MODE_SUPPORTED: - parse_alloc_mode(core, inst, codecs, domain, data); + parse_alloc_mode(core, codecs, domain, data); break; default: break;