Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp686818rwn; Thu, 15 Sep 2022 05:11:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sBjpX03P03r4SaHKS/X60xOK3AsVdsSN3NsXc49fyledRX0HydGGHIBDtm0flb10/v1eQ X-Received: by 2002:a17:90b:38d1:b0:200:8178:1c94 with SMTP id nn17-20020a17090b38d100b0020081781c94mr10363037pjb.219.1663243860002; Thu, 15 Sep 2022 05:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663243859; cv=none; d=google.com; s=arc-20160816; b=o2RmaR01CbEytjIbSl4Nwi2M/+ArWIjwTIXM4nnCRsj3kPEebu7K9C/XVEJgeDN2EW EAM1C5m/tXVo0o3gbmWiauwOaYyqQSj97vZvapLIW8qGQqoMhpyKCTPKoQ/APJ/13XgQ oihCvCVUuXjVBZGSVMsrQ8Y5wjozRoKvBsB7bTtWaU4glpjK4YX0b+hrLiyztMmqe0GI wja0m62njJW/m9OJg2WY5i9qyhvZ7CCM1TOHCp4wFb2iOyAFOx/Snmgw7HE73AeTz4LJ 93Y4QJadaujBUfndD9oHCynnOCaM9Z+gCCdq8riuKso99f+JJxQ0HbprAqb1HoENX3a0 WAcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=XojuKpZCUNxY4C6Madj4ukhRH/8ix5f31tF8a8eQ3Js=; b=ZwQ/mC4/IS45BjVbGY3oz7xsHWmf+fRFQwytGcO0wSzM32mAttEuSvcQuI7iW/Io8s wjnHQxYpEhnLYF5ESa39nywEdLQt6FjtU3ZNfm0Vf2E+ctHty5/xpizRkw/vQRjQ4eCs 3qOxjkmit1f7rTQMW3RJoXQVtt26M50D551lkd/MqORMV6J5DXA1J6sKXcckpm9IswiS 6CsEIqbb8UnBb9x00X2T5Sl+HMQhz1yzn0Iu7Ju84VyEXOZHM2eYuGPqoM0su08/sFUt EIYDGNOVGronWr4E0n8sngd1NUSak/sts9fz7TnAWNgaHu728Bye9PaCi++jF2st8UdZ Aqeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Z+09M7b9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a17090a588300b00203336ddd4asi1673356pji.56.2022.09.15.05.10.48; Thu, 15 Sep 2022 05:10:59 -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=@mediatek.com header.s=dk header.b=Z+09M7b9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbiIOLzx (ORCPT + 99 others); Thu, 15 Sep 2022 07:55:53 -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 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS 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 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; -- 2.18.0