From patchwork Tue Apr 24 12:44:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 10359557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 99CC4601D3 for ; Tue, 24 Apr 2018 12:51:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D9E428DC4 for ; Tue, 24 Apr 2018 12:51:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 271C728E17; Tue, 24 Apr 2018 12:51:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B45C28DD8 for ; Tue, 24 Apr 2018 12:51:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933238AbeDXMtG (ORCPT ); Tue, 24 Apr 2018 08:49:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38360 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932966AbeDXMp0 (ORCPT ); Tue, 24 Apr 2018 08:45:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id i3so614796wmf.3 for ; Tue, 24 Apr 2018 05:45:26 -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=0FM8m5fcoFp0v4gBqHZ/k5r16oTTjDSKfkX4wMlrDmQ=; b=jQKr5TKCDdZ0BlkJI2oseOkUd+ZVAbj8gLOvu0XX9urXHON0xvB1BmAqLEc6Pax7vC Zoe6QEHL/PjaCCXyZZoM7YJHrZ7+SAaBnNC/kSi8wOuKwXx3H2E4e+ZG2o2pxjfbQwAw yu5RFfm95fMhaPZp5y5BEGUIG3iLD1+5eEZrk= 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=0FM8m5fcoFp0v4gBqHZ/k5r16oTTjDSKfkX4wMlrDmQ=; b=SieaCcemt3TuKXqlN12c76Kh3dIk5hR9TweRABbG9vxhleGxsMAbrBKbgIJbBqRt/q lUXG7BiZcmvZJ7N7BcWTMOF0nI9V8lPUx34HdQhIw2C/4yZuryFJ9Se2HwhDm1/4JPGF KvedIkJRUbOIDXF3jVTPh/oRNvGpdqYJLBcXO7XqxGrhWDBQcDCICwf9NROpXLlYx8t5 GkDVxxAJ6xDOLmB8lR3AJkHoI4sJQqmSLwPsHT9pVqzP+3G+UnhZLcYEMJX+YIQh4zNS V9L89TQcaKpwb1FurVFWIvgTpwMjnzlX1dhxBZUMcsZ66Y2bpCWKayCBWwLG/Pe6JJL7 qAvw== X-Gm-Message-State: ALQs6tCF55arveGARO8UJbt5GXhuP8tNy+J7H3BZF3Y6ZjPKhUxMEiCW dCRyRVY+f6mzNexAVrczaY8Ljg== X-Google-Smtp-Source: AB8JxZoq2vpk+jKY4rOrzDiUfBUVXf1DudOPJJfA9hbKhMgo3AseU/5WiKTsVXlsoRHF+BN+IheQHg== X-Received: by 10.28.23.21 with SMTP id 21mr12465723wmx.49.1524573925392; Tue, 24 Apr 2018 05:45:25 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id n49-v6sm22666013wrn.50.2018.04.24.05.45.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 05:45: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 , Stanimir Varbanov Subject: [PATCH 17/28] venus: delete no longer used bufmode flag from instance Date: Tue, 24 Apr 2018 15:44:25 +0300 Message-Id: <20180424124436.26955-18-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180424124436.26955-1-stanimir.varbanov@linaro.org> References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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 4b155997abbb..ac92fd347ce1 100644 --- a/drivers/media/platform/qcom/venus/hfi_parser.c +++ b/drivers/media/platform/qcom/venus/hfi_parser.c @@ -74,13 +74,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++; }