Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp746296ybh; Sun, 12 Jul 2020 23:13:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcVHuMMPA/FWJt2UGcqp2D7JwK3dmIeojyzGzA/ei961ziab8Yq0CHFjiZJS3WuA06DFFo X-Received: by 2002:a17:906:a84d:: with SMTP id dx13mr64119193ejb.246.1594620818894; Sun, 12 Jul 2020 23:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594620818; cv=none; d=google.com; s=arc-20160816; b=UrB/53qc7rBpxWf1ckBfJntNbH8m/GUaHM8aC3Uw3lrTIAIUm7UQv3ybC6HUsQKo4C +MVrtXhxe7SI76ZhxCbp06laCM8CmfFYgRB3ZwiF20FRWfOzlKFxUWd5UxoFGhPsKsMN wiO+RP/HV3BlMO7iBU9y5bhzEwbv5Luc0eyiXDJL/kaDevfOxBJZzvWL6Z4q+hCI4p/7 UskhTumDT7URVZ7c2YPsVFidbfCpTbADIHzsooP+daE0TrYSm/NZXzuJknEun7vmiZg6 CIc046G5H1wi4FcMPHEjAlzZe1HBdcOyqw8LafIe4Cfzh3rxLOQvhnIj/fZYPG9iSEmO JOTA== 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=8vtvohJFj5DhHOwcKV42+FAe6eItys47TuzDpZd6Sp0=; b=yUUyKbGog558MTKtNwIRPunIalUp2Ryt92ala2ModeNVmYHq0Uk1VOWDqxHi2XQ0H6 oYWW+NUuXo9JJG/DRBXecuKHZqTpqk9RJP9NWNgf32cJgSEfafnc1IHmjOM2+cgBZena PXxpwjmyoThpFjyXzw7GWO0jPhBMG7xeW1ApFoKpu6yD8G37pSxMkEIVgAkRQtmGnguR oOEXCLddh15y1HDkgLRhh+t0yWKdrVx4e5k6TwR143pLeAsCxl7+VLlU7fxuKtNJRodw BphuTFzp+uxUa0oQeOfuQg6JEsC6ku+M+WE1sjLjG8glJPwmeAEroJsM3hwbpWvLbMXK GBDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JbHX0YdT; 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 i4si9041372edr.244.2020.07.12.23.13.16; Sun, 12 Jul 2020 23:13:38 -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=JbHX0YdT; 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 S1729324AbgGMGJr (ORCPT + 99 others); Mon, 13 Jul 2020 02:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729291AbgGMGJp (ORCPT ); Mon, 13 Jul 2020 02:09:45 -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 0980EC08C5DB for ; Sun, 12 Jul 2020 23:09:45 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o13so5598007pgf.0 for ; Sun, 12 Jul 2020 23:09:45 -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=8vtvohJFj5DhHOwcKV42+FAe6eItys47TuzDpZd6Sp0=; b=JbHX0YdTuTKPraV5j0+Ujs09z3xmVLzJBs5dtbV2ca2zlEIpw9/Xwx2cr8kRrzd5zL WMhXzbgQmxy4ma6ZB4meDw7ruUpf5RClj2KFH+fzH/rThCe+0uM0s0+va0IQqpPBd0+n FimYaQ9nAce5kSkWg50D4Onk1O0RXwlS7HOHA= 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=8vtvohJFj5DhHOwcKV42+FAe6eItys47TuzDpZd6Sp0=; b=G7QOO+rAW/4KIZn55RZINnbnrJ4s276p1aHrXEuF2KquXzAJTrFkB9BNzGLc8p0ysI flb8NYR/QMdiQIiuUaTPq5TZVkyByiIliyWcqdRBMVn7UPXS5GbDNvwwZDee1ZgFIqb2 TYxi7YUN2A8WasFQJTj0ergov2Aj42cxXCk7gVeWupviVzk6HI+dXS3Ln7KMXanE5mmb TR/NAP6F4+u2qegI7btTq2/R1Fe7RC7CZBNadNl4Umhw3pftyVn8xD2Az0XDqoJSIzH4 NKXT7+BfPCR5ZimLn8RX++Ez2C/YdpYAh5aVxmeHv1ToHKzNxxbSWphBtoOf9Js4paNd wXgg== X-Gm-Message-State: AOAM5311rWxnQXy4YTxE/3Uywf9mtbY0llcdgFRMe2sgUAw2NQTqlHr0 fBeuA5KrTn7xbcy026dVgKEWEg== X-Received: by 2002:a63:757:: with SMTP id 84mr68486625pgh.275.1594620584647; Sun, 12 Jul 2020 23:09:44 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 23:09:43 -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 11/16] media: mtk-vcodec: venc support MIN_OUTPUT_BUFFERS control Date: Mon, 13 Jul 2020 15:08:37 +0900 Message-Id: <20200713060842.471356-12-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 This control is required by v4l2-compliance for encoders. A value of 1 should be suitable for all scenarios. Signed-off-by: Alexandre Courbot Acked-by: Tiffany Lin --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c index f2ba19c32400..f833aee4a06f 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c @@ -1206,6 +1206,8 @@ int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx) v4l2_ctrl_handler_init(handler, MTK_MAX_CTRLS_HINT); + v4l2_ctrl_new_std(handler, ops, V4L2_CID_MIN_BUFFERS_FOR_OUTPUT, + 1, 1, 1, 1); v4l2_ctrl_new_std(handler, ops, V4L2_CID_MPEG_VIDEO_BITRATE, ctx->dev->venc_pdata->min_bitrate, ctx->dev->venc_pdata->max_bitrate, 1, 4000000); -- 2.27.0.383.g050319c2ae-goog