Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp320394imw; Fri, 8 Jul 2022 03:42:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4tVqO8UDDpy/Jw2akyzphAmjck+BR5++7Sgmwdaf9hT0h0scsjCa/3GIYoKDH/DQcWPHr X-Received: by 2002:a17:907:2d94:b0:72b:169f:fe94 with SMTP id gt20-20020a1709072d9400b0072b169ffe94mr2881691ejc.132.1657276949388; Fri, 08 Jul 2022 03:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657276949; cv=none; d=google.com; s=arc-20160816; b=l0weR8EgTUp5IJ9UpUVCfHxjdTm117Fil6m7xheJ44nhwvSw/0mMVbwMkq0erEsPUk 6wAT/SiQgFJcXOf+7qEWhRt6R8fjX7LeWd+LxrHjjpfs2ZAw8q5GlRC01Vkgy/uAeV4O UOJQyc2Hvv4ZJjqOFAvS3bu7aSjXPQddgw9B4h9T/Sop5qc6yxelCG071bdnJkVsnJ54 pKq36UayHpYARAi++W1UC0iBHfavJclu1Ey7PRFt3oMIdDSHLNUiYvaYwdedkh+UC6at TijLpYhsg+P09cXBRQJ6Ly8bpAwIyGPXGzFHXl/f+hNqmTtfwFPWcGwN81sSY57br3Xj P1Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vEaJ5po9Za//FEsrnkPxw8yZtxSE9rhk4WCBsPOWM7o=; b=eFHjHfvn2FKwNKA8f+gNmFbd2GO1ClFpwkxobPARVTvL2P138xQPf1Hmp6o7d6T71r uEo1tdrtmCOZg6+T5qKZZ3usm52JVKM0KW0hOt0xGG5xD20dOLQBBFmSw0Icljnwu8b1 nn6prvr05mD/R2XL+8Ftpp1eyK69sSwV3U9WqrBHoHek5CZXlepvWTaeY9WPRBgvLyDg vd++TwuueotI7V4yUM1onXK2K3jcmmu7keO7Kypun75CvHqdvhAAuoBy85ntE6fCxCRl 7+hg/V/Xo23BahPBGadjJxAEnfpPV2CcZfMsdsLGBbr2u5dtSpvuC80gQsipkDIG7Eim XDsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=IKPynV5C; 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 o13-20020a17090637cd00b006feed26a290si21566728ejc.42.2022.07.08.03.42.00; Fri, 08 Jul 2022 03:42:29 -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=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=IKPynV5C; 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 S237823AbiGHJy0 (ORCPT + 99 others); Fri, 8 Jul 2022 05:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237789AbiGHJyZ (ORCPT ); Fri, 8 Jul 2022 05:54:25 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE3F823BC for ; Fri, 8 Jul 2022 02:54:23 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id i126so26438303oih.4 for ; Fri, 08 Jul 2022 02:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vEaJ5po9Za//FEsrnkPxw8yZtxSE9rhk4WCBsPOWM7o=; b=IKPynV5CRGV7vLXVINTPyxkKjJie+puMmQK+dPjIBcPew6KRz2RR05MmLQG9MQGwK6 4lhKjJMDx0RhUt1VGaTH/NQvXq0/hjYiY6MaLRdMInpaOH3E8VXCXBbupYvOBIXXvfcX rdHsJPLSGFljCjcLKPVLBv9pO/Vj64ltNtjPloOoU0OT35mWSxBaN4rKPhcT8actbOiI H9G2S4h3fz0vfo/q1kc9d/xmS5Bs1U1RHp6iOmFpatIy4ZTpgvXV4LG6mhATxYpO5Zfa R4q1vFDGI1WVz6fOL3ckOwlc7NzapmEGuUv67cmI+GSYJIv6CcNcAPdZG/q41zI06Vwf 59ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vEaJ5po9Za//FEsrnkPxw8yZtxSE9rhk4WCBsPOWM7o=; b=jAkLpOb20WcaHR8jt9X63M8eU0unnh72irfRxpGCefIh8PG+Y77xLqccdd8Oxe5wNq CWq8PXoeAfM2s8Zo7HU31O3c6fAMLHAdI50eSs2bqiihNpzmrP/36pGHFriezggEanu6 L0Qtm1blm8hk9F4+LUZvACV/K6VXfFTHRQorZWnhIa6uYHWWbgwZhRlVCLq/Gxpf3WSN xCmYUG1LoPYKE4FPNLtLMU/Z7C1vm866uEfYmRwj99kJRnzAikXzY7my868T8UFtRreT pH0K8nGxnNOosGluZGi2Q3WiiLXJHi4GMhm9Pzz3Ydca9ZiArNozPwWK82OkgAed5QaY zKFA== X-Gm-Message-State: AJIora9YO1YqD27lSjgNviDWORmCKqq3YdZNtq8RF8DNfVj6tmmUJwt/ 4HCLvChLnhVwOQHU8v54WOl5TQ== X-Received: by 2002:a05:6808:eca:b0:2f9:c581:3f76 with SMTP id q10-20020a0568080eca00b002f9c5813f76mr1328601oiv.138.1657274062762; Fri, 08 Jul 2022 02:54:22 -0700 (PDT) Received: from eze-laptop ([186.13.97.246]) by smtp.gmail.com with ESMTPSA id b11-20020a9d60cb000000b00616dfd2c859sm11916643otk.59.2022.07.08.02.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 02:54:21 -0700 (PDT) Date: Fri, 8 Jul 2022 06:54:13 -0300 From: Ezequiel Garcia To: Benjamin Gaignard Cc: mchehab@kernel.org, hverkuil@xs4all.nl, 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, 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 Subject: Re: [PATCH v11 13/17] media: controls: Log HEVC stateless control in .std_log Message-ID: References: <20220706093803.158810-1-benjamin.gaignard@collabora.com> <20220706093803.158810-14-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220706093803.158810-14-benjamin.gaignard@collabora.com> 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_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 On Wed, Jul 06, 2022 at 11:37:59AM +0200, Benjamin Gaignard wrote: > Simply print the type of the control. > > Signed-off-by: Benjamin Gaignard > Acked-by: Nicolas Dufresne > Tested-by: Jernej Skrabec Reviewed-by: Ezequiel Garcia > --- > 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 >