Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp598218iog; Mon, 13 Jun 2022 08:52:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDXVeAnWumWobs7T1pgw5lT53hmkN5JJmKItalaluBI/I1Q3nqfepXh/DZpy8fCdFUW5iU X-Received: by 2002:a17:902:784c:b0:168:911c:590d with SMTP id e12-20020a170902784c00b00168911c590dmr316797pln.88.1655135542699; Mon, 13 Jun 2022 08:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655135542; cv=none; d=google.com; s=arc-20160816; b=IR2woIiIndbDyIynZZEY2UumjPDUDoe1vfGwE1uLa6n+bmRIe/Dg3e/zGIqRSvG+6n xA9qs/UQJxh3Kuq3nVlnXHI6cATQzzqeByWFGtuGVmmk0O8oaQm2vTy4csbND/sbqjCw qWTIg8ZO0PCzDuB/gR9gdt+ZE8pa1U0BUe+oiEIVH4/h1bs45H91UaFO0l4+9FbvQ5yp bUkwZyI8DVe0tyGWFjbfsIHiXFkzbokXVeiMz5AlnzSuDShfaa/D/jUvyvFnpNS7pgrp JQxYQgnRWJR0eJQeg5xJ9YaH6bkjVCO8oKfF0hf2Y2ynrfv8Ucbj1A4bGdZXSapqxPQ0 ymlg== 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=D6MBaEugAi4uByH7+YIMmbn9u9KC6l0mBkZWo5ROV+Y=; b=R6RHZ6NtwPcctLxX5G5I9BwtJZHOV46/HDIriHCs7xPpPMKJFitQ3wQfa/Itz6kTso 1H+ZCL1OyKv61j0n79nwxFOh7m1JC6IV7/2+JnwEYUJkZ5LVXflDYUZbGID4OQkdKOLC paW7v4wScSn2JyaacIC0Ou/SsLERuYnrKOhS6QhrkZG+FXkyE2qnWyQoCL5PUHBc93Rv E0DoWa6cvwIAWB+QYk+3sgIuGiUBt4MMVdDaHMjUFwJxFl7KkroHRxLQ3cPEiVJXPWf5 sqOtg/OQm8yULbqiAliMBubnb4WdCJQViQf/BOAKE2ky3U4i7vetgPwIGF/mkZMbJplq RJpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tyjyfN03; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n66-20020a632745000000b003fda3856f04si9821969pgn.157.2022.06.13.08.52.08; Mon, 13 Jun 2022 08:52:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tyjyfN03; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354971AbiFMMKD (ORCPT + 99 others); Mon, 13 Jun 2022 08:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358870AbiFMMEz (ORCPT ); Mon, 13 Jun 2022 08:04:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8141450467; Mon, 13 Jun 2022 03:58:00 -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 B123461257; Mon, 13 Jun 2022 10:57:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFBB1C34114; Mon, 13 Jun 2022 10:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117879; bh=yw+995S1gaIxVOh/n+ucL7VVwDzcFxIfBBiYfybKnW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tyjyfN03kGRfNytRrzMzyafGhizDeGwpvFxTpT3MeB/WkrRlrIVfBSPf4jAUta4yc 1S1mWf16F6IQ7jVZMO6bSjriuN6FLaQqdHdBM2/UWEAZ67CQpatvrrQclu8M6bkWkK P4BuQ24dbVfkMa3+jMvxYl3+io4iFnsQX+gyuKno= 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 4.19 165/287] media: coda: Fix reported H264 profile Date: Mon, 13 Jun 2022 12:09:49 +0200 Message-Id: <20220613094928.879822908@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094923.832156175@linuxfoundation.org> References: <20220613094923.832156175@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=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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/coda/coda-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -1894,8 +1894,8 @@ static void coda_encode_ctrls(struct cod 0x0, V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED); 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, @@ -1977,7 +1977,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);