Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4533576rwb; Mon, 8 Aug 2022 02:44:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bSbQQyPVBBpllSZeoAbRryvxvC7XBcxj5+s5jurEpFx1QAmauDvzSrFfUY/q91t8gQo7X X-Received: by 2002:a17:90a:7aca:b0:1f1:ff59:fe7e with SMTP id b10-20020a17090a7aca00b001f1ff59fe7emr20299203pjl.11.1659951894662; Mon, 08 Aug 2022 02:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659951894; cv=none; d=google.com; s=arc-20160816; b=QZpCQDFpaIGSceAQhfMNEgFDQ3XrE8jxTyfaslMUGEpeuJt6xxsOSo24/D4ixd29bJ UrqKmkmmeX0OkbqMk6Q5QtT7FQswJtGHe09OdjK5HLrItewLfEVg3P3cbwwSkGPDo+C2 kw4xni8HC7NTBgdSCrc+azs2OUarBiVsBdFIxgCIu/h7j/UIxuu/8XJ5NGnxl6HMAe6I sMirI1ClVMkLZGR/z33XXKpugAY3IisI9/eLGjrjK/9WG3oKZfXfyeJnxGiL9YWLgCL3 QDEa1yRmLQFavHvracI17C7WlCqPpj1cdO3pOTKn1lMe7riL+LMKA/qGJoEBrEpDLzFa Zgsg== 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=vZsfSM9/j6i7CNVMZjN+f/cqj1ACxwXTGFg+hp5We/M=; b=sNGpR3/mnRYa6mMLDp2ic/lza5nPG4/vlta4PcHbaAhE8kLEaVBJdWz3PCyqUvkSu5 NlQdv+hO/up9EXrP4JrTvqQcDFQ9djNyVLfntNIJZxsuFWM1lRIkI0XvXBWVoUfuRu6V 5rKPPq9dh0tk1gb4+sdOaO7doVywV8qFeAzA6hT2jR4RIkIrmKUVISr4SR5K0fPW/oTV LkeCTkDwx9hWlO8nzbgMMS7pDPwaEYLUvVZ7Q9UuJzt5+8/nhwXi39NDNU86ZQmAgTry Lw4j78Eg4ta54SMtteKM5GtCqyhnAgcZw7OcwVLk2s0HvOUzpIZCuUr3GXwP/wfOHVCY iUBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HKo3edkR; 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 26-20020a17090a035a00b001ecba51171dsi14565905pjf.143.2022.08.08.02.44.40; Mon, 08 Aug 2022 02:44:54 -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=qcppdkim1 header.b=HKo3edkR; 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 S242436AbiHHJbu (ORCPT + 99 others); Mon, 8 Aug 2022 05:31:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242536AbiHHJbI (ORCPT ); Mon, 8 Aug 2022 05:31:08 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6106912753; Mon, 8 Aug 2022 02:31:08 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2788RxEe029097; Mon, 8 Aug 2022 09:31:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=vZsfSM9/j6i7CNVMZjN+f/cqj1ACxwXTGFg+hp5We/M=; b=HKo3edkRcggEaQBCfGnspp6oqks75BK08dRiUV7RXQmom5AUBW5mKRdnnTjqafSVSOiR kPiebKRqSNIBK6hS5mlPv6EYVZYGbZMnq2qoyLew3fCDAME0aZmjSaOEEVvDjqFj5Z/b JnxqELdqCGX0EDVQzDHpl34O94NJnD2c0ycj9vJjJiCV4g6seaLAZ2jyV5ZSoPUBBUIl 7asuNSGAJLVltnPA+ncAxWjbdxHtzzXT2FqTMOZXkd8H9hj59bPsr3+Ch5N3/g0BVGNw +WTUSEcO4qYNCHpFXBmRthia17TXJGHSGVsHVhsTBxCd282nB7F/rlIR/UG+EEiist30 2Q== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3hshkeb076-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Aug 2022 09:31:05 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 2789UsJl018419; Mon, 8 Aug 2022 09:31:02 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3hshckgpn4-1; Mon, 08 Aug 2022 09:31:02 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2789V2cb018521; Mon, 8 Aug 2022 09:31:02 GMT Received: from vboma-linux.qualcomm.com (vboma-linux.qualcomm.com [10.204.65.94]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 2789V1gm018516; Mon, 08 Aug 2022 09:31:02 +0000 Received: by vboma-linux.qualcomm.com (Postfix, from userid 72083) id 1064B900883; Mon, 8 Aug 2022 15:01:01 +0530 (IST) From: quic_vboma@quicinc.com To: 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: Vikash Garodia , Viswanath Boma , Dikshita Agarwal Subject: [PATCH V2 7/7] venus : Allow MIN/MAX settings for the v4l2 encoder controls defined range. Date: Mon, 8 Aug 2022 14:58:34 +0530 Message-Id: <20220808092834.29775-8-quic_vboma@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220808092834.29775-1-quic_vboma@quicinc.com> References: <20220712122347.6781-1-quic_vboma@quicinc.com> <20220808092834.29775-1-quic_vboma@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ZULtPtI96q0rRhdlsUJwnYtde13FM1Dk X-Proofpoint-GUID: ZULtPtI96q0rRhdlsUJwnYtde13FM1Dk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-08_06,2022-08-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 mlxlogscore=803 bulkscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 phishscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208080047 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,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 From: Vikash Garodia Control MIN/MAX range defined as 0 to 1, as MIN value setting enabled for V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM. error details: fail: v4l2-test-controls.cpp(516): invalid maximum range check Acked-by: Stanimir Varbanov Signed-off-by: Viswanath Boma Signed-off-by: Vikash Garodia Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/venc_ctrls.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index b4437cf598ff1..e55f7a0b39608 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -334,8 +334,6 @@ static int venc_op_s_ctrl(struct v4l2_ctrl *ctrl) * if we disable 8x8 transform for HP. */ - if (ctrl->val == 0) - return -EINVAL; ctr->h264_8x8_transform = ctrl->val; break; -- 2.17.1