From patchwork Mon Dec 9 07:39:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 848468 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 C702EE77173 for ; Mon, 9 Dec 2024 07:41:08 +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 0F9CCEF2; Mon, 9 Dec 2024 08:40:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F9CCEF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1733730067; bh=XH12Mrv1Vph/Nlyasor/BYzNxgp+9kqqjJDS9DztZ+o=; h=To:From:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=NDtR1VAS8iNFkzlkL/wQPDXFJ0ILUB3fi5WN8lOi+OzBMPgfxZf/8Bck3uNiKr9ug u86q5fJ8hque5YYXXCKcHRz28Xyqaa4WrnDD7jZG6Cz5DXdzZV2kj2fZR1GnOQRwpw Xlx/nPd1i8voIYVP5tYXKJQg6SRHljlcIO7DcoNk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4B13CF805F6; Mon, 9 Dec 2024 08:40:24 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2D725F805EB; Mon, 9 Dec 2024 08:40:24 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2346CF805C1; Mon, 9 Dec 2024 08:40:14 +0100 (CET) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010065.outbound.protection.outlook.com [52.101.229.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D8281F80533 for ; Mon, 9 Dec 2024 08:40:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D8281F80533 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=oZyUk1rW ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DkTZhW3/MMBRII9esHd2We0bWEUJY6LqocTxvdd7ftan2GyruDg8cTn6Uth7YK+olF0ZsmBiqY7TxgcNLubPdHQ7ENHKh1qizoXYVFgd/lhjQcJyZG4otqsekEoPt/rrLmQnrKZEw0VnNZTFlRm9GxS+AZYbU1Gd+XNr3+2ZSpdS3ah2nInNU3UXa4sQOuuA1vAQ0LpHuqnEaqJRAg9//rQfgteliAbdpdtLJsdnrBvNPDfbhC3vYJm+tNkv7smRhwI6V5UbN67sCr4Kc6lHcgH4GjuUwIrMwbYk/SkWMAT/rSNd6dYv51D6Wo+0FjlBd7B1kEcF5kgtZGJLv6IfBg== 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=Xrh2dO7oEJjloTlgw9PWXTGbvAkS7kZdGGcW1LHBK+s=; b=ydj+dxcgSZFhQPynLM/OUDQ7ICrPcA9lisFmQV3hCWUMO396NQWqd6z+z48LvclJ/kSKgPeZxPFkA1oq2/a+tGABXUxmMdCwRUrKMRxHTe/4HGH8aJUhUVmrFFNxy+NpUWRLgaclWY0/1poRugcADe95tBIS5VvhJ8APrzlcSmgAX2uB8uvuGpcsGqjNF6Pn8CAulH6BW8d8Tt0F+DAH0otea0Fk9ErTqKIf06ZPBr2wQ5/+j7UJr5K9WfKy32m5mdoLhhzRuS44qaiO3rOjdQiXml5GV1yIYlo2J/+3Xzi9vhb98JEtjBBV0lo6zLBlqbcTdVYEImvviEeqBArcKQ== 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=Xrh2dO7oEJjloTlgw9PWXTGbvAkS7kZdGGcW1LHBK+s=; b=oZyUk1rWl+R2mBNYN2va9EGh21gHOzRq5dbhSrw29tv9DAUgcbz4RPEBPcjuneGfiP+kU4waN4fBnr4H3wPpYWRNAz+N77GESiPJRtx440WUOqcE7jrR0XLzeIcPNRPESM/oGv20sEg1MwtQryRQCprV1ftPbSUvDjSZxAH1TZc= 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 OSCPR01MB12968.jpnprd01.prod.outlook.com (2603:1096:604:32e::9) 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:39:52 +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:39:52 +0000 Message-ID: <87r06hmhiw.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 04/17] ASoC: codecs: cs35l34: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:39:52 +0000 X-ClientProxiedBy: TYCP286CA0125.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSCPR01MB12968:EE_ X-MS-Office365-Filtering-Correlation-Id: 8939e80c-0307-4cb8-4258-08dd1824ab1b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014|921020|41080700001; X-Microsoft-Antispam-Message-Info: Z0CZC+b4nnNYZ+zl+2rtQkEw5Iv3JMBBzUFpORt0MDYCtZFc+RzT7DFixDSxJ2P4K/vbMujiRQhcZFJe1rZKtBc5McmIZLX8nKGL1rkPSNZD+fH7644/nekmWhG/oXvCyN6RdMoMNFXZmQNI0K2qu59bFaISDH5XIpJu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4O2zCtAJnGn4L3OQvGePTuhL1pOCsS3kEIO9oXceaab8fL5S8os4mTWKMB+K6qYnlrFZS79GVgVi5hQ/Mv/s8whWaWL/HzNNtxbRMvwkZg2MIs5q5VG/g9l5HXAptNup75e+nIvYWNQoMjGszp1sJYhNJ34yqK+YiG5u8P+TuZn/FxaZbL9ugx+xT5ZA+Z9Afp7JGGr/DCmxRipgmQvIAXkExxMX+5SmP4CYhAfh 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)(52116014)(7416014)(376014)(1800799024)(366016)(38350700014)(921020)(41080700001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FXMdtWxNaImXKcm7s9mVAQGk/inP62kecd38UQKnVZaP9htI+sVF2nvidOUXVWXLCAKETzYHdpROi7YFbpWDotuAMdz4s90a3YWnzjW7KDwfQTqsYc3b/1QXv5hzBV75jEtG0LHISO1NNThNIpQWb1HJ/vvb19CHyihjtf23PJZbAO3r262UYm40tuBLtsLOGR59Mf2mJjcm4m6RN0CZdRbMdr8p6KQY+VMnCTdo+fH4Q+O3cswqFy7HBIu/yKviA8WMvZasNoCsFP1V/MK2jHGn5iTQqEPwtQgLsqm8XrGWa+DbZH9eRWqvksab2UThXTwbuT1IZfNRvlPBf/+dqc6mxF5bBP77tcqIl21xYSpWimrMylGne9StAwbsROlsjNpNoZGse5AmB7Z6WFK9Q934N0VZ3wZHrwWWeGTo7YVFzA7dQbFB1EUsShCaoZZkmF+r/YjhsJAj1gBhU8zdGEer3ONf4QGUgL6g4lLHsT3OwG9oIkdYYgxd8djClCCYa/gROc7DAUPnNpsQ6ijMkatAV+DuVgLB2j/GWHwXcbDdU+INk2fmGUSPnVVvDTsbejYWS2mJ6Ng40fsltul56dxJOnZ4o3hQr29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ossTenant-Network-Message-Id: 8939e80c-0307-4cb8-4258-08dd1824ab1b 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:39:52.6174 (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: wIXaQn/U1yB0rnG0vaxN2EpFXiSGzkYbWuDxxOFWzRO79eDzramLHvVUmESPHralWlG6DFtUq4LMZ46ydD4Kb0qf0cHZ6KphWJpRVlDmbFnpygbzWbloQrlmtHFS+69v X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB12968 Message-ID-Hash: XSCJPTZ5VRFTXEDZGB5M7ESZ7BMHXM4A X-Message-ID-Hash: XSCJPTZ5VRFTXEDZGB5M7ESZ7BMHXM4A X-MailFrom: kuninori.morimoto.gx@renesas.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.9 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: snd_soc_dai_set_tristate() has never been used before. Let's remove it. Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/cs35l34.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c index 287b27476a109..e2eab209538d0 100644 --- a/sound/soc/codecs/cs35l34.c +++ b/sound/soc/codecs/cs35l34.c @@ -562,20 +562,6 @@ static int cs35l34_pcm_hw_params(struct snd_pcm_substream *substream, return ret; } -static int cs35l34_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - - struct snd_soc_component *component = dai->component; - - if (tristate) - snd_soc_component_update_bits(component, CS35L34_PWRCTL3, - CS35L34_PDN_SDOUT, CS35L34_PDN_SDOUT); - else - snd_soc_component_update_bits(component, CS35L34_PWRCTL3, - CS35L34_PDN_SDOUT, 0); - return 0; -} - static int cs35l34_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { @@ -619,7 +605,6 @@ static int cs35l34_dai_set_sysclk(struct snd_soc_dai *dai, } static const struct snd_soc_dai_ops cs35l34_ops = { - .set_tristate = cs35l34_set_tristate, .set_fmt = cs35l34_set_dai_fmt, .hw_params = cs35l34_pcm_hw_params, .set_sysclk = cs35l34_dai_set_sysclk,