From patchwork Wed Jun 13 15:07: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: 138499 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp853606lji; Wed, 13 Jun 2018 08:13:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIO6kbwjIBpcyuZafBuiZEShfcvLG+hdNRBfrPdHlAP+wzHZfRmDojdxz6GGO55pyNAQTC6 X-Received: by 2002:a63:920c:: with SMTP id o12-v6mr4390166pgd.233.1528902829213; Wed, 13 Jun 2018 08:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528902829; cv=none; d=google.com; s=arc-20160816; b=fjE/AXOK0i0E1Ls2jUbNjKaWpPZ3ZrTyKCkA0lesp3lsB8LX2UMnmilM6fZxVk/1vE CSyClHcXDLAxjX1KBTIBhbCAMp01W3o6sYABwmVuuKsz9Js1jmM4pyL9yJjt6k8/1OZs ILK4WBDXfgtqfXvRtbP0Sh5ptMZVt2sCj/XZDTUnymfEy6Cp8G2jy8mvJ2zS5ZmsR8je 9UHoVANaH0LAlF5t8/U7W4ExhQDF59g7VIEJGIi3T/RyiaizahFPoadg3LmnXhP2vEy0 goe5qe7w+/ZiSnqSGsKqpKxxdYGhvShLVENPcV1ipLWxxFJS9c4ZUWfy/3VVL/qsu+l5 UF6g== 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=8FeGnPaIV5EPC/U6dJ9bqO8cVCrprWFMS2h0FyRklic=; b=p1Y5zEjM3qyEO35NxgWuGsYxG77KzHgYVxjUseK4NMKk/JSWN4DlWtOTU0+kohYhWK +X5QdZm/K/ZeMuqjdZiJZTszH9SwthmD4VZlslH7C5U4dLbwMFjnfQMK4pev2DdWPy6m N2ni2RuwRuZvYMsU1qrsuym3aNenIOBe+1ib8BTcu1crPoiT4sxHEGEyUW3cWY6wCqq6 cggSk5fWSO+P4hDv34BT6s+aeI6ItJIqTJUXg4rYdLIs6r1a6rptkCOeWRY9gCLwYZhM chLdtX7l1P7Zdf0YEKl7VIeCDQTLuSr9njrFMC/NvDbrhUDHorFwjQrOgb8B3z36N5bd Wb/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DbgkykdI; 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 124-v6si2628490pgg.29.2018.06.13.08.13.48; Wed, 13 Jun 2018 08:13: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=DbgkykdI; 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 S964926AbeFMPNq (ORCPT + 30 others); Wed, 13 Jun 2018 11:13:46 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:38317 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936045AbeFMPJc (ORCPT ); Wed, 13 Jun 2018 11:09:32 -0400 Received: by mail-wr0-f196.google.com with SMTP id e18-v6so3154239wrs.5 for ; Wed, 13 Jun 2018 08:09:32 -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=8FeGnPaIV5EPC/U6dJ9bqO8cVCrprWFMS2h0FyRklic=; b=DbgkykdIAU/q2oI+KqvMKILbWsND/5N+3ERdIHtdnXuD6XzymIAn7sUKImayk8I4Da jYrLROPWZw48ReRmNPemXqgtyParf4wx3aUPXokZpeGGRYuYwgVeoZxBGrXB3aHMR1R4 FcWabV65slqNUB8i1qjFKl09JBvhDLZiLm1bA= 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=8FeGnPaIV5EPC/U6dJ9bqO8cVCrprWFMS2h0FyRklic=; b=aK5nSj6oZAC119It6YyLDFtVBO4/3RjerOB6da+304tY52++Io8T4ZLjx6OVpYcvgY pWaCsHxSpdBIB+GcVKbwYaw0K9WV7aMbaHzQdA/AWnFNxJaeyOlc/kuRroLYEEVfIyBc Cpa0lBkw9LVHk0r8TBXC8lMnmyk0cWhik6ezUyREevQJhOclfad6oD/oiCc8VU4igrhj RkfFjzMxVBCQsLZ6RtUou0/VeT7o4EgdXUaFkt5QLjGK8GwTmSvFlnW0ftHuupTlb9+H H1twpT/MSKnQxsnQtFJrn1Wv9U7apB5CfMuMwoKgKuWF1aWPOWje7+CPNDuoR3GPWibP /oXQ== X-Gm-Message-State: APt69E23cOOLi2OENXFgtHe43VFBX3+fSt0kNr5ykP668xoIwmaZzkwF IADqzsSfeV4k5Tx2eZ5EQItHvA== X-Received: by 2002:adf:965a:: with SMTP id c26-v6mr4525172wra.197.1528902571177; Wed, 13 Jun 2018 08:09:31 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id e13-v6sm2886548wrm.45.2018.06.13.08.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 08:09:30 -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 v3 16/27] venus: core: delete not used buffer mode flags Date: Wed, 13 Jun 2018 18:07:50 +0300 Message-Id: <20180613150801.11702-17-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180613150801.11702-1-stanimir.varbanov@linaro.org> References: <20180613150801.11702-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 | 6 +----- 2 files changed, 1 insertion(+), 9 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 e8e41811db80..c4ad50f992b0 100644 --- a/drivers/media/platform/qcom/venus/hfi_parser.c +++ b/drivers/media/platform/qcom/venus/hfi_parser.c @@ -73,13 +73,9 @@ parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data) 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++; }