Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp337473rwd; Wed, 24 May 2023 19:27:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Dc4094d5LfBAEK7mUPt1sEYLFAMBYCHP5WItczJ+OTLehWsatnrph5OovZnkaPGE+2Xvv X-Received: by 2002:a17:902:9896:b0:1af:e733:4e8c with SMTP id s22-20020a170902989600b001afe7334e8cmr2671030plp.68.1684981668503; Wed, 24 May 2023 19:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684981668; cv=none; d=google.com; s=arc-20160816; b=xVh2oTIrxLtjZ3KSsKNibUAj+kEvIC4zFqp4x90sUOty4VL0egB4GFCLEtJXJEhHWr 5axgRO1qavQ9AodBkgtv8WtTJPW5zYrHCswNz0o7aSXoKsZ6k/+edXT82I45fzBx7CQ5 thc/66g8A624qYUgKyeAqNLX0+OfyA05lPbBYzxN5NRB/Fwm8Q+d0N/WxSxOTvC6p7Or Xah0r2KeSrotfy9Wd+Ll6H07Ee+JXFmFPst65uLv06JxD6jN8Oodq//efmMu/wvuadyY aPShLuCYLZ92T0SvsFTaVxIImjKr9tIdYomVNA/sByXJI1TzZAbtJhO05NUQFswB5NCR RIpA== 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 :dkim-signature; bh=Nc6mdgptg+DuT79FA6ujYAd+eZWI8xOh6cDke5UG87w=; b=s9veKFaRRj29ggNshWXXtFHAYpQJtmueh2kahm5MSEhGVvEWy0E9BgnNGlhOqIxoeq oj8wn9q48ckm106XplLKtoGUI3fXT0qvFzDTml7UMh9PsoCORpox+DHwqNDynHlib0aT AN2wWchosoUgvCsG1RC0O5Kjrc1S7Kb2zLBjadaGi9JAZcrjz2LOcEs8nhlS+GlTILbA LEfDMOYy39afZsGhtjAXLAa9AsZEla9K36hapxgYTyyiJb/z1k81HnVeYxBUYidGdyWD FNeZ1Bzk7DDbbqRGAN3L2hEB7aYsEQkUlMRqK9Y3lDob3Mx4hImcHRtHZRAaGOdejg7V 7DcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ijXYUH6c; 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 h24-20020a170902ac9800b0019a71e14c19si304477plr.320.2023.05.24.19.27.32; Wed, 24 May 2023 19:27:48 -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=ijXYUH6c; 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 S235011AbjEYCMw (ORCPT + 99 others); Wed, 24 May 2023 22:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234467AbjEYCMj (ORCPT ); Wed, 24 May 2023 22:12:39 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3CB9139; Wed, 24 May 2023 19:12:33 -0700 (PDT) X-UUID: 99093ef2faa111edb20a276fd37b9834-20230525 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Nc6mdgptg+DuT79FA6ujYAd+eZWI8xOh6cDke5UG87w=; b=ijXYUH6cpbKdD8oZh370t+o12hNXcH9Uo95iRAj04p+MlhSb6OA6v9uDt8IpiyfJauXDaFrHUfvrSr2oAqT3ZlTXpmIjiG+OovYoQozfWDlY4ORH5lNOtjA06msM5fXZ2f1Yl9vIWXBvi+GCr3ho2P1l1x/UIgNUpMnrW8/mfnE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:53a203df-e772-4a4b-8cd9-d248630344e7,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:d5b0ae3,CLOUDID:e632ec6c-2f20-4998-991c-3b78627e4938,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 99093ef2faa111edb20a276fd37b9834-20230525 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 425324409; Thu, 25 May 2023 10:12:28 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 25 May 2023 10:12:27 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 25 May 2023 10:12:26 +0800 From: Yunfei Dong To: Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nathan Hebert CC: Yunfei Dong , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , , , , , , Subject: [PATCH v5,7/8] media: mediatek: vcodec: Add encode to support dbgfs Date: Thu, 25 May 2023 10:12:18 +0800 Message-ID: <20230525021219.23638-8-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230525021219.23638-1-yunfei.dong@mediatek.com> References: <20230525021219.23638-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 encode to support dbgfs. Signed-off-by: Yunfei Dong Reviewed-by: AngeloGioacchino Del Regno --- drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c index 168004a08888..5df0a22ff3b5 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c @@ -358,6 +358,7 @@ static int mtk_vcodec_probe(struct platform_device *pdev) goto err_enc_reg; } + mtk_vcodec_dbgfs_init(dev, true); mtk_v4l2_debug(0, "encoder %d registered as /dev/video%d", dev->venc_pdata->core_id, vfd_enc->num); @@ -468,6 +469,7 @@ static void mtk_vcodec_enc_remove(struct platform_device *pdev) if (dev->vfd_enc) video_unregister_device(dev->vfd_enc); + mtk_vcodec_dbgfs_deinit(dev); v4l2_device_unregister(&dev->v4l2_dev); pm_runtime_disable(dev->pm.dev); mtk_vcodec_fw_release(dev->fw_handler); -- 2.25.1