From patchwork Thu Aug 1 09:14:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 13750038 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2089.outbound.protection.outlook.com [40.107.220.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8228918B498; Thu, 1 Aug 2024 09:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722503801; cv=fail; b=coX5KmKU9xk21sPKXWj7PkYmL61/gd0iH4bbHAXQ6iAnYNPcJQ77MMaiqY/9qs0BQmivrzOsVCpd/qNkp9YXTiUQ2C5ZUTf0zEmgbbUmidSLLMqIYxOQR+R3inTPg79eWvwTxD0MtXr2QcS9F3OBc33cqA44YJzLKG0pJXi3Sis= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722503801; c=relaxed/simple; bh=RDO+vloBM2GX4x3HsozmjsErgtAplHVdtbM9kcsLnNk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YHS982FZfPWA4ABDysTu1UCfppHYELEXhRV3rCCHj2SiAbfCapzLqkS5woUJKPMhxlUaPeWwb+ZmrTt835yrzu+ssW+7cqd9lhcE6Vb/zFMN6v4Eo0/cieV1kz13hXv2oN7R0u1saAWGFIb0TcOHpnk1Kqj2vvaDm87zJ3wPM9g= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=RF3oOxRz; arc=fail smtp.client-ip=40.107.220.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="RF3oOxRz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kA8H/GafgEZOBj9qP4VShpi8BKr9Pbfy3ur8Ju8w+r+1JkkbFHt1mYf4MUTFsakQ+JIFx7Clf8AHqxKhdQ1ohUR5yIzVzng/zugLlTsEY137H6gVVLMlxiWfzMH/kpS4usGS3NVKki7Qa6t67J6DdxmuPPtG7D8CKWI5XlmItwr2lpLJqOVJOkM+5XMsUkjIuXsl+/eqU9MExZ/MBIv8ZCU1rySdXVf5z1u5FMknm2YiBabN1zMsPDVv8xo1nTLYw6sQomyVktfpe499E/1tGbFLIuQsM6OHyHOce5xoulZxReuQPK9Ly8sNSh8BLDFXKRLBhhx0D0F3z/eVMIFf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=8PN6D6XRbeecwMVkpspR8HoNG+SKkdTm3cCEgvNTAC0=; b=eNTfujUiBe4JGuCaUkWnrggPg4bNMJaXWQr/E6RZ9TrV5vrPVQ0A663bzE9a/hSfiaR2NwSV7gNb9DfrE5ZbFqT/Y8yocfCxMFbq5fhKMCYWNuwX0HrAXU1+w8omAgGh1pJbV6KczbRF9ElsC48/J9jonPCWfS3AQWg9HT5v4WtKNSB4JIWVm76875BJdsCeuoTV2eoMWpjUSqVUJprsEBLVyTSROpeyzZVo5jDUPi7XZ+wR6WF+HCKqE3lXd2sMaztqoXR4/ynZcTNCdP/EvTKEx+Hh6sLW3jmA1ow0+J7SMhovtR4XUUl/9fNWDTldlGUgAC6NUcjB3SauNFiung== 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 (0) 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=8PN6D6XRbeecwMVkpspR8HoNG+SKkdTm3cCEgvNTAC0=; b=RF3oOxRzBLzpGUwhTZTrZuENKNHyzFTiKnFhiw8u4gPv1HxuGjGkdRzdCWx4XtNYYtZUkAHE0f3rUbhz43Wm+ae/WdpLOru+ebfhXXKj4Ra0BKCWDupX2wTh+C7ZLHjSBvheN6V4ny3P0T0+fZHg2EEhPXMbNEX5/1sN1niioVo= Received: from CH0PR03CA0185.namprd03.prod.outlook.com (2603:10b6:610:e4::10) by CY5PR12MB6528.namprd12.prod.outlook.com (2603:10b6:930:43::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Thu, 1 Aug 2024 09:16:33 +0000 Received: from CH2PEPF00000140.namprd02.prod.outlook.com (2603:10b6:610:e4:cafe::24) by CH0PR03CA0185.outlook.office365.com (2603:10b6:610:e4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Thu, 1 Aug 2024 09:16:33 +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 CH2PEPF00000140.mail.protection.outlook.com (10.167.244.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Thu, 1 Aug 2024 09:16:32 +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.39; Thu, 1 Aug 2024 04:16:32 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.39; Thu, 1 Aug 2024 04:16:31 -0500 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 1 Aug 2024 04:16:23 -0500 From: Vijendar Mukunda To: CC: , , , , , , "Vijendar Mukunda" , Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Ranjani Sridharan , Kai Vehmanen , Jaroslav Kysela , "Takashi Iwai" , Charles Keepax , Maciej Strozek , Chao Song , Kuninori Morimoto , Brent Lu , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH RESEND 03/31] ASoC: intel: rename soundwire machine driver soc ops Date: Thu, 1 Aug 2024 14:44:18 +0530 Message-ID: <20240801091446.10457-4-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240801091446.10457-1-Vijendar.Mukunda@amd.com> References: <20240801091446.10457-1-Vijendar.Mukunda@amd.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: Vijendar.Mukunda@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF00000140:EE_|CY5PR12MB6528:EE_ X-MS-Office365-Filtering-Correlation-Id: bc71860c-b9cc-438f-99ed-08dcb20aa2ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: otIMqNHicGNQez6F1O6kZ1h411q0aR/MCjAqkvF26WWgVPGtHB7rKE5FArhXCNp10Ot1AZgm6f7Lhx2T0hkaiYqbezYuPaSTyZLfDwSwz3S1dIzCCC8cFogiOr67h3UWTw3wABwR9ELht7Xrk5YOcw+JQ7fjySzh4uXMDAREsNmGnxlP4DkY9CCDDR9BqWF8V3gBYbwShQRYqRucLkUAQ5bF1r27Nk4a6L07+Ut0y1dfgSb9MSAlKTTeis+vPNkOGeWQ5PvpoM6i9tQY+2x8Fq/Qu+QLANmlfblfWe2IXd/ITaoLbCT1IXcxwfjggC9U6c3NnuM3otoFRkr80AE+eVq2q9/mPcURGf703AkOJuB2nQnAU7e57nBCJLGsyFIbx4QJ3/Y0ZmupN335CTA2dMJkIIZujwAqjaL81gHJ1F5jDxzcDHvKpEeGTKK7HoCNpOjuwyURtc3dXtg4z3I08s6Uvfbz93xENC9wRhIcZ1IGiD2Du8Pn0etalsSWPx1y9iNOmG7AfBp7En47mYhVc9Aif/o82jvuSGKDbIs1pdT3Aj7WGDVEHOmgIRQASWfucRjQFVf7gmPUyS56r4QS9CH4I+p3Nf2rhNYWR7qNKmjVg2znrADzRUgcwDj17DHwhvnQxTiA3ds8zfEHmxfCi1XsQJ7lA0sqqtrTrb7/6uA1CyBNP3NUbW9eHsvEmECNIef/39blCKXVVeM99qdN4NNpbdx7GkdbW7cA+hgfi94dmfwoXCvZzU3vMYiPTqV9BWgr5BYx9PGHVIjWULCnsDDLJPfOsh5F32Oj6b+zingCUCuPhpmQ6maH24tg3AcmMXAWcNn017WFXx/yDBRYWTXlr0SZzHv6Lyrihn9IuKTYxPTH9OrwGGTa9gPeD9Bpp43yjJNAZTG5qY6hvGdnnRLFlOO14eTvJRC1zkebMWtnyc+avPH4dIBl8kFzNjJOdyxqzTx6VUUhPOKXJxFxiWlElRwEAqZwWvEFZRk5OTA6G/rnbqf0rIEk9dZhXu2F0lRX2WKAqrkoIT/8+esS0mnGi+8jmtDcEBz3J+ZniV8S8mDH2xiLjjkN+2ZnRqlOSHY8LFVYJo8o870gw07oHxhcZ882RQJM4UyKqvLOM/y38lWgQElrqpVnYHvM0rBDOZXuaAOdo2BZltyClCgzz1GOitKjwS96PB7j3nu+QzP395rxqqiVW00EOj43RwRaiv3f/ROIatx8mJQED9AZPtTOunZ31XMcsgW02EwA0mH90V2ZgA17+yTxllYrDu9dSvkhE4/jexldqxgaGqcYJc7dyk9iHTC7kmP9hwBDBGnVGoPdLZQNhY1UqVg0+WLOL68Wc/bhMU91ku+LyF8enybYzyf9z/pq2oSPRwQrdNfwCPMEhJEwn7OrGExaT2ZfYD84KtXTonnKgiOZufKjIA== 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:(13230040)(7416014)(1800799024)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 09:16:32.9696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc71860c-b9cc-438f-99ed-08dcb20aa2ce 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: CH2PEPF00000140.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6528 Rename Soundwire generic machine driver soc ops with tag "asoc". Link: https://github.com/thesofproject/linux/pull/5068 Signed-off-by: Vijendar Mukunda Reviewed-by: Bard Liao Reviewed-by: Pierre-Louis Bossart --- sound/soc/intel/boards/sof_sdw.c | 26 ++++++++++++------------- sound/soc/intel/boards/sof_sdw_common.h | 14 ++++++------- sound/soc/intel/boards/sof_sdw_maxim.c | 12 ++++++------ 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 64fb53772c04..9395daf220e9 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -594,12 +594,12 @@ static const struct snd_kcontrol_new rt700_controls[] = { }; /* these wrappers are only needed to avoid typecast compilation errors */ -int sdw_startup(struct snd_pcm_substream *substream) +int asoc_sdw_startup(struct snd_pcm_substream *substream) { return sdw_startup_stream(substream); } -int sdw_prepare(struct snd_pcm_substream *substream) +int asoc_sdw_prepare(struct snd_pcm_substream *substream) { struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct sdw_stream_runtime *sdw_stream; @@ -617,7 +617,7 @@ int sdw_prepare(struct snd_pcm_substream *substream) return sdw_prepare_stream(sdw_stream); } -int sdw_trigger(struct snd_pcm_substream *substream, int cmd) +int asoc_sdw_trigger(struct snd_pcm_substream *substream, int cmd) { struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct sdw_stream_runtime *sdw_stream; @@ -656,8 +656,8 @@ int sdw_trigger(struct snd_pcm_substream *substream, int cmd) return ret; } -int sdw_hw_params(struct snd_pcm_substream *substream, - struct snd_pcm_hw_params *params) +int asoc_sdw_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params) { struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct snd_soc_dai_link_ch_map *ch_maps; @@ -699,7 +699,7 @@ int sdw_hw_params(struct snd_pcm_substream *substream, return 0; } -int sdw_hw_free(struct snd_pcm_substream *substream) +int asoc_sdw_hw_free(struct snd_pcm_substream *substream) { struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct sdw_stream_runtime *sdw_stream; @@ -717,18 +717,18 @@ int sdw_hw_free(struct snd_pcm_substream *substream) return sdw_deprepare_stream(sdw_stream); } -void sdw_shutdown(struct snd_pcm_substream *substream) +void asoc_sdw_shutdown(struct snd_pcm_substream *substream) { sdw_shutdown_stream(substream); } static const struct snd_soc_ops sdw_ops = { - .startup = sdw_startup, - .prepare = sdw_prepare, - .trigger = sdw_trigger, - .hw_params = sdw_hw_params, - .hw_free = sdw_hw_free, - .shutdown = sdw_shutdown, + .startup = asoc_sdw_startup, + .prepare = asoc_sdw_prepare, + .trigger = asoc_sdw_trigger, + .hw_params = asoc_sdw_hw_params, + .hw_free = asoc_sdw_hw_free, + .shutdown = asoc_sdw_shutdown, }; static struct asoc_sdw_codec_info codec_info_list[] = { diff --git a/sound/soc/intel/boards/sof_sdw_common.h b/sound/soc/intel/boards/sof_sdw_common.h index 6ddfb1f9639a..e88b5627560b 100644 --- a/sound/soc/intel/boards/sof_sdw_common.h +++ b/sound/soc/intel/boards/sof_sdw_common.h @@ -134,13 +134,13 @@ struct mc_private { extern unsigned long sof_sdw_quirk; -int sdw_startup(struct snd_pcm_substream *substream); -int sdw_prepare(struct snd_pcm_substream *substream); -int sdw_trigger(struct snd_pcm_substream *substream, int cmd); -int sdw_hw_params(struct snd_pcm_substream *substream, - struct snd_pcm_hw_params *params); -int sdw_hw_free(struct snd_pcm_substream *substream); -void sdw_shutdown(struct snd_pcm_substream *substream); +int asoc_sdw_startup(struct snd_pcm_substream *substream); +int asoc_sdw_prepare(struct snd_pcm_substream *substream); +int asoc_sdw_trigger(struct snd_pcm_substream *substream, int cmd); +int asoc_sdw_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params); +int asoc_sdw_hw_free(struct snd_pcm_substream *substream); +void asoc_sdw_shutdown(struct snd_pcm_substream *substream); /* generic HDMI support */ int sof_sdw_hdmi_init(struct snd_soc_pcm_runtime *rtd); diff --git a/sound/soc/intel/boards/sof_sdw_maxim.c b/sound/soc/intel/boards/sof_sdw_maxim.c index 8faa06824869..f689dc29c493 100644 --- a/sound/soc/intel/boards/sof_sdw_maxim.c +++ b/sound/soc/intel/boards/sof_sdw_maxim.c @@ -80,7 +80,7 @@ static int mx8373_sdw_prepare(struct snd_pcm_substream *substream) int ret; /* according to soc_pcm_prepare dai link prepare is called first */ - ret = sdw_prepare(substream); + ret = asoc_sdw_prepare(substream); if (ret < 0) return ret; @@ -92,7 +92,7 @@ static int mx8373_sdw_hw_free(struct snd_pcm_substream *substream) int ret; /* according to soc_pcm_hw_free dai link free is called first */ - ret = sdw_hw_free(substream); + ret = asoc_sdw_hw_free(substream); if (ret < 0) return ret; @@ -100,12 +100,12 @@ static int mx8373_sdw_hw_free(struct snd_pcm_substream *substream) } static const struct snd_soc_ops max_98373_sdw_ops = { - .startup = sdw_startup, + .startup = asoc_sdw_startup, .prepare = mx8373_sdw_prepare, - .trigger = sdw_trigger, - .hw_params = sdw_hw_params, + .trigger = asoc_sdw_trigger, + .hw_params = asoc_sdw_hw_params, .hw_free = mx8373_sdw_hw_free, - .shutdown = sdw_shutdown, + .shutdown = asoc_sdw_shutdown, }; static int mx8373_sdw_late_probe(struct snd_soc_card *card)