Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2136147iof; Tue, 7 Jun 2022 20:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoG1RhybzPEWkGeBuj6mdclNj8XknASYnphSrBducdL686Ru/zy2x/RdkcEdZJs9M0i5M/ X-Received: by 2002:a05:6a00:1482:b0:51c:6134:de1a with SMTP id v2-20020a056a00148200b0051c6134de1amr1992969pfu.31.1654660680983; Tue, 07 Jun 2022 20:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654660680; cv=none; d=google.com; s=arc-20160816; b=Y9Y/p6lHbsEX+tT66fI8oV8CxDLLeZB6Djxt2Z3yqQ7tNqZM97yD808ByblLf4r0Nh hVJZ08FLJl8kcS8gvItXcvK821Ne/yoXiZEL4h/7ab5LHltugV/4dOG02OvXINOCyXIR J7QK1vHXnmpqE7vQH+2dgHotR30p4Q4COQ8U2bO26dslNvwj8W/NOtpLHo2BFN9oY2+7 fc38fGTfFVA9eMatu2oU/p/myYVO+l3oKsRrGMDF5ERF8ekJkRdy3EZI+fOInEMCkfjJ cymgQMUJEDj57wag93WE5+tUoebBrwjcHiJNx2NSIXyetVkV7/7m/eaI9/UhH2PeUEt2 3pgg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Rhd86wKNDMFc0CFsru/rfpTOka1V/9E1mgkHpg0NqLQ=; b=BR2oEyq6r3OszcTE+W/dGmoOuh5pEtEMOYY3MTKUfziAncBdIUpWd/CLnZzX+XJ40s NskoVwhlXOL0ee5HcyNGUZRROwIeSciSUBkkKl26FZ341/ztXQZMl6Tc/MvCHwKhLSPo wyZ6tt6BBxazLBQurV+iZ6mX40eNaEHsxfyJQ+N0o3PFbynX8vBwdkOa5y8puodgjgDz pZ8VZEH9DR8M+jDIfMST10wfw0JL7anB+vIkuOiFBREJuGvHhLIjF2TFf5O+DNJFF2vq hYj31SAIyuA0qU/Uv3S1UZphQ70r9+BuX9vTcVRTdgV0TAdt1I9BRtWMuWmQ14Pr4N7d bOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gyS5tGd1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p18-20020a635b12000000b003fbb432d3c0si27033896pgb.643.2022.06.07.20.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:58:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gyS5tGd1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC1E039E4BD; Tue, 7 Jun 2022 20:19:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238733AbiFGSEi (ORCPT + 99 others); Tue, 7 Jun 2022 14:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348985AbiFGRqk (ORCPT ); Tue, 7 Jun 2022 13:46:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B5113325B; Tue, 7 Jun 2022 10:35:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E766661480; Tue, 7 Jun 2022 17:35:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01309C385A5; Tue, 7 Jun 2022 17:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623357; bh=wdiVva0EXRZGKA3to6zEFJYM+qM124naaSAthz/G3Hs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gyS5tGd1iqS81n1bbU3zPQenT6KIMCzgOD1MIOkpSmht9oLX0uXSSWAHQSP4smxoT 7WwVG7l05ShS19XhB9n+o/ZAMgjnzK2AZHbEzKbG6NsqzkseHvrf439EaU4HCg+nF8 naFmmNR6qfSdUfiiH3zB1QANeRUY1aWF2bQukano= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Philipp Zabel , Nicolas Dufresne , Ezequiel Garcia , Fabio Estevam , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.10 389/452] media: coda: Add more H264 levels for CODA960 Date: Tue, 7 Jun 2022 19:04:06 +0200 Message-Id: <20220607164920.156614975@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Nicolas Dufresne commit eb2fd187abc878a2dfad46902becb74963473c7d upstream. Add H264 level 1.0, 4.1, 4.2 to the list of supported formats. While the hardware does not fully support these levels, it does support most of them. The constraints on frame size and pixel formats already cover the limitation. This fixes negotiation of level on GStreamer 1.17.1. Cc: stable@vger.kernel.org Fixes: 42a68012e67c2 ("media: coda: add read-only h.264 decoder profile/level controls") Suggested-by: Philipp Zabel Signed-off-by: Nicolas Dufresne Signed-off-by: Ezequiel Garcia Signed-off-by: Fabio Estevam Reviewed-by: Philipp Zabel Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/coda/coda-common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -2358,12 +2358,15 @@ static void coda_encode_ctrls(struct cod if (ctx->dev->devtype->product == CODA_960) { v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops, V4L2_CID_MPEG_VIDEO_H264_LEVEL, - V4L2_MPEG_VIDEO_H264_LEVEL_4_0, - ~((1 << V4L2_MPEG_VIDEO_H264_LEVEL_2_0) | + V4L2_MPEG_VIDEO_H264_LEVEL_4_2, + ~((1 << V4L2_MPEG_VIDEO_H264_LEVEL_1_0) | + (1 << V4L2_MPEG_VIDEO_H264_LEVEL_2_0) | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_3_0) | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_3_1) | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_3_2) | - (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_0)), + (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_0) | + (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_1) | + (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_2)), V4L2_MPEG_VIDEO_H264_LEVEL_4_0); } v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops,