Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2270777imw; Wed, 6 Jul 2022 03:06:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t70ktEc6JUpTorzqTju9+0r//zHq+X2omInBL9RKYD9rPZUqR/U2nCSyumP7iivNqS2rZS X-Received: by 2002:a17:902:ebc1:b0:168:fd13:8adc with SMTP id p1-20020a170902ebc100b00168fd138adcmr46769945plg.161.1657101968095; Wed, 06 Jul 2022 03:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657101968; cv=none; d=google.com; s=arc-20160816; b=Y4JsPY/z/IxRoBvR0+szrCcwBCL5ik9tmra5w1xEARKRxiWxPHbsauKG+jBGl5pQtt JvDUDAeHbjjGl7e+aPJTw//pqCk4ob2Y4BOZh4Cviv9JuPL3lJxkZd6Ax0Au6hY9THAs t5XyNMLt4SHTjyBP+cWxcdahr1Pb98/oLqSXcOVP8/6vwn8oqsSyIK1xkVWuU/Xt35K3 Uwc8HW1Yr50pcpq5uRSdvhT9PL56zLntu9QtX1dTDNhGA2orLBq1B+Q0dCDPKPTj/zQ+ v9abPx3P78gZcC4NIX+Y/ukpPzqjTV8MezlSi8zKdFanFENMqvT+5NNYxAMcbXUY5ZVS LX+A== 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=jbeN9EN290qu0UVcZWNgQH3M0xOgfg81KxxXQhIrfpmUSQuk0BHJdnjDYsGNkIkUZ4 ZdMg3thYykkm6tuKvQ0uBNNEVBpEvmvTg17AlY8SVPa8SP2WPs5Nd+MZGB+Vf84f9xpe xMEBIuUs4lZE3wVic5o2NNhdXPnFPxBodW56fF8cY/NNxidaWdP3c/Hlg5c8ljdyYeyK h02Yq62KLixb0YWHvnkvoTNIwR4OaDl441rxEM98wVAruRb6sCAyPHygtHQLlgtVR8wX ebvZXbvvIh2kNlF6t27603FLbIQCVexNV7FiE10AvLoxVzc3HYm6O6LaokDiFIj2Uifr eS1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GKU1gKM2; 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 t2-20020a170902a5c200b0016786f2d1d8si41873375plq.475.2022.07.06.03.05.56; Wed, 06 Jul 2022 03:06:08 -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=GKU1gKM2; 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 S232632AbiGFJjQ (ORCPT + 99 others); Wed, 6 Jul 2022 05:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbiGFJi2 (ORCPT ); Wed, 6 Jul 2022 05:38:28 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24EB2237CE; Wed, 6 Jul 2022 02:38:21 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:3a70:988d:42ce:f5cc]) (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 7896F66019D2; Wed, 6 Jul 2022 10:38:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657100300; bh=63DK0QU2jOvymNfj3HqpMerTR1+oNui+5easuOdNoyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GKU1gKM2NUa1vMlUP67CfgQVQ71YeTLpCq2cg/hSpnLfz5DN4zFIQUcaXMmYdCwy2 v2IP4QTrc97Z0xvsYpflk0hA0AJ9EI0+xZPdKeJa6JmDUrnf8Bc6hxwpubPlQM8r0l IgaEi/vX4eMKYBm9NIrXH5ZFgwSAEvwZMDHD5nU+YNqvqQ+B0j5yerb8AeZeSXCVkQ 2f2uzRjn2SXj/GUNONBdNbXsVbfOTD8ZCnHZp0YxOvYrSDzPc4K3UAQPG9aIfl7HMX MT9n/Fv9usAAuQIQdN9Tb56e54qbglOnrn15YL70ZvJZOMw7TAFGAWd6VGIRwbzi/a BRvUfwZp0Vn7A== 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 v11 13/17] media: controls: Log HEVC stateless control in .std_log Date: Wed, 6 Jul 2022 11:37:59 +0200 Message-Id: <20220706093803.158810-14-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220706093803.158810-1-benjamin.gaignard@collabora.com> References: <20220706093803.158810-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