Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3648181rwb; Mon, 5 Sep 2022 16:06:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR4uqjGYXMF4AWKKVR6GTfpGra3xJMMTs0Wm3CAeBHu2FzzWh0JJTCWXcATTA67k1B4fhS0X X-Received: by 2002:a05:6402:3489:b0:448:5486:fa10 with SMTP id v9-20020a056402348900b004485486fa10mr34639961edc.386.1662419196423; Mon, 05 Sep 2022 16:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662419196; cv=none; d=google.com; s=arc-20160816; b=Fp1S+rRoEYcUQJ/9vDFmT0npUGgURBKss1bUBC7cd12XWXIaVesFglC1ahdlbxCefB uwpYYKt8U/yvt7IzjlyTELA2U0qOgMIdtsvAvDnHszi4zRjo2MZ2hr7NZQ/pu4AeTbD1 KPNcBuce+dRdKfPJ9AuHld63u39fAJbDu8ScerVB1BCCxGajp6UJhkmIKC95iymrnhSC +OYbve8B3+0q2U8hkx/OuO9U5iAS3O0urenaYb8XQGKmZN8whAP57r+8xF2HtHp69cv2 gU9R2p7ejoWkIhCtvIF10b9OLvAYG6zyZZe/JqNmQTHz6svq+QORzUeCp7Op/2A/TK3U 4Fjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AY38e3Y1B/S7L4VDN+SNO+YmSaywD4g+rBxdXKf89Dw=; b=GnWoXAWlINCXV98+981i+2t2ty/yM6dXZV69InNK2Ny3Xj9+uE9wRJSPdajJOihqYJ cfHSj0BW4hwcQaFVqTAqYhhqfuWHMcSOES42ckeYSgjrsWz8EdrkSOlBhjWclxrSL7SC dbHv3uUTNjZk/hYESNN01aMynNyfBfX4s20Kq8ifuNhSma0HzZdQH3FhCvwV0EwUZDE5 iUTA8gblAGKZy4M947khMc4114eMFqNCvRobkCwlH8W7o7KZIsv1c8ZM3HikS4ktjPwW xjoOHamgaV07VaEuVAk59qfPwvWDlsGRXpknjmFHvWEMslMTVW01Rd1LfoWfgkbfevIS BSCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qeaISqJZ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs38-20020a1709073ea600b00730a134ccfasi9245632ejc.572.2022.09.05.16.06.10; Mon, 05 Sep 2022 16:06:36 -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=@linaro.org header.s=google header.b=qeaISqJZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232908AbiIEWyz (ORCPT + 99 others); Mon, 5 Sep 2022 18:54:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232900AbiIEWyv (ORCPT ); Mon, 5 Sep 2022 18:54:51 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3973A14D0F for ; Mon, 5 Sep 2022 15:54:46 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id og21so19594877ejc.2 for ; Mon, 05 Sep 2022 15:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=AY38e3Y1B/S7L4VDN+SNO+YmSaywD4g+rBxdXKf89Dw=; b=qeaISqJZFXUCenSVew7J2ua/t8D3EvaKWs+XfN0Xyqh3oW0OlosmvAtWTIRCXm1K9b wdfrXzWgJGjagIwYbari7QTznPiukHbXic3eDwQDhqW9q3EQP2FCNx6e6VDtNZ3WgL1F 0X7yxfJKF22Qfltjn9LZHz7zWszUeaIRNPJOPuYEJbcZI/keOmZVPZFPra/1GF3on2da MApPEccCnTWszPgg0ICQrT0cLCZ+Ekn2aNCtk15Zg7yCjedLo3Bu/fGIEbAODKhvmJYe o5uPzFWW+0+mdzqC9hclblmwFXrpeS5yIU0G9getqiXPOvUP2sWxs/l2C3x8HbFxWI4z yMhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=AY38e3Y1B/S7L4VDN+SNO+YmSaywD4g+rBxdXKf89Dw=; b=tq+rzGIrfLIJW5jWpo+B7JjZFiDy7nnW/ATpk9wWDaihAT2dPZX/8U/4jlQWXyZMYX 9s8L7eg20xyRFB2dlF8Dd8YexPREodfI7UWI3FfKohQhFD2eYI05PfPV/SAgM+BqRhnl V6elqqfXngOEhPMW5yXFYbR1FUsK4aw4gey8GEBVyXBGSyxyEX6JWfomHeTjLDW/nPAm IY/i7Va4uFp+HcFbKyiBkUOyTQH3oeu5aujhQq1s+HybvFUSD16Pz3BkL/XkJnosLhvv ii7Eomq/VI4jzjnA3z8B8sE1g9uh0dYxulA0FvKrpvkJlJgk5T7t/T5aFf51rEnPhyUS qmDw== X-Gm-Message-State: ACgBeo3+sKih74CW2venK7oUdCf4aZASlrHxrxCB95Fjk/DBbPjh8eqy RBGEbkEOLj9ftAaiLaMDUfeMUA== X-Received: by 2002:a17:907:728c:b0:730:c005:5d93 with SMTP id dt12-20020a170907728c00b00730c0055d93mr37869071ejc.265.1662418485203; Mon, 05 Sep 2022 15:54:45 -0700 (PDT) Received: from localhost.localdomain ([84.238.208.206]) by smtp.gmail.com with ESMTPSA id ay2-20020a056402202200b0044841a78c70sm7090817edb.93.2022.09.05.15.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 15:54:44 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stanimir Varbanov Subject: [PATCH] venus: venc_ctrls: Add default value for CLL info Date: Tue, 6 Sep 2022 01:54:34 +0300 Message-Id: <20220905225435.721588-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Add default value for CLL info when creating compound control. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/venc_ctrls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index cfcacdb797db..7468e43800a9 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -379,6 +379,7 @@ int venc_ctrl_init(struct venus_inst *inst) { 34000, 13250, 7500 }, { 16000, 34500, 3000 }, 15635, 16450, 10000000, 500, }; + struct v4l2_ctrl_hdr10_cll_info p_hdr10_cll = { 1000, 400 }; ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 59); if (ret) @@ -606,7 +607,7 @@ int venc_ctrl_init(struct venus_inst *inst) v4l2_ctrl_new_std_compound(&inst->ctrl_handler, &venc_ctrl_ops, V4L2_CID_COLORIMETRY_HDR10_CLL_INFO, - v4l2_ctrl_ptr_create(NULL)); + v4l2_ctrl_ptr_create(&p_hdr10_cll)); v4l2_ctrl_new_std_compound(&inst->ctrl_handler, &venc_ctrl_ops, V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY, -- 2.25.1