From patchwork Wed Jun 27 15:27:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 140338 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1026119ljj; Wed, 27 Jun 2018 08:29:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLEVmTw7rtVeyCmku1FPvV+vzOuxbmw2MJFpcAcJzeY/d/Irvzj17EqkwX5ea/iavFGuWwE X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr6631744plb.295.1530113389417; Wed, 27 Jun 2018 08:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530113389; cv=none; d=google.com; s=arc-20160816; b=D68CfPHQYGP1hD9nUkATm7Nf6S8epdZ2d8DuzGrVOIXkpvVsILz0RJmwMEL2dV1dt3 L/7qfsNoWn/Jnz9/1mZV1HO3D6tdDxWQMD4ZImiJm/i1hj2NWbWe24S58jgbYQqW1zsD c8bDTIg+thoan77UPcqPLcTgoOVxyFm+iFfjlCPmfaXVVC5Ddh9B04+7Eq5CgpnIp71R 6KKza7E3T2nen4u1K/I+7tC2CyJej5FTtlO9x3MHfZBYNCMw3f6KFMFKl7oRpziHoeKn BpziYSiBkUktpr2C2Wh60Uf76TWPuxfflm8RHHVp2uPSEVxP4ZuHtvK6tioisy3w/fXW BpFA== 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=fvphImxtYi/pZ1ibjMA94jz0O9EQMA8I8Ho1rpQimyE=; b=eX5lD6HwY3AKrBL01MUTdHJHLSpz8RcVNmPWd8p7h5uCzzNzr1OJwN45dCm2tv8wJF h2yyJCMlRocnPud9aqbAL/UoEnlAumK6fNflBp3F/zPizQIYHym2JowKHinM4szBgDO2 UuJFCeuH2Z/UoohdVdWtQ57VJTIpf9b5ARXGI1OL5AHBv2EtU2kIV+lDnkSnNs9aCXtl jaIMx0jbPtkzHBhTu3oa6yFqa/YK8KcpaU7CdoMoU1A14FEweet8TYXWB+txQuCqW9dF Cr8TyLI99imQnXFHWSoslD38iw3V3V+LXWI521r2eFKwoMVGR8MDarfoqLz1VQV+AnDQ NuIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TAAX/5OY"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 b8-v6si4191721plm.202.2018.06.27.08.29.49; Wed, 27 Jun 2018 08:29:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TAAX/5OY"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934703AbeF0P20 (ORCPT + 4 others); Wed, 27 Jun 2018 11:28:26 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40622 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934927AbeF0P2S (ORCPT ); Wed, 27 Jun 2018 11:28:18 -0400 Received: by mail-wm0-f68.google.com with SMTP id z13-v6so5959400wma.5 for ; Wed, 27 Jun 2018 08:28:18 -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=fvphImxtYi/pZ1ibjMA94jz0O9EQMA8I8Ho1rpQimyE=; b=TAAX/5OYls5Fb0SufmcRtV9BCLZDMhjfq6rk4sT3ISDsixoLsOlZl4RfzQg6EcsP08 H+VIGGABSI7FjgXUwRebaY42+zFFBA4X70pVAa4zh/pJXZRcR78HjzpmX9FDLMkgCuxG syjXSAKCErqIe/1T+JPq4iahU/lmNXUae23gs= 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=fvphImxtYi/pZ1ibjMA94jz0O9EQMA8I8Ho1rpQimyE=; b=eyviKG/PpdhZARKnyN799U83RvQeXog3FEDyS82nzx0Q6Fi9vo+MTIQL7t6A4TWpQI 39yRQbfOd9f+41REjQHFLmpjuTyAYVoLFQWC++V5jj35bMvy1/8t4UIDwAYFmazMbZku ys7fa+FBaQWWTDko3T9dXVYgySUQHpZnzWLuulIwWrunFo2kJHvXN5ED9GW59luhXrde Z+ILFEVRfkrcGNPIqUQsVFrqT2JmkJ9dt9ZO6gQUdA0ju18CoGYHcJKaofmOkqIendy5 1poiGE/RxUrYGIfA3tn3IMsNNn+7bqN8PzcMtDZHsRrw/6uWBxWAIMASWeW6ipFz1/Id rqsg== X-Gm-Message-State: APt69E1ZugDaeu3rjc+rX/p7aEf1YvuAqpV0CQfhygr+kpHt3n2Sq6qV R2QCsXzBLZlmdrLSSMhXKQYzXg== X-Received: by 2002:a1c:78b:: with SMTP id 133-v6mr5669838wmh.59.1530113297475; Wed, 27 Jun 2018 08:28:17 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id o203-v6sm2916075wmd.30.2018.06.27.08.28.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 08:28:16 -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 , Stanimir Varbanov Subject: [PATCH v4 16/27] venus: core: delete not used buffer mode flags Date: Wed, 27 Jun 2018 18:27:14 +0300 Message-Id: <20180627152725.9783-17-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180627152725.9783-1-stanimir.varbanov@linaro.org> References: <20180627152725.9783-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 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 8d284cfbba7a..5f1aedc0ef5a 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, 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;