Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4105248pxb; Tue, 17 Nov 2020 11:23:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzE+vJE5XTCdlNqML+aIXp3Vivo9txjwapMy6sfTMTu8vdUcewRDAHV49IXN3Fd6gmLY9CE X-Received: by 2002:a17:906:b01:: with SMTP id u1mr21469206ejg.427.1605640979932; Tue, 17 Nov 2020 11:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605640979; cv=none; d=google.com; s=arc-20160816; b=C8KRNE9M/jOMTkaKPQxzcyJl5ebY1sDDueYs/u87reix3NWVtD5Cg9WMNJ4MZETEJx aQFZqn+lpS6it7dKjhnnaGa6KboFQrlKxOlIPuJBFjTaEaMiqp3FeM01TBTMFo0NMrri LmJRq5a81lBkvlgiCoF7UpehNsz9HpTTnR98T1aMHWvwJpEYzEmyjv3P1MPNGYzxFg8f dKZ0XfIxLdDLPrpIOq1gm4QtpBYHT/X5rFXOtHF626QPmiQ01QaP1MDz1+ON/8SuG6rz gki1BaWy3AoF2rZbVfP0G3a56zHcbkF9aRg5/iP9nRnaUP07vCTMs3TCACJek+ycNjYl 2aLQ== 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=ZgO4bNvOa5e6kBoGoU6JpE0wBzRRub4QmhIkcHas+fw=; b=oC6ifynSoTWNjGHUW0ijuc145L8FkzoiJM2TYqi+jtBsybkS44UCQIme4YPwdgOR2b dPR1Xguap5BUJnpK3N061iXxJiLAp7W8Ep3utsL82uQWRGDkkY3V0Rya37kK8uajPCng 2IOsP3FSQ63sAcfGG+1n97StV9RE8bCEiehEOc+EcC83ySCK37aMF0ZRGVTZNHF0jDTQ wH0qBnbIZ3DLNRcbyKRwc92lndUQ4M0beiG/6sDaEv7b0N+UoBnkvHq2Ccum+0GtxuR4 ismmyrdgBJK466ECe82kvSKrcgiz5np63vmMW2MMs7+qkcuNGmGXraXGBDCIim8VnzRL lRmQ== 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 gn11si14135580ejc.638.2020.11.17.11.22.36; Tue, 17 Nov 2020 11:22:59 -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 S1727852AbgKQTS1 (ORCPT + 99 others); Tue, 17 Nov 2020 14:18:27 -0500 Received: from mailoutvs24.siol.net ([185.57.226.215]:42215 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726906AbgKQTS0 (ORCPT ); Tue, 17 Nov 2020 14:18:26 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 098A9521E4B; Tue, 17 Nov 2020 20:18:23 +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 SK40C-NDIV1s; Tue, 17 Nov 2020 20:18:22 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id AD6B4521ED0; Tue, 17 Nov 2020 20:18:22 +0100 (CET) Received: from kista.localnet (cpe1-5-97.cable.triera.net [213.161.5.97]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id 0CB7D521ECE; Tue, 17 Nov 2020 20:18:22 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ezequiel Garcia Cc: kernel@collabora.com, Jonas Karlman , Hans Verkuil , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski , Ezequiel Garcia Subject: Re: [PATCH v2 2/9] media: cedrus: h264: Support profile and level controls Date: Tue, 17 Nov 2020 20:24:18 +0100 Message-ID: <1725677.6jS8d4RcRb@kista> In-Reply-To: <20201113215121.505173-3-ezequiel@collabora.com> References: <20201113215121.505173-1-ezequiel@collabora.com> <20201113215121.505173-3-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, sorry for late review. First of all, this patch doesn't break anything. However, see comment below. Dne petek, 13. november 2020 ob 22:51:14 CET je Ezequiel Garcia napisal(a): > Cedrus supports H.264 profiles from Baseline to High, > up to Level 5.1, except for the Extended profile > > Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE and > V4L2_CID_MPEG_VIDEO_H264_LEVEL so that userspace can > query the driver for the supported profiles and levels. > > Signed-off-by: Ezequiel Garcia > --- > drivers/staging/media/sunxi/cedrus/cedrus.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/ media/sunxi/cedrus/cedrus.c > index 9a102b7c1bb9..8b0e97752d27 100644 > --- a/drivers/staging/media/sunxi/cedrus/cedrus.c > +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c > @@ -103,6 +103,27 @@ static const struct cedrus_control cedrus_controls[] = { > .codec = CEDRUS_CODEC_H264, > .required = false, > }, > + { > + .cfg = { > + .id = V4L2_CID_MPEG_VIDEO_H264_PROFILE, > + .min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE, > + .def = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN, > + .max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH, > + .menu_skip_mask = > + BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED), > + }, > + .codec = CEDRUS_CODEC_H264, > + .required = false, > + }, > + { > + .cfg = { > + .id = V4L2_CID_MPEG_VIDEO_H264_LEVEL, > + .min = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, > + .max = V4L2_MPEG_VIDEO_H264_LEVEL_5_1, I went through several datasheets and only newer ones (H6, H616) state max. supported level, which is 4.2. Please change it in next revision. After that, you can add Reviewed-by: Jernej Skrabec Best regards, Jernej > + }, > + .codec = CEDRUS_CODEC_H264, > + .required = false, > + }, > { > .cfg = { > .id = V4L2_CID_MPEG_VIDEO_HEVC_SPS, > -- > 2.27.0 > >