Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4376942imw; Tue, 12 Jul 2022 07:01:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spY6c1DU/zcSH7/9ZNd+/Lb74rFRYqUxNxPgdu2yaMx1Rwe6dTPzCYlFjA4LNZlhi6gXKd X-Received: by 2002:a17:907:2d23:b0:72b:7c6a:24c with SMTP id gs35-20020a1709072d2300b0072b7c6a024cmr4429761ejc.44.1657634500141; Tue, 12 Jul 2022 07:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657634500; cv=none; d=google.com; s=arc-20160816; b=q87Ildc1BJdTV7ZGmt8MJM3ehqUKN4lx5ezyw8TG+o2k1ePIWeHmn3usMX2sSPOOOV qVtki3aJ6mSH7h1f7KoyPwEUVbA/wJlj5wCLpYEWWT24F6qKPlh8orSrO3r4mxl1Z/8z CDTE03plO7xOxrIFyz9AohOV/JP3hYwISmm+lBzQtVDCCwXwKrjOoeldW5SKq0ZrdNFM oETysSF4huuLGOv1R5lqz15fM8Ii+kUtgvRJC8YjzvdJ1sPLt4luLde8jmDD0/s449sp VkEPfyFw7Qedgt9vEowpWnTJ+VyGIl4Uawb3E+53J341leeuMiyIL5Dyhyy2KrQ9Xkgr 1cAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=ACcVEjWAl0l8BCPeGNEBMR96Vi6sSgqEYdNkLpYgsf0=; b=xtaworFD9Vh8ZvISlSPgLHrWCVwWCxgGp2F4EKd04Ju0B3p7FGNxWXleIw5leEcLla 9K2EYjGSppIZIAnivqA1qkqPVlmbuLVvbW7jNYQJiRNl4bLGtGbyFXAx5y/Gxk+cOOul a2EsInsBtbm4M2D5Zx/VQjLOJULWA8+zjg5Hi0KfxsBHxOnXzNe68UMiMHPoLqfQ5g4L DrZPFsywcnB7h4mcdEXmBklU7zIfi/yIsm9ykDG5W2TCdaSWgNIeMd7kKmiLM/wGPwcd O/cZuuiwBkCM1Vq60xadpnG45uKjeyEUXotjBSktjmIj5tIJtPYlhCUw1fF9pK63+h2u +M4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=xb8y8B0q; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf37-20020a1709077f2500b007262ce19578si18378010ejc.549.2022.07.12.07.01.11; Tue, 12 Jul 2022 07:01: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=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=xb8y8B0q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232727AbiGLNeQ (ORCPT + 99 others); Tue, 12 Jul 2022 09:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233054AbiGLNeL (ORCPT ); Tue, 12 Jul 2022 09:34:11 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20375723B for ; Tue, 12 Jul 2022 06:34:09 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id nd6so2538323qvb.6 for ; Tue, 12 Jul 2022 06:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=ACcVEjWAl0l8BCPeGNEBMR96Vi6sSgqEYdNkLpYgsf0=; b=xb8y8B0q4vFneb5wFxkhbTICKHFpaId6bsu7EZunPzwvjN9/LBwV+lPsydD5Eup8/h Dc5K0R2CZA/NVLTSUrnTQ0Qkpj61Q+aZvVZsI3RRq/d7o1EOS4w8mqlWpqv4N6+1RO43 JziY3aVKbKZsF90XTDGFL1B3gyi07L3sYO2jzy04MbLdYtB3m08o1ZU9HCTYVS8DvGS5 ljgMNkIuxbJWs6lvwRx5NWv6vKsZY+B8D7LxuZZNLgTbCl7Li3YO8QHcXkXC9k5Yzc2Q JUWu5eXkMFyraSVFKSQQ8DApGZlPNiqOq9iePUdnCCca3csa69dzwRDQF03OzC11abb5 sjiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=ACcVEjWAl0l8BCPeGNEBMR96Vi6sSgqEYdNkLpYgsf0=; b=5AouMoJeR+QYeeLj6kDffF4CY7TxLnegbCW+ah2QgeX5zq/vhKrR7uPI6PGPKrgDuC UvVNbB42aRiu7TEJaY7PpYM9PT9mJyoCEIL1VxOavMxONSOju7qfDXnY4oKb/uBuJAvH QyJcb02PASnLFdOHM4KJOjIIChykE2llF00rbo0mkAjD7KkywW+L6lZhR8SgxnI8H1ni eBBrjXI3ly6gsYVThCqVUc4j1RDF9NCzNfqL4+hi43Ju3VfZjJr4e2cU2dENwuWgEzPg X8+Fi6rqHBwzxFqQV/UgvTPlZ2Q+LMytMWNippcy/jdc4tIxV9EsOqd/u1Wl3oHKsZuC nFqw== X-Gm-Message-State: AJIora8cZnWIGkfIOVPMgTqsRDatrgvKlUe6Vz3wAWZEkiP9pIOlqJBo wxlnyMgE7GWXmD8Q8En936eM1A== X-Received: by 2002:a0c:f3ce:0:b0:473:3c5:d378 with SMTP id f14-20020a0cf3ce000000b0047303c5d378mr17519526qvm.48.1657632848339; Tue, 12 Jul 2022 06:34:08 -0700 (PDT) Received: from nicolas-tpx395.localdomain (192-222-136-102.qc.cable.ebox.net. [192.222.136.102]) by smtp.gmail.com with ESMTPSA id g7-20020a05620a40c700b006b1490619cdsm9354056qko.99.2022.07.12.06.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 06:34:07 -0700 (PDT) Message-ID: Subject: Re: [PATCH 1/7] venus : Add default values for the control V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY From: Nicolas Dufresne To: Viswanath Boma , 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 Date: Tue, 12 Jul 2022 09:34:06 -0400 In-Reply-To: <20220712122347.6781-1-quic_vboma@quicinc.com> References: <20220712122347.6781-1-quic_vboma@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Le mardi 12 juillet 2022 =C3=A0 17:53 +0530, Viswanath Boma a =C3=A9crit=C2= =A0: > From: Stanimir Varbanov >=20 > V4l2 encoder compliance expecting default values of colormetry for the c= ontrol. nit: colormetry -> colorimetry >=20 > Change-Id: I1db0d4940b54e033d646ce39d60dc488afba8d58 > Signed-off-by: Viswanath Boma > --- > drivers/media/platform/qcom/venus/venc_ctrls.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/med= ia/platform/qcom/venus/venc_ctrls.c > index ea5805e71c143..37ba7d97f99b2 100644 > --- a/drivers/media/platform/qcom/venus/venc_ctrls.c > +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c > @@ -352,6 +352,8 @@ static const struct v4l2_ctrl_ops venc_ctrl_ops =3D { > int venc_ctrl_init(struct venus_inst *inst) > { > int ret; > + struct v4l2_ctrl_hdr10_mastering_display p_hdr10_mastering =3D { {34000= , 13250, 7500 }, > + { 16000, 34500, 3000 }, 15635, 16450, 10000000, 500 }; What is the origin of these values ? Should this be done in the control framework instead ? > =20 > ret =3D v4l2_ctrl_handler_init(&inst->ctrl_handler, 58); > if (ret) > @@ -580,7 +582,7 @@ int venc_ctrl_init(struct venus_inst *inst) > =20 > v4l2_ctrl_new_std_compound(&inst->ctrl_handler, &venc_ctrl_ops, > V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY, > - v4l2_ctrl_ptr_create(NULL)); > + v4l2_ctrl_ptr_create((void *)&p_hdr10_mastering)); > =20 > v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, > V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD, 0,