From patchwork Thu Jun 22 15:23:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Saba Kareem, Syed" X-Patchwork-Id: 694917 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0FEAEB64DA for ; Thu, 22 Jun 2023 15:29:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DA459832; Thu, 22 Jun 2023 17:28:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DA459832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1687447759; bh=6kbpSSTDUblxoNf9LyE/yIKCY1TOouabuN/d1ZNkh48=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LZar2ereF0cUxLjyDc6E6yUwMFbMJ9v0iLMqfGA6KpPDwEgZhBSlgoc4uDAWGi5Fi AM3LgOepIhGsZAFmk/CvXBXt0zJImCqPsv6V3tfbKOK40XJa89hj8JiNdXerHpi83S Lc1tH7+80H5lhDluSAccZZPgW3ZnHrKJNgPvxf58= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 59B94F805C9; Thu, 22 Jun 2023 17:27:13 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 37CEBF805D2; Thu, 22 Jun 2023 17:27:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 449BCF80551; Thu, 22 Jun 2023 17:26:59 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2061a.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e83::61a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E8131F805AA for ; Thu, 22 Jun 2023 17:26:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E8131F805AA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=0ad5k0Rr ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=koCr2Fxc76jkBsx/plBmW4YKwfH3MqD0FUp+oMeZmkufBvwkWvzkIszzljfrxcJjVHC6JAGD9aJwPAgE7VLLs/DMNoqwEttu1D7Dvl4W6roNDayEZF1tYt0FBiL3Gsws+PKmOtwhnWnh0hFxWRD6ZjPJHWNlZyjdeBYAssOonI8IQ726hFpXBjYKWcZ2pu8SWFjhKGpYPzpdW7oyaZRFkjR4BsRkdkuO0uKakra/8zYZs4TG535MjA+ibd6QYrrY/ut65YUhHMwswBA36LzsJVJgLPW7Ndu4OAYzFHH1IYRs6zgR/KtVBMgoegWfrsDU7tUTHi6ucSv9G5JCfMB5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZHl3imB2MTXt7pew7uDec0h5NMyhhOl3FKPgVMdbHuw=; b=Rdabt8eLpX7+7FFbTTFgMcwkkagg7nUpadk2fJssBplpQ7iWXbl++EvfATw+qGb3LlvYndBfJu5+pSsF3eAvWKiA26nVRZmyYtoDHMebvh+nRaBTjPxFWmPBAMQBpe+LlatTmWX0uU6jbFIrUZjTqxUv+4NoTTfHIGL3b3w+XkPXKIkFLM6OnVf0hjdmFNvZt9We0dok2z5aS02EBnR7BFG/eb38xpH7+OSBfqtpH7dTG4DuGsf+hfgKvYALPU1mIY3GwOJUge6GW+lxOFtdsYrm5tGmtaJuwcI9RQnWel40m1ZahMIDoZ8cqhPHu/v+XySzcriFVTpIteM/XckJsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZHl3imB2MTXt7pew7uDec0h5NMyhhOl3FKPgVMdbHuw=; b=0ad5k0RrNMQjD0y1xbAruSX9uxs4CCkzeV9HB/OfTyhXL3MxF5jJj/n/17tanHSVgv0/HaVyKNkrtmiGhU0gCuyNOe5ayKzvIE/geJZCgICB0Gz6TBe4nQqyW2ALvw8C7cBvLxKtRUU8Aowkk49bzyNVpITZ/7m24nn4mESt0p0= Received: from SA1P222CA0040.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:2d0::8) by BL1PR12MB5192.namprd12.prod.outlook.com (2603:10b6:208:311::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21; Thu, 22 Jun 2023 15:26:45 +0000 Received: from SA2PEPF00001504.namprd04.prod.outlook.com (2603:10b6:806:2d0:cafe::1a) by SA1P222CA0040.outlook.office365.com (2603:10b6:806:2d0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24 via Frontend Transport; Thu, 22 Jun 2023 15:26:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by SA2PEPF00001504.mail.protection.outlook.com (10.167.242.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.17 via Frontend Transport; Thu, 22 Jun 2023 15:26:45 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 22 Jun 2023 10:26:45 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 22 Jun 2023 10:26:44 -0500 Received: from amd-B450M-DS3H.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Thu, 22 Jun 2023 10:26:40 -0500 From: Syed Saba Kareem To: , CC: , , , Syed Saba Kareem , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Venkata Prasad Potturu , V sujith kumar Reddy , Charles Keepax , Ajit Kumar Pandey , Gaosheng Cui , open list Subject: [PATCH 09/12] ASoC: amd: acp: export config_acp_dma() and config_pte_for_stream() symbols Date: Thu, 22 Jun 2023 20:53:54 +0530 Message-ID: <20230622152406.3709231-17-Syed.SabaKareem@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230622152406.3709231-1-Syed.SabaKareem@amd.com> References: <20230622152406.3709231-1-Syed.SabaKareem@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF00001504:EE_|BL1PR12MB5192:EE_ X-MS-Office365-Filtering-Correlation-Id: ea3277e4-ea6d-4fae-6143-08db733516c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cMltbWdW+skZ1LWf/x3yX0UntCSfmIqeqiGXqi+yWWkfoawh+aQznWRK60k9fA5HWvWFArbhMESOnOxnfJZ09N5nPIiMfzqZDm+arpFu41EQl0oaWKcVTb5Pxj7aFY81uz85K0/katySINLVuPCEOFaW6R/2w3EgBNdVLGgcFMB9llI+dCpbnKJd/DjW4JWDDjqByHV9iTHW0bABixrL2CrOoAfGoQBGClgqGTGr5xVeYcOkt7BoLKUwmMooAGZNcv2fLMTnc6X6WM+2k60Oe07g3oMmlErk6aYMpNDmegxBDJqKMjHs6JskvfGNwENFEp3PaEvaDSEIxP12kopMWplsbJH0HmZY3LtYVKHmtc1ybr0YSOBTMFqb5GmEJuZFt0c0zT60s5s6qE3kW8nR8A+NtRHHOhNLsM4Pdrn/A9+dFlAEVgs3DfC+8G5VU55okZkzUPMSntHC9GswkeR/Jq43ikZeQV5HaIsFRz26J3Aky2IT+nvUn7mVOejHzlcA8vqOaVpbbdRdkXXpgiw9Ea/fPXDILb+iHlKsNJGhiOMuRzVg3A7b0aKL3+msxj5SNS6kopV+q8AsSrFpih+E9lQUVYpciKi6gkJ1ges9Bi5Qz9UlDckqXBsy5AS7GdikfvH/SAADyfwYcz0H0cCO6c03KbHSL/18n/yFYqOuYsWhhZcB5IkIhhtQxLcFNpy8P7GtlE5MDLHiOS+KBkBZk+SdvbCx0nLAhFFT+TOHdst5sTwX9+q6iCdPaQRx/iz1wIeESaip3ZUZbdw4WpSsPA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(376002)(396003)(39860400002)(136003)(346002)(451199021)(46966006)(36840700001)(40470700004)(70586007)(40460700003)(70206006)(4326008)(356005)(81166007)(2616005)(82310400005)(86362001)(1076003)(36860700001)(26005)(186003)(47076005)(83380400001)(336012)(426003)(82740400003)(110136005)(478600001)(7696005)(36756003)(40480700001)(2906002)(6666004)(41300700001)(5660300002)(8676002)(8936002)(54906003)(316002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2023 15:26:45.5018 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea3277e4-ea6d-4fae-6143-08db733516c4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF00001504.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5192 Message-ID-Hash: QOYADG4N4N73NMPD56OXSUPJU4WZ3ANI X-Message-ID-Hash: QOYADG4N4N73NMPD56OXSUPJU4WZ3ANI X-MailFrom: Syed.SabaKareem@amd.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Export config_acp_dma() and config_pte_for_stream() functions. These functions will be used to restore stream configuration during system level resume. Signed-off-by: Syed Saba Kareem --- sound/soc/amd/acp/acp-platform.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/amd/acp/acp-platform.c b/sound/soc/amd/acp/acp-platform.c index 447612a7a762..d34271862e42 100644 --- a/sound/soc/amd/acp/acp-platform.c +++ b/sound/soc/amd/acp/acp-platform.c @@ -128,7 +128,7 @@ static irqreturn_t i2s_irq_handler(int irq, void *data) return IRQ_NONE; } -static void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream *stream) +void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream *stream) { struct acp_resource *rsrc = adata->rsrc; u32 pte_reg, pte_size, reg_val; @@ -144,8 +144,9 @@ static void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream writel(PAGE_SIZE_4K_ENABLE, adata->acp_base + pte_size); writel(0x01, adata->acp_base + ACPAXI2AXI_ATU_CTRL); } +EXPORT_SYMBOL_NS_GPL(config_pte_for_stream, SND_SOC_ACP_COMMON); -static void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int size) +void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int size) { struct snd_pcm_substream *substream = stream->substream; struct acp_resource *rsrc = adata->rsrc; @@ -169,6 +170,7 @@ static void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream addr += PAGE_SIZE; } } +EXPORT_SYMBOL_NS_GPL(config_acp_dma, SND_SOC_ACP_COMMON); static int acp_dma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) {