From patchwork Tue May 15 07:58:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 135849 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp676694lji; Tue, 15 May 2018 01:08:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq4BemsAydPn0h6Xu6DC9i4Hq3AEWIG6GP/BANvwo+D6pwELZy4/4ghM2gpet4DecEPlpmf X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr6156877pgp.192.1526371702796; Tue, 15 May 2018 01:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526371702; cv=none; d=google.com; s=arc-20160816; b=WfZsRZRkYK4MgvJ5dsCVqr2DFFS8woHnsEBGRirJvgxMDhHjpo1yxxs97JR5au11qb QqbxPzOhKGz80wqTmw8rwNmjxNhN5YtmWSCiOreJPdbri730PvRFbtO8fDtTOml/JzgN d4KvTea5JtAJNy0N+qwuN7hyrZUvv0m2VJilXebCA5EkkPFUguuKTMx98sG8uKLV1Fzm sgt9RjhYrls6uXzQShoQhfy9B9h+6E1hBB4kEVPG3+eOCZlvw09nuAmp5sjpUfj+oeFM yX0gFEI72G3NzdHUlVFimbSsSt15p85rv38GKDrpTMTj+Eh4A0Dbobsf0DpsC7xldzMD dLJA== 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=LGrG65w+692fXlrWbeO9piVjDIBa1EwxpwDxPY675l8=; b=CX/OYeW35/NoYoJNuXwSnwwub7lme0QugOlXuMgfSmKdEuXg8eA7KJs8m7OCR9b1hp m1oVpqWv87GuaDSzMs1s8nxiEDZx3Uj5nd+BEGOvO8HxB0ZvwZWBlAmeSQ1Y2sqvU7s6 XJ2ZH9OpDi9b9jaXSDG4Q5d9nNniuS0cyMVS2R4v8aAAbn84V0O0/Fm3QbEcOPl+H5kB oO2L13iu+OJ4YU626tP/rNeuTnswYVg5NZFTZqDeOa1nLrl/ktXld32NiuOMRQ0RuNwE fkfN6YOHwvBZhltlkDGC+BLNvtIcCngfcNt+7kcDLzkVoeLyhZaEOMWSdj+5Hq2vlLIG Fg/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AJH4E6M5; 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 g9-v6si10965512plt.232.2018.05.15.01.08.22; Tue, 15 May 2018 01:08:22 -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=AJH4E6M5; 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 S1752679AbeEOIGa (ORCPT + 29 others); Tue, 15 May 2018 04:06:30 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36836 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbeEOH7s (ORCPT ); Tue, 15 May 2018 03:59:48 -0400 Received: by mail-wr0-f194.google.com with SMTP id p4-v6so14930255wrh.3 for ; Tue, 15 May 2018 00:59:47 -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=LGrG65w+692fXlrWbeO9piVjDIBa1EwxpwDxPY675l8=; b=AJH4E6M5Wg6QWf6WyFF/lgjHp6vP+mo1e9qxLkr1uEJ1RUdB5w1L17q5UmxT99Y6yM TG4kU/MjxQIwcX6sKvCRU5LCGKFJZEaBRQmWmh0ANItr/F13cPuSGg03TaM/0nP9xTkM ft9OS6cByVR0nPtxMa9aY+SBBLU06+bV3RHn4= 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=LGrG65w+692fXlrWbeO9piVjDIBa1EwxpwDxPY675l8=; b=KS9OBKiSUflmY5DuZAL0DJ15SXobaqN93WYbiR3iPxm3h8Go19zaYaIOESXvUukuuf 0S/bTl6XXZ2zP10B4+gOlarfTmsEZtfwCL3yrT71TqNsPOJMZrNZw3QRS2gzR1iknZTS YxJd4Ub+Dq13dOvyfAjwLJUwQCm9kQJ8iVdCty0LXOgSeLQmlC0swfA6HVWbUwls1Ar9 KJERHZroorLPxW5trnfcoTzv7paAv5z5g77oq2yPQJbo+u1ilsQ9sTEBZpGVwdSni43Q 0oc0U9MRWDgWE05HIsxtR4EjQjWKzqq95IpY+DzjgsVG7m2QvyJJ5qqUf2lszl/0WNhx B8pQ== X-Gm-Message-State: ALKqPwfyPtfdJkcYtEPDlrQEEhHxdBgv7kmvnmAicZ5OU3wAl3OM7PPO oLYb+0z1FwM+FJusRraWrcjncg== X-Received: by 2002:adf:e38e:: with SMTP id e14-v6mr9169734wrm.198.1526371186947; Tue, 15 May 2018 00:59:46 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 4-v6sm10918510wmg.40.2018.05.15.00.59.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 00:59:46 -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 , Stanimir Varbanov Subject: [PATCH v2 18/29] venus: delete no longer used bufmode flag from instance Date: Tue, 15 May 2018 10:58:48 +0300 Message-Id: <20180515075859.17217-19-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180515075859.17217-1-stanimir.varbanov@linaro.org> References: <20180515075859.17217-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 no longer used flag cap_bufs_mode_dynamic from instance structure. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 2 -- drivers/media/platform/qcom/venus/hfi_parser.c | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) -- 2.14.1 diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index c46334454cd9..255292899204 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -249,7 +249,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_dynamic: buffers allocation mode capability */ struct venus_inst { struct list_head list; @@ -298,7 +297,6 @@ struct venus_inst { const struct hfi_inst_ops *ops; u32 session_type; union hfi_get_property hprop; - 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 f9181d999b23..ad039a3444b8 100644 --- a/drivers/media/platform/qcom/venus/hfi_parser.c +++ b/drivers/media/platform/qcom/venus/hfi_parser.c @@ -75,13 +75,9 @@ static void parse_alloc_mode(struct venus_core *core, struct venus_inst *inst, 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++; }