Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1011196imw; Tue, 5 Jul 2022 02:08:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usS4rFA89eW9mmBlTgomXjdJ9qYCJPIV286zjh+WlAK57adUaFCdqQLNVWG+ZszP6LwmoG X-Received: by 2002:a17:906:c4a:b0:726:f620:dcdc with SMTP id t10-20020a1709060c4a00b00726f620dcdcmr32920510ejf.202.1657012123821; Tue, 05 Jul 2022 02:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657012123; cv=none; d=google.com; s=arc-20160816; b=WLAd3jU40epRsSz3xzA2ITNHboJQ2CmNebTsRuWse3mi8R/ocvz5vSqnhdBzpw/8tb AICWlrAyAFVSD9GIAUJcGm3ZcdAR7+vMPUGICLcvX2H9lTWwm3JO7oqxC/osQjJAodYJ em8pGeXl8sKmFfhPghZCYmic9KA2ptYfkXAVN1medEnM7mfNVJ3iDPvGn8iGw+BU2jSe a9iCMFvUk0n4IJY0OsP5ZQIPZibrZzbZkLU8sMHxZNyxcMes3X8RkPO6JbcT2+PpLCLm D7QszmYs3qeuy4EXCltt4llCweegBzYmCaq2k2/ISjySqao4g1OX6rmENFaZ8vazLzWA Ai5w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CTmAgIJGTtfsUHXDU02EYMoq/tDhXPZyX5luuIArlCU=; b=U1iOXqONuKSzg2/HsGqT/dvN26h6/b82AawoRfOkrrDz1aTGrNlEoW6jVP6WvEMII0 0YVwtzvSAQcIYkyZYEX6BD/ylpP0C74QEK9FhXZCaMABuLgR0zPRzoduJu2jjlKyy3Q4 YJGqf//q4f/OtWSejOBSgYaIEH4T8bB81q2ZM/N8+V2z0mUzatj1DR8J+Vs6SX4py789 joqkvbz8ZRw7PZUNOijz6w7R4LZD/kpR3N26EnCy6EIjok059PnepLfhOHg8RCQ0Qipf xyy5iZHDORmzYqJjBldL5YxcF+uTuMD3pAyiaZRbUFnpbkukd0n0GgSLsT4RP878Zz/W Sf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hHWOSvfW; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji3-20020a170907980300b0072a5947090csi2946236ejc.216.2022.07.05.02.08.18; Tue, 05 Jul 2022 02:08:43 -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=@collabora.com header.s=mail header.b=hHWOSvfW; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbiGEIzP (ORCPT + 99 others); Tue, 5 Jul 2022 04:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbiGEIyp (ORCPT ); Tue, 5 Jul 2022 04:54:45 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90DF3F58C; Tue, 5 Jul 2022 01:54:38 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:6610:ee84:2ba:7917]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9BC2E66019C7; Tue, 5 Jul 2022 09:54:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657011277; bh=63DK0QU2jOvymNfj3HqpMerTR1+oNui+5easuOdNoyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hHWOSvfW5+K+/1IFuDV1T5S10z8rYT+V2Cn8JL3Bb3sbWH/89c/uIrPaxw0hWLHuK 3WNvD/E/LpSpRK23OewfuT7rm/epg/Qy7lQzWabghUPKtjRZqN+EMEnmLyo0kaB4Zs psyASXixBNBjoEm5YYM0cO4pkcsdj6HtdhvKhPRNhcDfg8x28WsJT3ULTah1qsLOin rl1K6rX9GPapYO71i0Pt+hoCHE5P5iMXhPFAkFyoL1GQB7pP2zJnDWxdL5LuKtYtkm pDG9wGYnvmejCLYH737aVuGQQIDE7nTbQZ525UhUSuz1tjw3p+2QQ70wAd9u9JYHwX unn/iPmFEXI3A== From: Benjamin Gaignard To: mchehab@kernel.org, hverkuil@xs4all.nl, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, nicolas.dufresne@collabora.com, andrzej.p@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v10 13/17] media: controls: Log HEVC stateless control in .std_log Date: Tue, 5 Jul 2022 10:54:16 +0200 Message-Id: <20220705085420.272912-14-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220705085420.272912-1-benjamin.gaignard@collabora.com> References: <20220705085420.272912-1-benjamin.gaignard@collabora.com> 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,SPF_HELO_NONE,SPF_PASS, 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 Simply print the type of the control. Signed-off-by: Benjamin Gaignard Acked-by: Nicolas Dufresne Tested-by: Jernej Skrabec --- drivers/media/v4l2-core/v4l2-ctrls-core.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c index ff8a61f24d0a..c5c5407584ff 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c @@ -307,6 +307,21 @@ static void std_log(const struct v4l2_ctrl *ctrl) case V4L2_CTRL_TYPE_VP9_FRAME: pr_cont("VP9_FRAME"); break; + case V4L2_CTRL_TYPE_HEVC_SPS: + pr_cont("HEVC_SPS"); + break; + case V4L2_CTRL_TYPE_HEVC_PPS: + pr_cont("HEVC_PPS"); + break; + case V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS: + pr_cont("HEVC_SLICE_PARAMS"); + break; + case V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX: + pr_cont("HEVC_SCALING_MATRIX"); + break; + case V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS: + pr_cont("HEVC_DECODE_PARAMS"); + break; default: pr_cont("unknown type %d", ctrl->type); break; -- 2.32.0