Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7566243pxb; Thu, 18 Feb 2021 13:39:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2Ua45PIAA18wPJ1Nx34z6lXgNIM7U2soQqJHbBh/cfJsqalTISA8Ovca9XdYNrLDsgZSS X-Received: by 2002:a05:6402:3069:: with SMTP id bs9mr5962573edb.151.1613684351832; Thu, 18 Feb 2021 13:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613684351; cv=none; d=google.com; s=arc-20160816; b=FDdxSptQ6Hh/g9dMdl5oaGp9ldaUwUl3VnCxuVfG4hx1DpCzwhvEU6kRtyWXWTcCRU lJ3vE2llhTcY79H0cueBKW+Yovg08dFH3GMO8qckFWJSF0GPoxFg/YZoNQel9DwjSOGk GZOHhCOkVeWoqOFbHsO6/JXajnt+z54O7PpvD2VwIv9oZRVPO4dyDuYyO2xxbJxdEaUx sVEvCCDyzjuwkERVV6FjJogsjUcyf1zNQvXzL5dTxMplr6g1phwWxqCy/5mtUFlQ7cCE puzZddGQnbv2Fqb5ZMatzHNC7VB2nhiJI4KXlhgYzNIfCPiNPN/Wbsn+1CuAH6Mn2vyQ eZKw== 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; bh=QzglRsaP6K3SRqg21dsFO146oIObP1Thh4KhJShV38g=; b=VS/axr0b2kF7fyPMTO1L10AY6adF2qIZ50Hium2kQU9EsI5ynTYSUu7qx9rvAUGTY8 SpTBB1B3dfK+jAeZZdFtQ7sCJSbjVcFrjsx94Qa9KMrNhXkZ/ugkJVvZY9/IM3dh+7zR STtVLz9Emc1dXj/GAborI1clZH2i5kiREifCABxW6BRF8YgCkLEqzmyOmXkzVeXszLFm pHxwhPs+Vl4e5d1D73lBdwdQIMscV9ZCMS61lW8Te/OV79A7I5GJc8YekeAdNQ+3ZVx6 PfFUk0Ew/fAdhKUnDktyq38JGV+jzH9KfkM4j9btO9TcO1iWniJOvalzmI018zlakv3G /9bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si945378edq.148.2021.02.18.13.38.47; Thu, 18 Feb 2021 13:39:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbhBRVfl convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Feb 2021 16:35:41 -0500 Received: from mailoutvs2.siol.net ([185.57.226.193]:55455 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229480AbhBRVfk (ORCPT ); Thu, 18 Feb 2021 16:35:40 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 962EC521DBF; Thu, 18 Feb 2021 22:34:56 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ej1WVbFCk5fB; Thu, 18 Feb 2021 22:34:56 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 33026521ECB; Thu, 18 Feb 2021 22:34:56 +0100 (CET) Received: from kista.localnet (cpe-86-58-17-133.cable.triera.net [86.58.17.133]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id A06FD521DBF; Thu, 18 Feb 2021 22:34:51 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: ezequiel@collabora.com, p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, peng.fan@nxp.com, hverkuil-cisco@xs4all.nl, dan.carpenter@oracle.com, Benjamin Gaignard Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: Re: [PATCH v2 4/9] media: uapi: Add a control for HANTRO driver Date: Thu, 18 Feb 2021 22:34:51 +0100 Message-ID: <2850677.34AhzSeaHW@kista> In-Reply-To: <20210218191844.297869-5-benjamin.gaignard@collabora.com> References: <20210218191844.297869-1-benjamin.gaignard@collabora.com> <20210218191844.297869-5-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! Dne Ĩetrtek, 18. februar 2021 ob 20:18:39 CET je Benjamin Gaignard napisal(a): > The HEVC HANTRO driver needs to know the number of bits to skip at > the beginning of the slice header. > That is a hardware specific requirement so create a dedicated control > that this purpose. > > Signed-off-by: Benjamin Gaignard > --- > include/uapi/linux/hantro-v4l2-controls.h | 20 ++++++++++++++++++++ > include/uapi/linux/v4l2-controls.h | 5 +++++ > 2 files changed, 25 insertions(+) > create mode 100644 include/uapi/linux/hantro-v4l2-controls.h > > diff --git a/include/uapi/linux/hantro-v4l2-controls.h b/include/uapi/linux/ hantro-v4l2-controls.h > new file mode 100644 > index 000000000000..30b1999b7af3 > --- /dev/null > +++ b/include/uapi/linux/hantro-v4l2-controls.h > @@ -0,0 +1,20 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > + > +#ifndef __UAPI_HANTRO_V4L2_CONYTROLS_H__ > +#define __UAPI_HANTRO_V4L2_CONYTROLS_H__ > + > +#include > +#include > + > +#define V4L2_CID_HANTRO_HEVC_EXTRA_DECODE_PARAMS (V4L2_CID_USER_HANTRO_BASE + 0) > + > +/** > + * struct hantro_hevc_extra_decode_params - extra decode parameters for hantro driver > + * @hevc_hdr_skip_lenght: header first bits offset > + */ > +struct hantro_hevc_extra_decode_params { > + __u32 hevc_hdr_skip_lenght; typo: lenght -> length Same mistake in description above. Best regards, Jernej > + __u8 padding[4]; > +}; > + > +#endif > diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2- controls.h > index 039c0d7add1b..ced7486c7f46 100644 > --- a/include/uapi/linux/v4l2-controls.h > +++ b/include/uapi/linux/v4l2-controls.h > @@ -209,6 +209,11 @@ enum v4l2_colorfx { > * We reserve 128 controls for this driver. > */ > #define V4L2_CID_USER_CCS_BASE (V4L2_CID_USER_BASE + 0x10f0) > +/* > + * The base for HANTRO driver controls. > + * We reserve 32 controls for this driver. > + */ > +#define V4L2_CID_USER_HANTRO_BASE (V4L2_CID_USER_BASE + 0x1170) > > /* MPEG-class control IDs */ > /* The MPEG controls are applicable to all codec controls > -- > 2.25.1 > >