Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2205088iof; Tue, 7 Jun 2022 23:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTahWtp0P+Ab9/bIjifiU0RZdD9KwxezWxlGmk9qrX4IQWF4WRlNIZjHvpRLJgDt4wEwf4 X-Received: by 2002:aa7:814c:0:b0:51b:b3ee:6be2 with SMTP id d12-20020aa7814c000000b0051bb3ee6be2mr33137534pfn.3.1654668560639; Tue, 07 Jun 2022 23:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668560; cv=none; d=google.com; s=arc-20160816; b=df9RjOP0RYYEdXUa6vWh1PTJyf7BqffX5G808aahTlIYgAx/4diRPtS/gUYOQHxnSw 63BCVXHkwpXQtrTSC1JkCEvSAkiApOuZ24hHNOlFheeK2HGOI84p/XAynqUz53uTrWMc LD3Gq221yxI+vbIbD4m9Ct9ia2+W19XoVs/00m03kEV/cPs8xXXXUS7wRE935VV3GPyq azQlD+O0B0qkUWm4GCEmHbnolmcPF1x5kdNY7P44cvLJuwS9tYVeC9g/w2iHPrAiOVuQ InLZOCgkt+t4b0XqNoOhtpNVTs3Nz7rKOhsi7OPWvRxtLLRIlKy+79tJwLbVnSiChwbn ZIWQ== 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=kJojCDf9gHu+XM9Md0kkfYcCnmQmbh4hw8NjdidJN3I=; b=MtSUkYbwkSPl9NPINRudYW+rVq20lnZafCABYTDzRjVyuV9Ghs1sEIfP8MTR8l18wY sBovLp92peYQjodHbKNJ3Tp4hf0kmQwsZWjugBqaO2AAU1XI7lfHMy0a8eq0ZOMr8J7g U5SaOq3Qz2Cx7B8rglcNVvKtQuiPU+23ScR6ucSbjQPi1kV/y1reWlv/L/tXh0Yqmlf5 yChcIJ4qLrIFs+xOn+YZMLGfEEipdtkzu0a5lQVCCYqWTDKpkoxCWQ9yme0CSG2N3Xk/ XoVMBKD4d1wm/XWZxgdnUK4DDVuMGE0Ons8LPf+zOd6SF95XynrXc3wKaUC1GrnDky3J JgBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JRqHkLIV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x22-20020aa793b6000000b0050e0530cfe4si25028002pff.279.2022.06.07.23.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JRqHkLIV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 A0DC0264DE5; Tue, 7 Jun 2022 22:31:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355158AbiFHBeK (ORCPT + 99 others); Tue, 7 Jun 2022 21:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382467AbiFGWYC (ORCPT ); Tue, 7 Jun 2022 18:24:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08BB26D37A; Tue, 7 Jun 2022 12:22:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id D5A24B823CC; Tue, 7 Jun 2022 19:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 459A0C34115; Tue, 7 Jun 2022 19:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629755; bh=Oi1NSIjcbY9SuzHX20ZcJb9MNusOYrpRgA7ZUNRtZFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JRqHkLIVe9EpQUgPEuFJqnVStF1eDW7u2egR3clA7Xcn0zeoL5cQI0HwkyenoK3+l ymSeIt9U4J7HEd2bvB61kNKl4mS6PKBfGIDTuNBrkj1mipflvcjxpd3+hEzar5uOD6 jD+968HE7awNJXKm1CCOrGBXLI9t8hNxlNHbaLhc= 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.18 803/879] media: coda: Add more H264 levels for CODA960 Date: Tue, 7 Jun 2022 19:05:21 +0200 Message-Id: <20220607165026.167855829@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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/chips-media/coda-common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- a/drivers/media/platform/chips-media/coda-common.c +++ b/drivers/media/platform/chips-media/coda-common.c @@ -2367,12 +2367,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,