Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4315322imw; Tue, 12 Jul 2022 06:02:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1syJTePuhCwmB0E5ueBhjsxdukGnjZwdyuzf0TU18yWd9Y+zFI7H1eopvYlQ7tTmCKhyDJq X-Received: by 2002:a05:6402:3443:b0:43a:f555:e9da with SMTP id l3-20020a056402344300b0043af555e9damr1580224edc.199.1657630960758; Tue, 12 Jul 2022 06:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657630960; cv=none; d=google.com; s=arc-20160816; b=HUEI5GWEcYiZQ/x1Uh1U3a3GpxGB0ecrnPHf/YOAVUEJL2so/rjqxfqW4f1R+mVJbO fmmvrB1+ADiDvxq9HtK3wumy8L3E0zTnbwtJT2pv+35lwn7FRFvHsAM1/IeWor5sJGC2 d/tzIb1l4mmQ94dlUAHICd+yV/fGUD7U9gVPeJlsZWMtpZxaiWhY6WpV5uABaq9/V8ym Hb0JuPukWZfuVcV76pBoZ2+HJlFjRedCrizdtRlRQOdJO4m0hdz/QVjr59eI5zOvQ4Or pnYUJ1o5ii71MS5yXs97UmRJipSWXTlBZsrCD/rT94lj/41yedH/IqM7Ofx9WLIRu9XK mq4Q== 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=WubKUJ4j12eFTZdYGCF0XxgkVzipXBW3gt8uczrmXCM=; b=iPlRmsFsTMoc4xc4ynh1cSvboNvQp4s3wQEerXp7d+c9UNMzLSs7Pf+Q3/fgeszE7O ZsHzdfVS0BF7ZrKinQiOq8poq8aNbi3BTugfYYU/X9p+CPzT1sGvkJM5lvtqXCO6n3ys SY0Hf0SjO+Hx1tZwpxRaTTP76gpq2F/e0iLNHtOA+jo7cHik+1lpn+TtUuyy/1Uz/HsG 3OQohZbRoeOSU13frSeYDjDsiSZji8qjyQ8Xec2co0qf/J3Qzk23Dsf1k0SKbJHwl130 0vVR65pYssXeQgtN146UduMotUlLE+4xacYbn7G3Jh6Kp2OtwuDjVMykjTSn2Khe4T63 ULdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=D6yR6bP+; 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 ez6-20020a1709070bc600b0072af3bdf59esi11696361ejc.3.2022.07.12.06.02.11; Tue, 12 Jul 2022 06:02:40 -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=D6yR6bP+; 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 S233136AbiGLMYi (ORCPT + 99 others); Tue, 12 Jul 2022 08:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232276AbiGLMYS (ORCPT ); Tue, 12 Jul 2022 08:24:18 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F398A5E46; Tue, 12 Jul 2022 05:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657628657; x=1689164657; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=WubKUJ4j12eFTZdYGCF0XxgkVzipXBW3gt8uczrmXCM=; b=D6yR6bP+KYnp3mHt000oq1Rd+NdJvj0CVMT7iC5+MJqBmHYt8CbXWTWm rNrl4bBbf1z40GHc1JMjEd7QPsWTbD6eSaLc8GJDgkUQ0U+jZ5b2K0hJr 0EBsD57kXVzIFwFqJeS4Xg12hL2bhCEnt669rDD+Y1M6MjX+0uOdQXI5I 0=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 12 Jul 2022 05:24:16 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Jul 2022 05:24:14 -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:11 +0530 Received: by vboma-linux.qualcomm.com (Postfix, from userid 72083) id 77B85900883; Tue, 12 Jul 2022 17:54:10 +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 6/7] venus : Remove the capture plane settings for venc_g_parm/venc_s_parm Date: Tue, 12 Jul 2022 17:53:46 +0530 Message-Id: <20220712122347.6781-6-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 compliance expecting settings for out buffer only and the same values will be propagated to capture buffer setting by h/w encoder . settings on cpature plane are optional , required only if offline-encoding supports. error details : fail: v4l2-test-formats.cpp(1350): !ret Change-Id: I3d33bf1443cb5b20c3be6ce7c86df53aafb7918e Signed-off-by: Viswanath Boma --- drivers/media/platform/qcom/venus/venc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 4f10f5de7e3e6..420691f71121e 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -390,7 +390,7 @@ static int venc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) struct v4l2_fract *timeperframe = &out->timeperframe; u64 us_per_frame, fps; - if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE && + if (a->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && a->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) return -EINVAL; @@ -422,7 +422,7 @@ static int venc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) { struct venus_inst *inst = to_inst(file); - if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE && + if (a->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && a->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) return -EINVAL; -- 2.17.1