Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2188628iof; Tue, 7 Jun 2022 22:37:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1gDuyJSz3h9r252vFziJ2Z/EHv/qmjdCi/VoyGMWh7B/csMbGNTQZAd8XxLVoUl5Csq/v X-Received: by 2002:a63:6bca:0:b0:3f7:a42:e1b7 with SMTP id g193-20020a636bca000000b003f70a42e1b7mr28898825pgc.620.1654666624965; Tue, 07 Jun 2022 22:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654666624; cv=none; d=google.com; s=arc-20160816; b=IEfxpPEtsu7BO9b0nDQDixJTKaVzI0/LX4HecgJPu01QeIjzrkUsgl+XBAoVI4452O EwCHSfe6r0z8MYHBR4gBOWzR2lCC2ibIH2dplt2ZzxIzOZg07ErBiyxe/UFLlWPNQF0v FErfAMLWrqEjs/1zcTJAk1EWWtI3IgOyTbsjlqTulhOjeSGrQuwTkrpk88h3s900Bx9I fzVsQTpw8A4myNRNQyviagam2NR6O0b/My/dYIdtpe5pBQ3F4sg77BUzuxrGR9dIhz/x 5kDZP3CrI/oOfxIiXPqvRw8cAvy9/R+8AM3irQ2rAJj2G/Yi7h2ko5TXy+rvzlHAhZrU uACQ== 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=+gwyJXK51qI9OMOPgoI008hXFVDF76Mb8CDh9PUOm2M=; b=KzqwjGVyLDYlvobJYYb3TXao2wD6ouZFcX6YPgRkFvOU3mj5x4g9Ar5O8psDF/Tat2 ZVLn5gP4G3HOoyymnsFFv538/B4lyaMhcixcNgjvHBAD+9bWRKzMpl3VikM1aY2wPC4R uJQJf+1++nnHaT7B0+iPKm5jCHMoU6S8I41j4KjQZtrmqmlvnB3IIm/LDc3snylQZ+B2 mSIjmxWiuu5rt3RrCuwDo3mMHHymBtbIilrZNiAvaVx+IgxewsB+MoXMURemdfrs1ll2 eELM6sspMXjBLfF6eXcr+rv+p5DnBG86pqapnnwqct8NWQ0a/e6aML7sItpoxqDK0SnQ jbRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RXhMIz7S; 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 w138-20020a627b90000000b0051873a68dd2si25829806pfc.252.2022.06.07.22.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:37:04 -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=RXhMIz7S; 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 026D7411DE1; Tue, 7 Jun 2022 22:13:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357025AbiFHAeL (ORCPT + 99 others); Tue, 7 Jun 2022 20:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383427AbiFGWXI (ORCPT ); Tue, 7 Jun 2022 18:23:08 -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 C40B526D365; Tue, 7 Jun 2022 12:22:36 -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 1E86DB823CE; Tue, 7 Jun 2022 19:22:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 849E0C385A2; Tue, 7 Jun 2022 19:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629752; bh=+IfqOCzwaOrmz8FUKlrazyobBxrUXzibkiJetByMUS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RXhMIz7SPIlM1xk3LzP3uUEF5mjxGbrWrHZIc52O5HLkI+Mndt8vsTvSKjRDO2RTH 0sZ0Jzv2kbh6x43uRQL2xznyMPJgXciQ+v1gkGxnV8xxNtIxbH0ltvXNcGvwm3hEw8 nJQYB5cFn5atqcKpflqIunwaIEqvueLRiQ09ydRI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dufresne , Ezequiel Garcia , Pascal Speck , Fabio Estevam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.18 802/879] media: coda: Fix reported H264 profile Date: Tue, 7 Jun 2022 19:05:20 +0200 Message-Id: <20220607165026.138177337@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 7110c08ea71953a7fc342f0b76046f72442cf26c upstream. The CODA960 manual states that ASO/FMO features of baseline are not supported, so for this reason this driver should only report constrained baseline support. This fixes negotiation issue with constrained baseline content on GStreamer 1.17.1. ASO/FMO features are unsupported for the encoder and untested for the decoder because there is currently no userspace support. Neither GStreamer parsers nor FFMPEG parsers support ASO/FMO. Cc: stable@vger.kernel.org Fixes: 42a68012e67c2 ("media: coda: add read-only h.264 decoder profile/level controls") Signed-off-by: Nicolas Dufresne Signed-off-by: Ezequiel Garcia Tested-by: Pascal Speck 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/media/platform/chips-media/coda-common.c +++ b/drivers/media/platform/chips-media/coda-common.c @@ -2352,8 +2352,8 @@ static void coda_encode_ctrls(struct cod V4L2_CID_MPEG_VIDEO_H264_CHROMA_QP_INDEX_OFFSET, -12, 12, 1, 0); v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops, V4L2_CID_MPEG_VIDEO_H264_PROFILE, - V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE, 0x0, - V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE); + V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE, 0x0, + V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE); if (ctx->dev->devtype->product == CODA_HX4 || ctx->dev->devtype->product == CODA_7541) { v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops, @@ -2434,7 +2434,7 @@ static void coda_decode_ctrls(struct cod ctx->h264_profile_ctrl = v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops, V4L2_CID_MPEG_VIDEO_H264_PROFILE, V4L2_MPEG_VIDEO_H264_PROFILE_HIGH, - ~((1 << V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE) | + ~((1 << V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE) | (1 << V4L2_MPEG_VIDEO_H264_PROFILE_MAIN) | (1 << V4L2_MPEG_VIDEO_H264_PROFILE_HIGH)), V4L2_MPEG_VIDEO_H264_PROFILE_HIGH);