Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1413093imw; Tue, 5 Jul 2022 09:02:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/1WrHs+z1W5mqmUOhs4uCi+8tpD4UtAu3TLpZ4H0aj3P4mxioUCddRuPc2qjRFk4L90oF X-Received: by 2002:a05:6402:1455:b0:43a:77bb:af0f with SMTP id d21-20020a056402145500b0043a77bbaf0fmr5428096edx.301.1657036941712; Tue, 05 Jul 2022 09:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657036941; cv=none; d=google.com; s=arc-20160816; b=kbG0CB6u+f9MG+1Gv2ZHaa3rbvkBa7bpaWeNmH3aWoCKPCu0amToB7cGDeJ1uVyNLA qfGo9jy8bM6zSFj8wKQCSmJiJgqu7s/VC4vHO5bVI7T6CJMZYatAtlCdTyxOag3dSHv4 QQPzKrsnARdgqtcudsUrtR+rhjBGAuPEbLG5/kSa7bIJbBE3RK1dtrgJkV24HKMREKq8 nNfIGhK/5JtxsMXkux08OLbS9MWw5H6o18Z/8We+gpt0dxyMVGCsj1TzwSx42Xffj2Tt 4a6eqG87CPe/pY/mRobI08yrham0gCaXGvPCr+79Z3B6wvIIK9G3+qsqbHYCubb/28ad /Shw== 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=eIhA1Nh+RFUrFiI+l6dcBbGOrotFP8+PL+qIjiq0x74=; b=Jw4KSObTlRgUYXXucrrQNQCvIhb0dRYkls/LXc+iW+zQxePb0aMKZYHVsz42ynu3XP wofCj8cusvkr3PfNlnDM/JiRYC/4ok4+pbBM5EUkOoga0/JMVwpBajAh5dvw6pDbLrBC Ww6RXllpSRadmLoMyup0NcMNbzGdHjbhfrqjKeDk2wTD6EZkH7/GsKqS3luPKvPHIJfk 6fkrewMoUZ/ITeYJ7lywYobpBEVtvfO8R3srFhmQebgypb+86HrcY0QIWs0AL5e37opA YsiPt46bxZ8WF/MEsPSNPh/S1o1ce7MFigVjEsQvSVoQVLn1PrRXEztYJUG+Kj5rO0bg qbxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=qph1cumd; 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 qf9-20020a1709077f0900b00726c7fc61d6si37148001ejc.851.2022.07.05.09.01.54; Tue, 05 Jul 2022 09:02:21 -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=qph1cumd; 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 S233028AbiGEPv5 (ORCPT + 99 others); Tue, 5 Jul 2022 11:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbiGEPvT (ORCPT ); Tue, 5 Jul 2022 11:51:19 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D221C925 for ; Tue, 5 Jul 2022 08:50:17 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id h7so12294923vsr.11 for ; Tue, 05 Jul 2022 08:50:17 -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=eIhA1Nh+RFUrFiI+l6dcBbGOrotFP8+PL+qIjiq0x74=; b=qph1cumdKBVmk2By8T7hyFVajgmo4j/4ZSIhi2mAE3f5WR/XRmFiTWNTjQsfMMjJK5 RL0Kl2b0jD/aCROL7Lt8PEBtztGdwpFsnBUjKTNApj+pjgAAFGJUAeAkl95hQ2/VjqUx rRAhKScrtiG/DUz7J9Xt+LB5VLW2sYWTLIUK8IDWYY+lCgidoXQyEk7MRZmtUte1M888 a/GmWSuOMdC86w98wk2mzQzl52YfjBzrf9QZWFTon7b3tx/r6Loar4ZRrasv4LeF0nyl TkOYjym0fXrNNpylQrhMQ6JTgP1jt7SvOBhX7dj43fbW1pLa8eI+bAmKx4j26tUCuwSj /WcA== 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=eIhA1Nh+RFUrFiI+l6dcBbGOrotFP8+PL+qIjiq0x74=; b=iIQ0xgc8EKxbO8wciJ3y3bNndf+i03j5+GzVyYnpR6XS/aQ2h3z7xyxECf0L8oUthV IUO8I7/KfNEN1/0uDC1S1uH15zwFLREavp9rZHVE4fJV8o+ZfQ/1jGHakY+Cq7/LhTWN e2QcZu8WbhvQ9GDNk0p/nFwsJO6urfGHKgXA3GeG3ymmau5IY0gjoiRUJH6NYKRu1jRw DZ7+k7WR7fs2Kf6q7QlZ844LIjxMxuDuieYhgzxCg76HTg3nbuF9zmxybjlJrEv+X7bI NIS6pe13KJ6WLePZhpbCC7ejOj2ZXTIp1ipoYojzZKIlseLICe19Y5oCXAPhcMl6tTSq FQlA== X-Gm-Message-State: AJIora+WV3XfegopPKjBAHuN2nne02jRk5XEijvybFg2n7w6X74qqPNe gTl/2rGvcBb7AhzSICUEOr97nA== X-Received: by 2002:a05:6102:366f:b0:356:352f:9de2 with SMTP id bg15-20020a056102366f00b00356352f9de2mr20401110vsb.2.1657036216670; Tue, 05 Jul 2022 08:50:16 -0700 (PDT) Received: from eze-laptop ([190.190.187.68]) by smtp.gmail.com with ESMTPSA id u72-20020a1fab4b000000b0036c82d22fbesm6924035vke.5.2022.07.05.08.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 08:50:16 -0700 (PDT) Date: Tue, 5 Jul 2022 12:50:10 -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 v10 12/17] media: uapi: Move the HEVC stateless control type out of staging Message-ID: References: <20220705085420.272912-1-benjamin.gaignard@collabora.com> <20220705085420.272912-13-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220705085420.272912-13-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 Tue, Jul 05, 2022 at 10:54:15AM +0200, Benjamin Gaignard wrote: > Move the HEVC stateless controls types out of staging, > and re-number them. > > Signed-off-by: Benjamin Gaignard > Acked-by: Nicolas Dufresne > Tested-by: Jernej Skrabec Reviewed-by: Ezequiel Garcia > --- > .../userspace-api/media/videodev2.h.rst.exceptions | 5 +++++ > include/media/hevc-ctrls.h | 7 ------- > include/uapi/linux/videodev2.h | 6 ++++++ > 3 files changed, 11 insertions(+), 7 deletions(-) > > diff --git a/Documentation/userspace-api/media/videodev2.h.rst.exceptions b/Documentation/userspace-api/media/videodev2.h.rst.exceptions > index 0b91200776f8..2feea4a5a008 100644 > --- a/Documentation/userspace-api/media/videodev2.h.rst.exceptions > +++ b/Documentation/userspace-api/media/videodev2.h.rst.exceptions > @@ -153,6 +153,11 @@ replace symbol V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR :c:type:`v4l2_ctrl_type` > replace symbol V4L2_CTRL_TYPE_VP9_FRAME :c:type:`v4l2_ctrl_type` > replace symbol V4L2_CTRL_TYPE_HDR10_CLL_INFO :c:type:`v4l2_ctrl_type` > replace symbol V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY :c:type:`v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_HEVC_SPS :c:type:`v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_HEVC_PPS :c:type:`v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS :c:type:`v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX :c:type:`v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS :c:type:`v4l2_ctrl_type` > > # V4L2 capability defines > replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities > diff --git a/include/media/hevc-ctrls.h b/include/media/hevc-ctrls.h > index 3a6601a46ced..42d16e8a1050 100644 > --- a/include/media/hevc-ctrls.h > +++ b/include/media/hevc-ctrls.h > @@ -22,13 +22,6 @@ > #define V4L2_CID_STATELESS_HEVC_START_CODE (V4L2_CID_CODEC_BASE + 1016) > #define V4L2_CID_STATELESS_HEVC_ENTRY_POINT_OFFSETS (V4L2_CID_CODEC_BASE + 1017) > > -/* enum v4l2_ctrl_type type values */ > -#define V4L2_CTRL_TYPE_HEVC_SPS 0x0120 > -#define V4L2_CTRL_TYPE_HEVC_PPS 0x0121 > -#define V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS 0x0122 > -#define V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX 0x0123 > -#define V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS 0x0124 > - > enum v4l2_stateless_hevc_decode_mode { > V4L2_STATELESS_HEVC_DECODE_MODE_SLICE_BASED, > V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED, > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h > index 37f9f23a67fe..e0d19a6b5bc7 100644 > --- a/include/uapi/linux/videodev2.h > +++ b/include/uapi/linux/videodev2.h > @@ -1836,6 +1836,12 @@ enum v4l2_ctrl_type { > > V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR = 0x0260, > V4L2_CTRL_TYPE_VP9_FRAME = 0x0261, > + > + V4L2_CTRL_TYPE_HEVC_SPS = 0x0270, > + V4L2_CTRL_TYPE_HEVC_PPS = 0x0271, > + V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS = 0x0272, > + V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX = 0x0273, > + V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS = 0x0274, > }; > > /* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */ > -- > 2.32.0 >