Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2099894pxb; Sat, 22 Jan 2022 16:15:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6jqVNzNcM+y4yOyebVwhXkhbu6m3qD2VU7M9gLMpmsENDwEX0AGpuQctP/RFXX6cwJjpn X-Received: by 2002:a05:6a00:1413:b0:4bf:a0d7:1f55 with SMTP id l19-20020a056a00141300b004bfa0d71f55mr9035162pfu.13.1642896929409; Sat, 22 Jan 2022 16:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642896929; cv=none; d=google.com; s=arc-20160816; b=oFb4O1T57YQGYLHDkoRz/Tp5EEJ5OzoLzR4jAmnHLw1+QfGHl2SIQja6NMstee/thH VH+PR4u+M5mD5Fl0hsKk5XNNAqzsty7k3IBdB7HY1Z7kro9AxhPbqnOVMTWPdJlxVi8d v+4dPwpPZ59cXXzj42XBy/oJBAHLrTszvGez2uxl+ugRxcla0HWJ7qyHBbULUxA+THq8 MwNDu8mNEth1qTeZWRQmqnQGy/RTnOSnfFVVt2BWqtQ9MWZOB+g7+9QjcRzKo4EYHwQD AtwuXCNbjRJsxCuA1qE+3KQZKJvRiW4DIU5+2ecoX2FVCzAZpvRsnrf0oqxe8IEWD8Th mbMQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JpbFu6crG5lRCx3anTIF77bO73yhIdPtGUEEHfN1H7o=; b=iIzT3LW+td1MuHQRpuCG2RquySWe83SJjydwVGag7QgGOqxDPvsLubZK6R6wsqp8jN 6t6OKhpk8xei3jQ7p7qjrmYddDmcatXnfyDgmu5dEDXKfWi02uXw3Zwxz45WGGtBhWC1 Cj8A6xHxUs37rtDbel4j7pIat74yhvHVl7cbdMB4i+52XiuOPm9rCyLpS9HH4c98bmJ/ il1dMmBSAZtHRUdhQJ9uZbnSRD4zCOEYE3JPeMJwmbVsoa/m5QJUXSszAtvVqvUYMG4c Sl7YQIop0LIrnyUBsAP7z6O6jnCalelumNguOkZh2chttx15khjnrIJRTJI3yU3FmAkv MSQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si10138756pfj.217.2022.01.22.16.15.17; Sat, 22 Jan 2022 16:15:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232580AbiAVDxr (ORCPT + 99 others); Fri, 21 Jan 2022 22:53:47 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:58100 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232559AbiAVDxg (ORCPT ); Fri, 21 Jan 2022 22:53:36 -0500 X-UUID: 0fb3939108dc4abdafd3024f165c5ee2-20220122 X-UUID: 0fb3939108dc4abdafd3024f165c5ee2-20220122 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1772493738; Sat, 22 Jan 2022 11:53:34 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 22 Jan 2022 11:53:33 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 22 Jan 2022 11:53:31 +0800 From: Yunfei Dong To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , AngeloGioacchino Del Regno , Steve Cho , , , , , , , Subject: [PATCH v6, 09/15] media: mtk-vcodec: disable vp8 4K capability Date: Sat, 22 Jan 2022 11:53:10 +0800 Message-ID: <20220122035316.18179-10-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220122035316.18179-1-yunfei.dong@mediatek.com> References: <20220122035316.18179-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For vp8 not support 4K, need to disable it. Signed-off-by: Yunfei Dong --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c index bae43938ee37..ba188d16f0fb 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c @@ -532,7 +532,8 @@ static int vidioc_enum_framesizes(struct file *file, void *priv, fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; fsize->stepwise = dec_pdata->vdec_framesizes[i].stepwise; if (!(ctx->dev->dec_capability & - VCODEC_CAPABILITY_4K_DISABLED)) { + VCODEC_CAPABILITY_4K_DISABLED) && + fsize->pixel_format != V4L2_PIX_FMT_VP8_FRAME) { mtk_v4l2_debug(3, "4K is enabled"); fsize->stepwise.max_width = VCODEC_DEC_4K_CODED_WIDTH; -- 2.25.1