Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2974811pxb; Mon, 17 Jan 2022 09:16:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJym71sC4D0Ud73dYtsTyB5UZFWXKUcXTQlbVDYW4kuNC5mD6Ooq5ZDZw9qRk3YfOJf1GdHU X-Received: by 2002:a63:6542:: with SMTP id z63mr19815351pgb.429.1642439809865; Mon, 17 Jan 2022 09:16:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642439809; cv=none; d=google.com; s=arc-20160816; b=enGvzvCeUUrbRgyf7WfKT6uQ+fXVjsVLG8dfD/aB2Thr930zn4RhHnjnDFDcDl+yOq W5hH+tcvBGYFwUZw64fBWTiNCuMy7et7A4QGxm8nM3xtrIJ/9uL7QLIRdUiylnEXZrgC boDj+8fbGDI1yHH7MjmL0ji6btvXZEJrthD6qsUuOAq9+TZp2uInCTxpICeBk//URtog zbayPg4oTEgnXivD0ZAvjZ5R1KEgtnLpetaW3EcQp5dj5C7fF9xuBH9S6fU4tOdJ0gM8 2aO2HUOenTIyUvATRPH+5dM4IxqliVCzNJFywL9KY4mrsD2s6SWE+LFTIKObiPsdBnpl 6u1g== 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=Cph2OX4sFKF/4uVsanr3cTttYs5UVAtlOe5OOjTD1Xk=; b=VrRgt+rL0F5RWrd7gFOrsmrekwDmZnzhIMMYnp+VpOfB4h7FFgOfQMDg4RK84Ic7Jx /zH3CJR1bhk2mdFviC675WxBl4Ilahr8DksaBvIkM6gCETkUDqr8M4nKBCMvrCFg94yd huKXGfOLVorAAXtL/Xn958A+YNHr0HbMc1DTkgEhlSjNDzVKQLPhrDe825UVJsSnFJ/R E+3LzJXWZdaLsoE9zqMS6W2bni92TuWD5MXezSazL+pj3w6YHX/h47oxMEct8tKckofU BVswN8sOoG/EtlGsMJqwwmsENlz2HJrS4AgxX8eFawG4ucpktv+1SLrkjlA9XlsgEdGy MVxQ== 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 l18si13064765pla.8.2022.01.17.09.16.37; Mon, 17 Jan 2022 09:16:49 -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 S239597AbiAQMGf (ORCPT + 99 others); Mon, 17 Jan 2022 07:06:35 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36694 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239554AbiAQMGd (ORCPT ); Mon, 17 Jan 2022 07:06:33 -0500 X-UUID: 79eca5885b7c48bcbd8666ea03d3df5f-20220117 X-UUID: 79eca5885b7c48bcbd8666ea03d3df5f-20220117 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1089449713; Mon, 17 Jan 2022 20:06:30 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 17 Jan 2022 20:06:28 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 17 Jan 2022 20:06:27 +0800 From: Irui Wang To: Hans Verkuil , Tzung-Bi Shih , Alexandre Courbot , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Yong Wu , CC: Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , Fritz Koenig , Irui Wang , , , , , , , Subject: [PATCH v2, 02/10] media: mtk-vcodec: export encoder functions Date: Mon, 17 Jan 2022 20:06:07 +0800 Message-ID: <20220117120615.21687-3-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220117120615.21687-1-irui.wang@mediatek.com> References: <20220117120615.21687-1-irui.wang@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 mtk vcodec is built as a module, export some functions to make them visible by other modules. Signed-off-by: Irui Wang --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 2 ++ drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c index ffb046eec610..134dc53e4855 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c @@ -1432,6 +1432,7 @@ int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx) mutex_unlock(&dev->enc_mutex); return 0; } +EXPORT_SYMBOL_GPL(mtk_venc_unlock); int mtk_venc_lock(struct mtk_vcodec_ctx *ctx) { @@ -1440,6 +1441,7 @@ int mtk_venc_lock(struct mtk_vcodec_ctx *ctx) mutex_lock(&dev->enc_mutex); return 0; } +EXPORT_SYMBOL_GPL(mtk_venc_lock); void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx) { diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c index 0825c6ec4eb7..7eba1a990ed7 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c @@ -85,6 +85,7 @@ int mtk_vcodec_init_enc_clk(struct mtk_vcodec_dev *mtkdev) put_device(pm->larbvenc); return ret; } +EXPORT_SYMBOL_GPL(mtk_vcodec_init_enc_clk); void mtk_vcodec_enc_clock_on(struct mtk_vcodec_pm *pm) { @@ -111,6 +112,7 @@ void mtk_vcodec_enc_clock_on(struct mtk_vcodec_pm *pm) for (i -= 1; i >= 0; i--) clk_disable_unprepare(enc_clk->clk_info[i].vcodec_clk); } +EXPORT_SYMBOL_GPL(mtk_vcodec_enc_clock_on); void mtk_vcodec_enc_clock_off(struct mtk_vcodec_pm *pm) { @@ -121,3 +123,4 @@ void mtk_vcodec_enc_clock_off(struct mtk_vcodec_pm *pm) for (i = enc_clk->clk_num - 1; i >= 0; i--) clk_disable_unprepare(enc_clk->clk_info[i].vcodec_clk); } +EXPORT_SYMBOL_GPL(mtk_vcodec_enc_clock_off); -- 2.18.0