From patchwork Thu Sep 15 11:51:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 606669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9FA1ECAAA1 for ; Thu, 15 Sep 2022 11:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbiIOLzv (ORCPT ); Thu, 15 Sep 2022 07:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230327AbiIOLzb (ORCPT ); Thu, 15 Sep 2022 07:55:31 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66056AA32; Thu, 15 Sep 2022 04:51:44 -0700 (PDT) X-UUID: a393d04e339944e291a7c2b06be6d449-20220915 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=XojuKpZCUNxY4C6Madj4ukhRH/8ix5f31tF8a8eQ3Js=; b=Z+09M7b9nMVgON3lUU9Ty8w49WszrIE9Hl8V2vlur+9FyWxrpbtTPZAPzXMpvCW8V3kfAHOXGgMZwRQkFGZWEeoOT25zepObPhBsSy8vszPJCbGQEkUuAzKYIx8g/NVJPi16XJUFccQR58j4VEGjHrV9m/8h1lPba2Af6akc4IU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11, REQID:cdc27629-086a-42e6-83f5-44f08ad779f2, IP:0, U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:39a5ff1, CLOUDID:5710c17b-ea28-4199-b57e-003c7d60873a, B ulkID:nil,BulkQuantity:0,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: a393d04e339944e291a7c2b06be6d449-20220915 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1673206933; Thu, 15 Sep 2022 19:51:39 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 15 Sep 2022 19:51:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 15 Sep 2022 19:51:38 +0800 From: Allen-KH Cheng To: Matthias Brugger , Mauro Carvalho Chehab , Hans Verkuil CC: , , , , , , , Allen-KH Cheng , kyrie wu Subject: [PATCH] media: mediatek: venc: Add h264 extended profile support Date: Thu, 15 Sep 2022 19:51:35 +0800 Message-ID: <20220915115135.7271-1-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add h264 extended profile support Signed-off-by: Allen-KH Cheng Co-developed-by: kyrie wu Signed-off-by: kyrie wu --- drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c index 13c4f860fa69..ac2ef6275d78 100644 --- a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c +++ b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c @@ -243,8 +243,7 @@ static unsigned int h264_get_profile(struct venc_h264_inst *inst, mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE"); return 0; case V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED: - mtk_vcodec_err(inst, "unsupported EXTENDED"); - return 0; + return 88; default: mtk_vcodec_debug(inst, "unsupported profile %d", profile); return 100;