From patchwork Mon Dec 9 07:40:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13899023 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011018.outbound.protection.outlook.com [40.107.74.18]) (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 3A06D21504E for ; Mon, 9 Dec 2024 07:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730055; cv=fail; b=mozfPr8WVKIvisgApSnnPDfk95y0EzEnetaiq9MavZv/c7TH4zwwnu93ooZM33SOtBXUzJcrkCntQ6Rglk2pe6zL5UrajH7njXS8sAf8HzNDod7jtlnyWhv+HWf2mNviJkquh/ELQuj1AWg7SXeHUTDuzM1nZfxg+BaJhqMh+pM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730055; c=relaxed/simple; bh=UXYkm+le7EDVFbipIQBVcYl1beJV3VHKlng/UTMJUFg=; h=Message-ID:To:From:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=u30Y5t0a4JdCCm9/rrzFaZTeAjui6vIMebrrPWDdZ9EaQcKnAXYCLLsaK4sScsGHvVchpLuY8A+WulISFhFc/+bsqBR0lBdOoJZdbOWzWrbLfp1GArrhCvv+rADKkRD+dKnf05P60LDTIeqvjJ2NqLy5OMMtw7gdZN9mu8xzuP8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=NlY5Ihh1; arc=fail smtp.client-ip=40.107.74.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="NlY5Ihh1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xX1bToSW4mgSZmq/H2gxf6yguJFugUbm9IYWsaBRjJZvhtse+szDNZNnIfil9YiZYitPY9nlhf7pM0hmKAdthU45Puw6MLz0sdmx8X80F29Nre+wYeIoHJtdXdJgeKmy8xPXRJIiK5HY3ij5VHWqZNbZhEMHOF77/yqWtJ0loy/LWOVocGubEgG4ZWgDBE9JVXLmpC7AjZ51HIW84Qtkjcs3fiy/b0XSntHlyuaz0mCGuzei+2Ma1WjBjiw2p2xS1kUE5PZqL1F5Z+t+rXthP7adLpfPeV7Jv6ykS5o3O3r61Hk2Gb22k1hhVL4scxWJrEDTsa4FBSyMuRijrr5i8g== 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=Av+xRgZk/QPYjc2N38/uB9wy1eZCbnHhBo5GHyKiqM0=; b=Euo9wdl4q4IWhujXBb6ApMMAmm2GfzYz/OX2kcOv+sUnHWg96/LRh97VIEJXEUrENOK7b+5GYWNp7fUM8jgI4HM8phvLs8gbSy6hnCRbRDG11L4ADUOtpKM3HnHlAbdBXJ9xtohL2DQi30tSvqa++CkBh/ydaNOvcYsnOWC5M/RsA+REToUh7Ma35FJqjk+tYWlw6M/lFrYSZk+QcWe/FmvSowbw9TuSNJgMYHyffO4pRox28zeuCm6zXHyu27lFv4O98nUg06QuT7304S2zy4o2HcN0DosCVkzVnQzIKmGz2rzh1NB1w8WIWkf3q6LofG5vJHdjORqkne9aFnfpjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Av+xRgZk/QPYjc2N38/uB9wy1eZCbnHhBo5GHyKiqM0=; b=NlY5Ihh1fhVBZHVAWeAXsRIn/8DRMvHc/MCjgA3DA9DVH0p2YIw3KF5bTHOLTW4QxAb76qHZvmtJrUW8+42uMTnfA+Sh4NzV7b8QR/Bh0GsD9kXj9KFqdIrk3d2v0kyTAXeAzTPtLIybcz32GzbQQZhAOdtFJfCXDznZXc6hJYM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OSYPR01MB5479.jpnprd01.prod.outlook.com (2603:1096:604:87::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Mon, 9 Dec 2024 07:40:51 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8230.010; Mon, 9 Dec 2024 07:40:51 +0000 Message-ID: <878qspmhh9.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-1?q?=22Nuno_S=E1=22?= , =?iso-8859-1?q?=22Uwe_Kleine-K=F6nig=22?= , Charles Keepax , Daniel Mack , David Rhodes , Haojian Zhuang , Jaroslav Kysela , Lars-Peter Clausen , Liam Girdwood , Luca Ceresoli , Mark Brown , Peter Ujfalusi , Richard Fitzgerald , Robert Jarzmik , Takashi Iwai , alsa-devel@alsa-project.org, linux-rpi-kernel@lists.infradead.org, linux-sound@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com From: Kuninori Morimoto In-Reply-To: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> References: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 17/17] ASoC: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:40:50 +0000 X-ClientProxiedBy: TY2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:404:56::31) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSYPR01MB5479:EE_ X-MS-Office365-Filtering-Correlation-Id: 01583d17-e370-4001-b263-08dd1824cdd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014|921020|41080700001; X-Microsoft-Antispam-Message-Info: 7j2mSZegQwNJbRsWER75VYQHLMXzUnfvAKBte2LRh8jXf7c1BoJaGFM4/I2/ob2zCkqIh8Y+EKniez6tz37YkwDo4NnzXziUjazXPzWNlKSRBtVStIGWDHdXiNVKYPalxWLm24AMGkuO5scfEC4E4YerjxyBxJ40w9GkA66WRpmaI3BNyR0DciWek/Ijis3lU36PRlUqjnLhoRhvNyPOcVytT55Tq45+5+ulxJsXhYykeawVwM/DqjrxNX91jqPKWv+TPEL/PhxDaLA84sdq6W4D+QCtHnG3fmXBBlzqBdvo1icgGBO9C0g3Ftez99/zX4iaqipW3Rc8MacOFun6f9RZg0OOKVLPNx7I+qnia+ZLrTQnUD8cievYgCAdFy8LoVDnYocnjFrbw59kJJC7d8wEWdOdCbqa9UHnqM1ksdqvtLrAKutV73coF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NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014)(921020)(41080700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: svNFX9riN5HtQy1sUjukQKpBzCLug8Za4C6ZXlxuwoxRHSbrx103GpHb+RbpX4LASsZSRW53sISW1LQdq8LAXp+CeK+VSCAKE1E0ezMesHz4gbE8ZR3URwCHulLSeBjwH4tBRBsDq5v6qAE74akSKXxVyuf3YSGvzimUBOS75YJNIHhSC/SsFc9Zha+4JIRTLB3p8EYurfY3ndLNJlZb0v7IVRaNamvUeD769zb6BB91N0ESJHD5oNRD/LAnRI2C6nVpgr8/mNXb/LVBXhYbvQlh3mAqf+ErGBxjLLhJYpJxmYCsbBmfExLzaeKsEhBEhRpszvywIKwoLBGAG5Uo5qqo2OJFaWMGHNsoDl8pDEHxNuOh2pTbwYm73hY7LqE5CDvAtg7IIDpr3TkqsviPwztNOLyqt41A0yAwkaIYHAPu+LQhPyioA1j5N9zHClvDpGCaor/rdUHyn7NjZLR+h8TsnJvLlfeWKPUZgLjP3ndaChHowQJKBzvWTS1EervP9lhBtLTIyjED5ydkIlAAQe7S9wJXwHmGeOxI2jhzHXIgSshfmZiiFFGJ5itaCP868jLKLGKI30fotEdhbh8qt/vpUiNi5ZDCbIvBGtO8vKMfC9uDOzp6XFlO/oDfGLUc66fajf4egYpELa0sHBCJj1VhAkXTKZqNQmXVDCuX5b1LhCEqnE3behpEzGvEVLLegDWuQPqSzEC2tLV9oF10DJ+15Tsrjo69FI+54UurA1IUsmW8ZApsll0yAaB1HWD75+v16ccz649u8CHw7rUWrKcQR4IzyKzNaBsG06jWA9tkJMzgKFJCgvqbpo3IAT5gCdlehPal5hOmKLUmkaJstiCjhO3qobqFCJm/tiTAZN5tmHYqSXnyqy9CZ6geF2JlGBHMHOBlCdo59oXrtOO6aAL9ziH08hC1B+42/24UcyfmlIPbON3bfVyt6E2AFvjkvKNQhNEnn9pzyaxBBmkY6eDtr2Lgmkj8ooaMAMPrBs4dr60GSOz7MRxXkxXhqkQeXStc3nCH5jL3FuOgqPnStsq2UCGNAvAqvwpFOSxR0QH0LvInpU2iRIV/xC14gXaTLKbhyTT/ZukCNOKLhSEOi9+39vvNUwED967S61j21YR+ITTmONZv2xs7OkpfbmH9ClRArZJ8wponXlro2McKaEnAohSE+2YvhPit9rnoJgmcYZew44Helni1GF10sdXlTNYcYtv0puB9FC/hFR1ccv0BmRp0eXeb3Zs9ObYyLcnn+rfzKzWlbYLWxkjedlgRqOfHmiYx+9GahnmJM72tG/C4Q/5FpT8MnZSKBVkhNYjru2blzN+jjMpBR9VcQsBx4A0Q96VW9QW7JXMKXRgL4H4+flTpIOnn60O/lksarMz2jHYK6JL6/uIfBeDbuCostXRGi60x4ZSOggoPv/kvq0O/c3Kv1lBqnWnLh1n+KmowkFpjCYw7cnYv41ZfSGpnP29jq6eaPBVoSS4KB8rIFwZi0DjyaRv95q8o88v3cLpMsXfpTj+uV3iCAyH01Tg3l4BsBFDxEujdmm6aJEgF3TImV5UTxQMzneqIDAoQM0VOXltHPF919VIIoY2OjkauNvGHfpUez8MMjdvOTnvA6Nx68jhSvC8WwulWvvfibhw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01583d17-e370-4001-b263-08dd1824cdd8 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 07:40:50.8955 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ugt7a9pw/dB1HLK9a+Wz2jDgMmdTq4xmqMhT8WtOKh4v47ala4QwFWLGSpCl5M5l0tDQ8g7xXfROuo+8G3NJs6Qe+HF6Dj6k5L9CNqGnUznCT3VGh7o8eojyZjUDKZg/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSYPR01MB5479 snd_soc_dai_set_tristate() has never been used before. Let's remove it. Signed-off-by: Kuninori Morimoto --- include/sound/soc-dai.h | 3 --- sound/soc/soc-dai.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index aab57c19f62b2..eeadb636c9f64 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -191,8 +191,6 @@ int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai, unsigned int tx_num, const unsigned int *tx_slot, unsigned int rx_num, const unsigned int *rx_slot); -int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); - /* Digital Audio Interface mute */ int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, int direction); @@ -306,7 +304,6 @@ struct snd_soc_dai_ops { int (*get_channel_map)(const struct snd_soc_dai *dai, unsigned int *tx_num, unsigned int *tx_slot, unsigned int *rx_num, unsigned int *rx_slot); - int (*set_tristate)(struct snd_soc_dai *dai, int tristate); int (*set_stream)(struct snd_soc_dai *dai, void *stream, int direction); diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index 34ba1a93a4c95..e42b99f12f0b3 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -341,25 +341,6 @@ int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai, } EXPORT_SYMBOL_GPL(snd_soc_dai_get_channel_map); -/** - * snd_soc_dai_set_tristate - configure DAI system or master clock. - * @dai: DAI - * @tristate: tristate enable - * - * Tristates the DAI so that others can use it. - */ -int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - int ret = -EINVAL; - - if (dai->driver->ops && - dai->driver->ops->set_tristate) - ret = dai->driver->ops->set_tristate(dai, tristate); - - return soc_dai_ret(dai, ret); -} -EXPORT_SYMBOL_GPL(snd_soc_dai_set_tristate); - /** * snd_soc_dai_digital_mute - configure DAI system or master clock. * @dai: DAI