Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp745108ybh; Sun, 12 Jul 2020 23:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPEuWq/5KizcF3qmryFjtmEOQQtMUg7s9mtKjtK9pwTbDz8rN+0EVszn/5RQEGllO/1Kau X-Received: by 2002:a17:906:cc13:: with SMTP id ml19mr71483728ejb.288.1594620644597; Sun, 12 Jul 2020 23:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594620644; cv=none; d=google.com; s=arc-20160816; b=I3n1mAkpWx1SdCqsu5D0bBAhaUnf6MaO2u6b/ItsJqCbwcuoOYBdLLH/Aq8Wjt5Pgq hg94yqHo11ZraZopfzOrbtc8EpUTqgLVo8PI0AnMe3wQJtcc975DCll3LaOsYbtg/4pX MukOg5TvlJyswnQJIhkX9MPSmJRMJhD5+URvKhXqVfj4asBDV5FwBNPHM5wS5NBww8zD X3NN8QeY2YZRr9EKsgTbtnep3+nCV1p9wdDq+JFpV7hTeggqpt+YurCMoxCS3Nbw7g6L ARGpYJVbBUtS3MGhHQP+Ho9r9A8HrhP7xBFyZWc5Tf+4QjxgNOrR08OXcKeGdF7c+vdn i8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=il4DpcD/apPDl2cTCXc8/jfWcqySO11EC2m8fJv5U88=; b=GVBCB9GMrtprBJc5hOCHq0hqf4SwD1hmRdnALt3RhVZ/mcslxs6rG/EQQJadaf3kog snneMi42xA18eVK4R7VuwuH9MkwiNtMNToip1EHhI+Hj/17bwDd34PZDwkHyXcYOhoXB FmPPoeMCee6qbAgZwfpxyhiNxpLfmIbGRnktG6GW/GTPoDmWCkl0836de2BOjdbELkqz ffDcoHBsIuYLYADblgmz2DRq4444o9mDPH3+0A6S6BCDIt9XE3PVFddMayF2vX9IWhAQ +vfLaj/PD30V6iaSCtQZpiwK1w3cP/bRyn7GtpUWg5pA+o3CEP2IaBO4SGU5zhJ2Ge8Z I2mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hhS/XVom"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si300191edx.70.2020.07.12.23.10.22; Sun, 12 Jul 2020 23:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hhS/XVom"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729351AbgGMGJt (ORCPT + 99 others); Mon, 13 Jul 2020 02:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729339AbgGMGJs (ORCPT ); Mon, 13 Jul 2020 02:09:48 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16EA4C08C5DD for ; Sun, 12 Jul 2020 23:09:48 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id e18so5584209pgn.7 for ; Sun, 12 Jul 2020 23:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=il4DpcD/apPDl2cTCXc8/jfWcqySO11EC2m8fJv5U88=; b=hhS/XVomC66uSGacbR44AJu4XX8RglVUnHbYRQFol+JOwVlyO4zmLPxjZJVS2QAdPG f5e0TK74oOqb0gaxzYWjWU7yYwwdWiPjdfvbvDKizkxbdcHPi5xoVRDGXk7gTs4fly6H ULSsSLkR05CHdOA7/iNUCTpSeSaZU/O2iRGl4= 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:mime-version:content-transfer-encoding; bh=il4DpcD/apPDl2cTCXc8/jfWcqySO11EC2m8fJv5U88=; b=ali3ESZ6ZwIxRXdXCQqn22chABm8fKiHJefPa2fhLoyLk3hqasb+YMTG+UZx8DjCny zLUwY5M1CrawPyX4dn3VshTqK3c8YI5/tdtawPcN8hlJPNvt73H0PKDKpEQKOCvYWNTT ZT4wOtnl6SWRL3wUYUOaDI6N+WP6j9HfMGmXgb9pWV0Gu8sPpehNReCY2WtGJjYRJQwL Vj+7BOm+dXtmr+8uILRK9RYdgxEWf3VhPE7L/paH9jM0YR4Zpa4H6ZFI48OUP8fqILfs 7rYd5UtbUYR6UVsLNJ3FFxQn0yN+fiN10D6W54+qIE8nAoNLgiaoUbF9eEKw//4ec/HS vNeQ== X-Gm-Message-State: AOAM530oo+6q9RQZ8b46btuXsM7K4M7EXzfzAuZi0PCvq7HQWScY/zCy VJuAt0DiZJuCSpeTinipcG+NAQ== X-Received: by 2002:a62:1610:: with SMTP id 16mr8378715pfw.113.1594620587680; Sun, 12 Jul 2020 23:09:47 -0700 (PDT) Received: from acourbot.tok.corp.google.com ([2401:fa00:8f:203:eeb1:d7ff:fe57:b7e5]) by smtp.gmail.com with ESMTPSA id c134sm13134934pfc.115.2020.07.12.23.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 23:09:47 -0700 (PDT) From: Alexandre Courbot To: Tiffany Lin , Andrew-CT Chen , Hans Verkuil , Yunfei Dong , Maoguang Meng Cc: linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Courbot Subject: [PATCH v3 12/16] media: mtk-vcodec: venc: set OUTPUT buffers field to V4L2_FIELD_NONE Date: Mon, 13 Jul 2020 15:08:38 +0900 Message-Id: <20200713060842.471356-13-acourbot@chromium.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog In-Reply-To: <20200713060842.471356-1-acourbot@chromium.org> References: <20200713060842.471356-1-acourbot@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A default value of 0 means V4L2_FIELD_ANY, which is not correct. Reported by v4l2-compliance. Signed-off-by: Alexandre Courbot Acked-by: Tiffany Lin --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c index f833aee4a06f..1a981d842c19 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c @@ -893,8 +893,17 @@ static void vb2ops_venc_stop_streaming(struct vb2_queue *q) ctx->state = MTK_STATE_FREE; } +static int vb2ops_venc_buf_out_validate(struct vb2_buffer *vb) +{ + struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); + + vbuf->field = V4L2_FIELD_NONE; + return 0; +} + static const struct vb2_ops mtk_venc_vb2_ops = { .queue_setup = vb2ops_venc_queue_setup, + .buf_out_validate = vb2ops_venc_buf_out_validate, .buf_prepare = vb2ops_venc_buf_prepare, .buf_queue = vb2ops_venc_buf_queue, .wait_prepare = vb2_ops_wait_prepare, -- 2.27.0.383.g050319c2ae-goog