Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2125665pxf; Sat, 20 Mar 2021 05:21:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2eVCPcSAgDiW49dEJKDBqMwiEEUdpHp6UVb/e9TpZtcTPYyXpcXOmsvDhf49edodDaPMZ X-Received: by 2002:a17:907:4cf:: with SMTP id vz15mr9334608ejb.113.1616242900825; Sat, 20 Mar 2021 05:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616242900; cv=none; d=google.com; s=arc-20160816; b=NIRSgLr4JMlT4EysjbT3VtrR45a0fYtechPDJobEu3VFCqYmVYIJn0RfpPhNA6X7R6 GnK9FgmhMjTQlZnR4Gs8GGLfODl6pDv47Q09kYwqp+Yhnvx0juiXLjjQWTMravIuFtQg EWlx86UBgNQKaLPcryhn/i32M52C9aDI3ntrP5BAVYSolV9EqWc2E0IZ+GjvwLHeupmq hTAVCGZERsOGLAzl9DCxOdSk0WMReHMDbll99iMDl9+gpfot38Ex6E0RGlPrqGYJ2+iQ J9SVhSNARbsbcS5hSmG2npf+8OpGFp+XU5HLfmoM9uFCtY350xQ+EPAqVCscnsFGQPOW SFaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=tVE4x7279dulrhPJlk2nIQ2U9IDNNoihp+Za84buqWM=; b=yR6Ca8HGzkjwqSlbRUY1a54Y3ZjqDJ2UTc51AmOoA7wEs3HARK/VhRiYEoGw0n+dcX wHfb2G4xkWRuLG1oRVvMtXJR9c4NfxkRTs4Ri7pyJtkz9rAjdv+P4yoaZSBkUqZSGj0z 5JfjxRJwxQTjM6UDTPIc65nMpC3EebdeQWKIRbooMbvedTOMMo3ZDnwxvsMnujR5qI5o xshr5oU7eExymdV0xnl+SMkwZQGUAVeKu6LTrIZiObLEqdEVYZZwN/W8x6FKC0RGikZ4 ixBaiV0UxzX3P8WIIeheqGchnkrE0ydvJ5lfQn47B1m2BzSB33nuW+bKe2F1+FEdAPfc IoGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=q2TIwjTK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si6772989ejq.232.2021.03.20.05.21.18; Sat, 20 Mar 2021 05:21:40 -0700 (PDT) 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; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=q2TIwjTK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbhCTML6 (ORCPT + 99 others); Sat, 20 Mar 2021 08:11:58 -0400 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:54427 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhCTML2 (ORCPT ); Sat, 20 Mar 2021 08:11:28 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud9.xs4all.net with ESMTPA id NaRvlS5W4GEYcNaRylTQuT; Sat, 20 Mar 2021 13:11:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1616242287; bh=tVE4x7279dulrhPJlk2nIQ2U9IDNNoihp+Za84buqWM=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=q2TIwjTKXaWIMETWCKQKh8tjGmdgPdigQwcqbbYrJC9BsDjXWeK+ZKFDkttQBSQBc NpgSGeXvnKqP5jXHo/9Tu2QfkwTLhGD1sHyYcK+c4rXbXj7Ln2V2MybRJpqJ7bkhw0 G48HihQHuJQAZl6F/9arzuEGIrl03dDvpPxTFyumiG6nzUe1Q/wqhgZXfUX8hGcMGJ w2qvi6lX9LkqLGtzyZv0RxGEVNZ4iPYIItUhBXTlL377nfyc5N1Jv8+5r7qCE6kVbV e29fomuTLI58siPaJWxgZsXklRxA3I6nJCUcZ9VvlSXJTt9Dv8NBR32K5LQSECE4Vz MrH6PJyper73g== Subject: Re: [PATCH] v4l2-ctrls: Fix h264 hierarchical coding type menu ctrl To: Stanimir Varbanov , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Ezequiel Garcia References: <20210302224206.3680649-1-stanimir.varbanov@linaro.org> From: Hans Verkuil Message-ID: Date: Sat, 20 Mar 2021 13:11:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfPeJJHPGPPuUFlDOD9F+6eYtBXoZSZtc/69Xlcr1sCxYgikikxS8HUH03yFl8nRIN2mWJuWdhTrHZNc2WqkG17E9V+6BRvgseJeuTCgVZ+iNarjDAALD haxidnokkQG1lVMhEgK1wf7fRaQJL26hj2mh0SDErvxyqN2OFenxE8nK5iciHFg9vnfbnvRTgqWGXB2pk6taKq+jF8BadK+rugvoCnd/bFg5+zeiWDlUauRW zJWGIunV0/O3fpyhINC4m+XoqTSvxPoomYe0gCAKMsx6hVA4/4SibpHXXbnpULVOJb9XP0SNpmkGoke3DTUPtmD1uyqjzFGN1XsvI5rs8iKw8Hp0YNwi+I6O 8LFWAEsZ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/03/2021 12:53, Stanimir Varbanov wrote: > Kindly ping for review. Weird, it was marked as 'Under Review' in patchwork, but it wasn't delegated to anyone. I've changed it to 'New' and delegated it to myself. It looks good and I'll pick it up next time I collect 'various fixes' in a PR. Probably next week. Regards, Hans > > On 3/3/21 12:42 AM, Stanimir Varbanov wrote: >> Add a name of the menu and fill control type. >> >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/media/v4l2-core/v4l2-ctrls.c | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c >> index 016cf6204cbb..5d99e2294335 100644 >> --- a/drivers/media/v4l2-core/v4l2-ctrls.c >> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c >> @@ -421,6 +421,11 @@ const char * const *v4l2_ctrl_get_menu(u32 id) >> "Annex B Start Code", >> NULL, >> }; >> + static const char * const h264_hierarchical_coding_type[] = { >> + "Hier Coding B", >> + "Hier Coding P", >> + NULL, >> + }; >> static const char * const mpeg_mpeg2_level[] = { >> "Low", >> "Main", >> @@ -697,6 +702,8 @@ const char * const *v4l2_ctrl_get_menu(u32 id) >> return h264_decode_mode; >> case V4L2_CID_STATELESS_H264_START_CODE: >> return h264_start_code; >> + case V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_TYPE: >> + return h264_hierarchical_coding_type; >> case V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL: >> return mpeg_mpeg2_level; >> case V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE: >> @@ -1326,6 +1333,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, >> case V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC: >> case V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE: >> case V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE: >> + case V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_TYPE: >> case V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL: >> case V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE: >> case V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL: >> >