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: 156351 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp566642jaa; Wed, 23 Jan 2019 02:40:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4xGp4BCte7c+bmFC5R89dx2CCaZiQvpCLCIxuXlGMwEjbPEP1fFyIoHjqNCaAicOGhG+la X-Received: by 2002:a17:902:5601:: with SMTP id h1mr1745436pli.160.1548240031052; Wed, 23 Jan 2019 02:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548240031; cv=none; d=google.com; s=arc-20160816; b=wGFLYmG1qT+19B4JTV2hBZ/EpyGlY8yeSXJrNqxaX7b6GF/Wv+Ny4dk8cg9Xt1GS43 Sdr4I4YIKgso3SgbbZenHfZyBTlgGf/p1NH4YT/Ka8sC5dms+oFjMH1Ciu78x+uym1N2 nGKSskoPqyy/tK6VrQHsUAHM5lowUNWQAX4ZO5zeWvp/vfaErHrfh0J9+nkU7O2F6cIM ldBbtlE2+b2n4OdsdhK5KCng/pinNXmPAex2v4pFUGIPevwFKanm6FqVw9JwFznBlJ2X i7QbC/r7IwIj0gdCJ5x8v4ZhFd1ejcBtHSRF0wIXBNqOzuQG4zhQKJwGM0y+dLniJ+qW qWzg== 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; bh=naLY3DB0fFEF8+rWJZdD/W2PWV9f5z/z6JViBOnJMqA=; b=ndxhbwn8Ga6VJXT/VKZel/mfG/A9zjYm7cNMf0qMxlUDQz31DgtK3cYDgFQgu2jeK8 6ksNvshewEiLcYAkFdGJivMkyq5SusSSmUPiE5XSv0TjU31s65J7JfkM71q5Z08PTCNl Mg5fF5rHcI3EV884ddke016qiay21IMmEQbXtyuD0piMCd4CYOEsB9xsW8TFdAM7zZ2g sbJXZjVa3tfAuV+8bQWBQtMhDHolMXRWvdnKfx7IwhuIP5ulHLTwe99dht2u4mVCmVNt euhNa6sg7WMHr8CRuhiOFlCNSfcucnouSN/tOYZsBgUETr1P0UtfGEKWGDmUo5g6QaG7 LYkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AP0Ic7Dw; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 v3si15423734pga.556.2019.01.23.02.40.30; Wed, 23 Jan 2019 02:40:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=AP0Ic7Dw; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1727483AbfAWKk3 (ORCPT + 4 others); 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-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 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(-) -- 2.17.1 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);