From patchwork Mon Dec 9 07:40:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13899021 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011067.outbound.protection.outlook.com [52.101.125.67]) (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 19A98215073 for ; Mon, 9 Dec 2024 07:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730045; cv=fail; b=smV7tsGXqBMW4h7ZeIy0wvnHGawGusfK3Lf2D/hwEXIhxN/hk0HgYzyJwN7Mzu3VQzlhkCCHGUsTuA0gMw1a+Rj3UEBRWYtNoWdjLZl8HPxW4FbU8RpE/p8dgO1gL+XDATzup4LIjG2h3ECizhIMWlHepodnG4bS7TFgmIw86C0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730045; c=relaxed/simple; bh=r7ZVpGTUhMu/3jy1Yjd3Y2y9Zgm3tos2UL8bE0XoSBY=; h=Message-ID:To:From:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=LGNnhF7sz/C68+p/r/XaioCSq7pSGzN2lCQRxQ5khLCY+d3FfKyLlJjgENmYlbi11VRAD5FBpk+AQLBWb37S6uPdzbOPWGpZCqHhlNR2yvCJo7gFQcdOyP+NwnqiR1kqXcS5iuhwf/ebz+uzEt9//kQIJ9eoNa28XbBd1T3UmEY= 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=mT1y2bTV; arc=fail smtp.client-ip=52.101.125.67 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="mT1y2bTV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EnETUMf8+jjRFVSNLqEcY8BdrL5BjJP7vqoKN5HboZIeLXVtut2KOP/2jXGej3mUuI1QO4498FLXqQhyzLKjwxrgLMSgc34RSMlRIP2lMgjm/3jReVwa4Fj3xLtUXpx2RToGQR6PVaYlj059S7GpktrAhVt9iwtX4EB9iZ8xJyIRaVuvAu/kXhVi5M5FLdG4tgDCSxUoxb0MA2Cp6xkVy0q8PWkRwGxpOOjWQBGskmTxgmtjjiyC2Sl5/D/s8ZQyNX6T+GXNzP06AWJeLpR7XLWxD3PqMzEmBPgojIJqML27BKVN49ZGT3qIjmYhX2mHILeOAxP9SYB1PO6wnnFniw== 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=l2Nq3E7jHUmBvXhRAgotyqnVqTlm0zR2boywoNpH5ow=; b=fCnEWnCZGVVS8xZBp1YJ9iomvPL/1zay6QJcRiuKJJC4cuKQUBDqXh4QcvzB4VJNiqFpLTW3PWVMLEvPga9+tN8MxbbgzZv9BvuvwIq82wcE75vyPC5OsnVZutF05BQ3Rs90o9MxhQ3Gu8dyQHsIipdbtWsLBFeMhjDQ3Dxr5mouu9hTBV/U96v5iujfBil/QAlufeEgaUszhBNFsPN9M9cuFXWldFsyDKOJGGwx8ViLpShSYHHt4gJOIPIUz3WOu22uVhMK2Nu/JcVYMjW2xy0mjG9MNv60isnQYO/kDqAF54DgjQms28OFN4+bTFmXC3nC/c/VnIsMj78dKGPp5Q== 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=l2Nq3E7jHUmBvXhRAgotyqnVqTlm0zR2boywoNpH5ow=; b=mT1y2bTVhoDiOaIp9IWq+KwJ1YN+BJACKkv+JTFh1qPyBG63pAYPfjyoK7McgHgNSmnrEhPlC9bqRkz3H20JfLcVG3E6mK0bFBTtG7zl0Cb1hCqAjHoyBsyyNxi2ZHGUz+uC4Ii3n/bqVHxJ8ajdCoHOAREBuys1lUnW8FRA4pM= 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:43 +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:43 +0000 Message-ID: <87bjxlmhhh.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 15/17] ASoC: codecs: arizona: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:40:42 +0000 X-ClientProxiedBy: TYCP286CA0225.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c5::13) 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: ea3d4dab-9fd4-4eab-dd89-08dd1824c91b 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: Kd8RFlzgyUAESXeBiyxEMVgYhI7yllnHd7WnrJiPcFj5vdDoUbFxYWcTVRyUozF0m7iPvqfuNZ9bBo4XKEMMwbjIN/yhrCQ9MR3U30y9znsii3CcBmgGzP/u09XoV2Ev60cZqlRdbIRQJ/6jUuxhbXRuk4x12SJs1fsYJGVyZAxRsV+vBjf2ZVHqB/TAGXRJuh+mjcpN0G8x/hLTl95q8EwCIJxN2wrcIXCE/sc08cj3RHocnLiyzc/qUdgYVY7YZaeKWjdk+vafOByqrQ8vGoEfSZfKF0fVftdYO6Owh1IwSq0suZZ98eDtQ1ZDC9gdbd9c4L++7GQJJvgRNExpcDgienE91mzxpSW0X2EQdWDztHjjsxiPyWE0q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XVDu7alDaCOU8Q1e9kx1PjoqjUx X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV: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: OGBUUxfN0jy044NIMrertdBJ1OGKFe5sLcV4OBQTYTuM0FSHrY23fLLbCr6iz28xEViaWyvbKojOj3bjfLeVJP1i+4mRQCLFFDcLi0hzyRaYeStvoqmNImjgpH4A8QnKbMtTrqjMlwXE1DbHfkODoDCEWLOLHSF6AL06/US/xkYj3kiSBVGYCT9NxHNgEEHnJUClZOR9WV2YH5NagtmOrnupmSnqofJ8/ue60cBVYcQjG7FJN6ySaOw8vx3g2xNwlgf8aGQSOXra4Xu5PXXgbvgHezLHDjrMmv5TLl+H/5QGJ7qFwaDLV4DDGIF2P/ALAXi/OtOs0JUqO4gcihpU0tdOfRReUo23OAmFnEobzRTqfv4yrTS5Rzp4M+wwuTrjdu4hFUvfUzZvzfkQQpUd2mwfnfdWmgGDrAqu0HSt3i6E3jpseAutztcEJc66ySdiFAApoTBbUsTk0fIyme7kn+7f2giaL7NWfMAq34NW+RxGqkWp/j6/kcuUcvsPRn90bjMjUxgLaaEZ3/CLDLdZVNvzcXpdriMNE6Vo8B5BR5IGTrNTCuAGewNAVgGD5wqVWwycBdJV6haeTzi4JnBmIFd+HsVnkncTcA+X3YbwonDikmkZT0mFat40YMwa9B0v/8jpxfpoUCGKZUrjbUjp/1w4qNf6L+WVYfinm8Zkib2Z/eZMHKZl2oQIRQPdrhPtyP0GsWgcEGr0zV3fHQhwoCyE85uMTWKC2iWRKP6+fZnu8mTNnBUzJSL3hEaRzzf7lx6T5/BUxdTqZtAThUZeqY4SE5p/KNqlwDEyHrhed9gDpZPoON18SPWuf6DzYo9iNCFIG+s9vMHylZ+hdetXj83JAs7LafoPxf9HyLc4Z/ewDgY9YD97xCoCgy/mnhyIjwzEm3kp8rdnRG2FvX/dMbP6mwiIEutNRqR9qqxF2K0rIXynZWVRwe4T6v2pI6GllBhB+mGoWwkgP2Jl7gP4yRw5VLNZSgWxbeYQSKgSUNsFPWK3rIk4bDKT3M7MYQrR1+QLzQR7TiXe6It9//1B57daW9zPOt4mFSTpcsS/RuHCYd/HwxvgEyIPeJNTekNKn2MKY4hSHXZlvj5s1EwAGXd2QNSCCKe0LdB+M0hGyYB/RhNk971UUshZHwO710N6vbE5QrYzerr++3C0kcYMxq7BJ+Bbw/yTwqJCgMP6PeBj2YrBKpm7LO1HswbWTkTYpF33TtxnWpXLW7eoBPFp0S/BzJHiXH0EWIuehyPFnQWtDVnxBukhOtO/ScOpainKiKL4ImE9SPy5I94AgRDGKzK09wPHiuirCxGMulLNb3mOSAzBRbNpc3Vf2PXjD9t6Va8vIHW/28Yd5HeKbT7tmsePIQ2E8pgPAmypJMLeT7qyYe3LqypTwPO5myQHPfUPqC3fpcJ00MjyA1zegvGewJiJ5MrwLdeKVeyh0/9cYjOhAL9JulfiuD1wW4fOW8sG7la+fkWbxJePCJJxHojE8ty25pU+Lk/E+a1eKas/Ayc6VeL9K5amvkLGKo3iqybEIgMad5lEXdQBjmVUylJlj+pDwJLF8QFIWv1XFwK9jvM3HmsqtwktZ2nxe/v18Fp0RsbleeE0sGsYh1UU5S2ATZdk6mCniLz6FS1f0yHNHDM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea3d4dab-9fd4-4eab-dd89-08dd1824c91b 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:42.9660 (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: RbMohRPFElTPcNBO34lsFh+KzbG3bY4L/I0hXti9qSD6vwgxLDyzG39RUJF6j6jjI5jptkwFzs8tQePZC5Kq0lkI+ONFac8EH5GMVU1loAchXDWtb3TGZ6x1DQbOsoik 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 --- sound/soc/codecs/arizona.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 402b9a2ff0240..4aa31bc5de504 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1953,22 +1953,6 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai, return snd_soc_dapm_sync(dapm); } -static int arizona_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct snd_soc_component *component = dai->component; - int base = dai->driver->base; - unsigned int reg; - - if (tristate) - reg = ARIZONA_AIF1_TRI; - else - reg = 0; - - return snd_soc_component_update_bits(component, - base + ARIZONA_AIF_RATE_CTRL, - ARIZONA_AIF1_TRI, reg); -} - static void arizona_set_channels_to_mask(struct snd_soc_dai *dai, unsigned int base, int channels, unsigned int mask) @@ -2028,7 +2012,6 @@ const struct snd_soc_dai_ops arizona_dai_ops = { .set_tdm_slot = arizona_set_tdm_slot, .hw_params = arizona_hw_params, .set_sysclk = arizona_dai_set_sysclk, - .set_tristate = arizona_set_tristate, }; EXPORT_SYMBOL_GPL(arizona_dai_ops);