From patchwork Wed Jan 23 10:39:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 10776975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70DBD1575 for ; Wed, 23 Jan 2019 10:40:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6155E2B822 for ; Wed, 23 Jan 2019 10:40:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55BEC2BA1B; Wed, 23 Jan 2019 10:40:31 +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=ham 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 DE1F02B4C8 for ; Wed, 23 Jan 2019 10:40:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbfAWKk3 (ORCPT ); Wed, 23 Jan 2019 05:40:29 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37835 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727464AbfAWKk3 (ORCPT ); Wed, 23 Jan 2019 05:40:29 -0500 Received: by mail-wm1-f65.google.com with SMTP id g67so1451186wmd.2 for ; Wed, 23 Jan 2019 02:40:27 -0800 (PST) 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=naLY3DB0fFEF8+rWJZdD/W2PWV9f5z/z6JViBOnJMqA=; b=AP0Ic7Dw6nbX4EKdi7eU2eD9LCpW+dpTatSpIiS2Q1A3NR7W3Q8/URmgmw0IHd2yeR C0qVa7293afRu1eo7qa0ibm4KzFdLuOUc8BMYSAkV26oC9duPuh9kGOni1aKensDY/RC XYhFo5GCXynz5jByS374zHWrLWMpNGtrYL4aU= 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=naLY3DB0fFEF8+rWJZdD/W2PWV9f5z/z6JViBOnJMqA=; b=ru4Q9D4pSDxLzXhJvrmO7sEp3gckhLRl0cftXwJ/W4q4PiUKzzoPe3AaJ5EZ2rhB7h i6KWXDjeBK85RSAA+Sx7GRV+93fky/Kl0udw8JzNEgLxMgnl2TF8Ocanh4TA8rcmhBlB lhDBNAF+uUn8K3l7ND7nFpb5n2rTVc4mnCmli7W8VhJx7G80XXsBINpEKCtUwAmDRaRa 6SyQysrqI806e7xZQbjKGxt4txCN1Gp/7/62vS4nx7E3nrMCPN6LmnO1Chyen+XFvN8r UztnMuvbsSQdzf2zgC8m+c6k/GezhrkjXenAv+nsLDWl50m50AAtMAsyk400xvfM5jVW 1tkQ== X-Gm-Message-State: AJcUukedtb/H/F+PMxC6kIcC2W3hIfTiVawUMHReTdZf+8GnMPXSwZUZ 8GpfVhd2trrvt9nS5XyB7Ngbqlq/5ys= X-Google-Smtp-Source: ALg8bN6Eu+1iHB3IH61SXRZhLMWr+urYzCcDTEH7aZ3k0QveqDjZcd49XYdOjBMBZ062rIrndu99tw== X-Received: by 2002:a1c:5604:: with SMTP id k4mr2098756wmb.107.1548240026882; Wed, 23 Jan 2019 02:40:26 -0800 (PST) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id b18sm84525211wrw.83.2019.01.23.02.40.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 02:40:26 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Malathi Gottam , Stanimir Varbanov Subject: [PATCH v2 4/4] venus: helpers: drop setting of timestamp invalid flag Date: Wed, 23 Jan 2019 12:39:49 +0200 Message-Id: <20190123103949.13496-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190123103949.13496-1-stanimir.varbanov@linaro.org> References: <20190123103949.13496-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 The zero timestamp is really valid so fix that mistake by dropping the code which checks for zero timestamp. Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/helpers.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index e436385bc5ab..5cad601d4c57 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -439,9 +439,6 @@ session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) fdata.flags = 0; fdata.clnt_data = vbuf->vb2_buf.index; - if (!fdata.timestamp) - fdata.flags |= HFI_BUFFERFLAG_TIMESTAMPINVALID; - if (type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { fdata.buffer_type = HFI_BUFFER_INPUT; fdata.filled_len = vb2_get_plane_payload(vb, 0);