Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp615598imm; Thu, 5 Jul 2018 06:10:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8YVu1f64rjhyDapYbFNsBnLXgeztvJTUIc5dBlEGDBYdlA6XNxfMq/a6V4eOizez2M4i6 X-Received: by 2002:a63:8648:: with SMTP id x69-v6mr5581066pgd.172.1530796249181; Thu, 05 Jul 2018 06:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530796249; cv=none; d=google.com; s=arc-20160816; b=k0LREbjS0TnccWZ5lLgodbAEiE73Ok7PXiLu5rk9WS8Kphpx8IVxjga/ImYdMUSlPo geO4SgEr6j76jC0/PMZaiRuntSNtr9UcTIPGD97IfdCFgEZM2fMOuHicIQACZzlcxini yIKETUr1UsDa6lg43mDec5HrG5W3c8PhFLezQ+SdSFU7rqV414rVo4I30WaJZBf5C21a CsTkAJkVq8XttxYWYAC8B5Jd2qxwzGYpFkbs5jQBPSl3Q+/q/IUG5c4Ch+k+YGrnwuls rEnfIjrYKSUMqeOAeUr9fmuMhVHxFAEVq5tiane02w3KBhxPeM4+z+Au3WYv1a7s66g6 RjfA== 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=mQvgz0he50LgDF6W19hQpoXcaRIIqvIGjdBolqGqtak=; b=W+U9N9IV2A6BaCeVR6+LWUgG0bCk815f2zwxnmt8sM60XwTkKCD414YVUPg+W1co6y gb9wGyl9I5lfP2Cgeu9lIK9ju8KQB1fBUCvr1l2qrAqthjo2BPSOvMCzcX+0Lk8zcX7i OnyCjhvcqqfmzgLChWG/xB3hOI3tgAS1qCYBSJpq0S4oZoGnMZ+w1KBSgm15lHaqlE5v n0u9AzmF7mQrmtUQL/rQ7nqd4vGxDCs/d3RsqxL8Fn9vfOQML1DNZh7OABaCCiTdd3AG PWyisNWmH+WR2s1GuMIaNP9ORDPYBRSbCIopkerMleOr/DCqrZrHhhs8Q9GtKmKPeRwu Ifpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBVRGtF7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 15-v6si546731pgu.205.2018.07.05.06.10.34; Thu, 05 Jul 2018 06:10:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=aBVRGtF7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1754700AbeGENJO (ORCPT + 99 others); Thu, 5 Jul 2018 09:09:14 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53192 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429AbeGENFZ (ORCPT ); Thu, 5 Jul 2018 09:05:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id w16-v6so10969739wmc.2 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=IOzoerkjVwVfO1CffGbjmPpObp529m9rVDCbbefNj8/7Wjp8zarGR0hiJrasnzUfLx u1aaCThbZGEQQdeIDeA9RUhhrjC/ogM+dZboTdWhCrnmhQ9DYpT5OBvpsk2UBPVgTQPU 4wkBNZKVtiXUvqd2KyUSQ6vxFC3glY9630xfU3LaRS63XtIS1rqVso8H1b0ZBVe8YlZI I9tbflo9o08+ip4Q3hrcodQmNrTjYFPUQgY4yH75sFj2kMq8cOeXrtiC5JsLJxMyqiRn C2lv8efHmvY5h4/Qpfw+62f5c1MRbv3KRMh8rR6la/5W1Rg3S8WKhha17GNVV+FD3J+m bMHQ== X-Gm-Message-State: APt69E2xviihEvvA+nde5hOLbOF2XGu7wBPbptCMsw+EK/UhD4UGH0RA SHxjoBmKRMR2IIYyMCdj/s/TOw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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; -- 2.14.1