Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp445835iog; Mon, 13 Jun 2022 06:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxssEGIvEEPC6o3l6Gp54qiqKJm3RO/rQuCxIWq2+hpYWfgblC3+1twZvsEeHQxsd7vJtLo X-Received: by 2002:a17:90b:4acd:b0:1e3:4dab:a14c with SMTP id mh13-20020a17090b4acd00b001e34daba14cmr15438964pjb.5.1655125711313; Mon, 13 Jun 2022 06:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125711; cv=none; d=google.com; s=arc-20160816; b=uNY/qbVZwn92VmP3mhz+sGS2Gban/0C7wQQsc11wPfaE10M/4XapE1XLt7aG5tFo+H fOoeze7p4l6CQ5NkItSg7zXmeksnERe8udiwgupV9XkJY1cfwxBZZ1HmrHqFdQDd8SoP jNJsjV5c7lFEEUOn/IlwFWk/Qwxmv+INYvqmd2VZ4WQ4KB+kpk8M6vm5THK2QW+aUCTX nh12vObHYAyiyDmd1EwCVzrxKM+7eGCWwkLBfVA0OztkY0AO6NJCZKBA7muVH+SDz4L1 NE3kXsi7WeQ2U1bROi6oyc2U2w3jZmswuJn5e33o+u5JAWGW34QXCpQdkBNl9Lybtjf6 hfhw== 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=29ys9X/t8nGvuoi1GZmKoy7CFFQ/8+tsHHxNHFp1oOc=; b=aoMJTKQGnCS4i57OKjIRsF64r37e3LEiNzluLOT7Nbu8PtQbjTlEyA5RJ9n9GODNhY lFWT+dt8Q1ju+U1kxKtNjySm9BXRy7YBe/2NBuk/N0AigB/TkHbLlgkwgNUb9Xf6GVGn oSSipsAL2NM/4hLGJaQKCAtLKNLRFWPnDOQ6L9CVC9TpO+wN8ayLLd5AQsdpciWj+Uc1 N9eJW2ZQ86HKQkYiWxwqkbs1JZ97EuRTu/r1pxb/ksaibALnfurCqP/S0xdm3RFVm5V1 l0x4zDpgf4nKNYP3iOFQdxtQOAHEt3cssagB1bGyUJjeuaXbcB9UnCeZJWnNEXJoA77H MHWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nLDb3Yke; 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 o3-20020a63f143000000b003fca01bf92esi8077615pgk.482.2022.06.13.06.08.16; Mon, 13 Jun 2022 06:08:31 -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=nLDb3Yke; 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 S1354329AbiFMLcN (ORCPT + 99 others); Mon, 13 Jun 2022 07:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353859AbiFMLZi (ORCPT ); Mon, 13 Jun 2022 07:25:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5F83D1D3; Mon, 13 Jun 2022 03:42: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 A45E7B80D3C; Mon, 13 Jun 2022 10:42:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5B28C34114; Mon, 13 Jun 2022 10:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116956; bh=FrRcq5qCLA2rBiOQvt9+uEOo1+8Uf5mrgrUITQM/xPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nLDb3YkeNt3SSz5hNvFybPEPMlM3itJ2l+8J+j6TuZ2TZOMI3u6XngnOLwC+wyXEp Joq3Zy85fMhXJq2mxKyzg1wSkPl4/u+OS5A+t5hiy2drDmat/pduIEnOWFDCGfwqlt 5glGQ6/4/xSH2Sxa3SY/z4GAsIrxAK+beDID4vWg= 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.4 246/411] media: coda: Fix reported H264 profile Date: Mon, 13 Jun 2022 12:08:39 +0200 Message-Id: <20220613094936.152716613@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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 @@ -2172,8 +2172,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, @@ -2254,7 +2254,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);