Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4317268imw; Tue, 12 Jul 2022 06:04:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v1hwN/4HfqtLN22qeiCcDVTZ5efrjW7qxhp4GT5OFxLXcA+LRRCuzlHhif2o1dBj5z3el2 X-Received: by 2002:a05:6402:4252:b0:43a:9232:dafc with SMTP id g18-20020a056402425200b0043a9232dafcmr31375872edb.243.1657631048092; Tue, 12 Jul 2022 06:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657631048; cv=none; d=google.com; s=arc-20160816; b=wcEJfDDm/5E0y1MfDRURpTMe94PWF+YZc/5SkQ3nei8bmX8GIvsyQC0RFfrsFTcPsE M5X3H7poz83WoELxaaAN2992sJNaX6S5TDMnMBBPHip20wMkytsgrYRIpXH0HS/ywzRT 7RdTo91nquDu9LKLl89xsWuit4qVQXC/zXGk8fdCKqBtWpFeCNbRQH86+t1oEeTmmQ52 0qXrpSy7zsklM3HGdV9NU8L21SXCEUcoAg9qT11qEqDAARxLV7lZJMK77EwTyvHr1FB4 2oc/Vy6fLxtwY9b5IwGJW6rr6kGKKS3RBZWYMCjGDzimvUnWQsg9XyjN+PgaJueza0ck 9DGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=kj0kBuJRKrJztfeW6tmf/UDwOX6Y3wrCB1UmnidfQ4A=; b=qGJAtG6sQsinxaIoHPqDxlBeCChRtLFpk3kX0/xfCOgmH7iM98kkIuMl6tmsTsKAM6 ytYu/5rDzhkErAUuF3FS0PtfTUy+M3j1c7JaYeoQew/Navu0Utc6aWEaX458B03SC1id kkRChCAOgpWn3MyApF6b2Fu15qmBcUandIfU3Sg7yZIHBTS4PQLol/ozOaOlqUVNTaaW kzg28legjH8YRNPAj/B1s09LEiFpJ40KMdQ/4ihesnRVLNEK3BGg/yMpTFitaUhluv5L udbTms8K5DQk5qtvdBgwSzlq6BSQm2Wmi0NLXawmr4XqAU51POuWnTf+0WZmeQpxpVfU ix/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=gYfvoA5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a170906345800b0072aeaa5ee4esi12558878ejb.19.2022.07.12.06.03.41; Tue, 12 Jul 2022 06:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=gYfvoA5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232963AbiGLMYZ (ORCPT + 99 others); Tue, 12 Jul 2022 08:24:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbiGLMYP (ORCPT ); Tue, 12 Jul 2022 08:24:15 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3F7A5E46; Tue, 12 Jul 2022 05:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657628654; x=1689164654; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=kj0kBuJRKrJztfeW6tmf/UDwOX6Y3wrCB1UmnidfQ4A=; b=gYfvoA5ykL+odve0mrXQQ5JzwlmVILM8bsedolmpx6iBtoXnT+BVw//L xhJ+dgeWS8ofRRUiZjDYw/53t3p7HIMgpzNtDtXdBtI2vL9isGDlnIJ8I 3IFcRnkEYOOyXqJejrT17sOrao5rtdbfDWdQ+2mlmwIpXg7MTq4r1hL+8 Y=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 12 Jul 2022 05:24:14 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Jul 2022 05:24:12 -0700 X-QCInternal: smtphost Received: from vboma-linux.qualcomm.com ([10.204.65.94]) by ironmsg01-blr.qualcomm.com with ESMTP; 12 Jul 2022 17:54:04 +0530 Received: by vboma-linux.qualcomm.com (Postfix, from userid 72083) id 36917900883; Tue, 12 Jul 2022 17:54:03 +0530 (IST) From: Viswanath Boma To: video.upstream.external@qti.qualcomm.com, Stanimir Varbanov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Viswanath Boma Subject: [PATCH 2/7] venus : Addition of control support - V4L2_CID_MIN_BUFFERS_FOR_OUTPUT Date: Tue, 12 Jul 2022 17:53:42 +0530 Message-Id: <20220712122347.6781-2-quic_vboma@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220712122347.6781-1-quic_vboma@quicinc.com> References: <20220712122347.6781-1-quic_vboma@quicinc.com> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V4l2 encoder compliance expecting minimum buffers support for the application to allocate buffers as per the control support values. Change-Id: Idb41ff7dce8b8138f28df01d045eae6facf7e93d Signed-off-by: Viswanath Boma --- drivers/media/platform/qcom/venus/venc_ctrls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index 37ba7d97f99b2..95fdad160732b 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -355,7 +355,7 @@ int venc_ctrl_init(struct venus_inst *inst) struct v4l2_ctrl_hdr10_mastering_display p_hdr10_mastering = { {34000, 13250, 7500 }, { 16000, 34500, 3000 }, 15635, 16450, 10000000, 500 }; - ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 58); + ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 59); if (ret) return ret; @@ -435,6 +435,9 @@ int venc_ctrl_init(struct venus_inst *inst) V4L2_MPEG_VIDEO_VP8_PROFILE_3, 0, V4L2_MPEG_VIDEO_VP8_PROFILE_0); + v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, + V4L2_CID_MIN_BUFFERS_FOR_OUTPUT, 4, 11, 1, 4); + v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, V4L2_CID_MPEG_VIDEO_BITRATE, BITRATE_MIN, BITRATE_MAX, BITRATE_STEP, BITRATE_DEFAULT); -- 2.17.1