From patchwork Mon Dec 9 07:40:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 848463 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 1D16FE7717D for ; Mon, 9 Dec 2024 07:43:58 +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 79A3DA4B; Mon, 9 Dec 2024 08:43:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 79A3DA4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1733730236; bh=6cAy4mm3Te6abSUmRbofPvlwi+KvdtZROOkl9m99gIE=; 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=E6qgWsQmjZ0UfKc10XCiBzXoNrqahQbulSLdKWAEpUTzta7Vt0tlxi7UsNg5UXhxT Eisj+4qxYYh1nom/8+ZygO393gni0wIIMd1udJxdMkalFrwe6+vUwy0LhTzW6CTNoy NAjZxzV7UrEPi3Gx622Z3dEEO9/A8WD2qW6epH0g= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 59FB8F80714; Mon, 9 Dec 2024 08:41:28 +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 E3D65F80733; Mon, 9 Dec 2024 08:41:27 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2F984F8060F; Mon, 9 Dec 2024 08:41:09 +0100 (CET) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011066.outbound.protection.outlook.com [52.101.125.66]) (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 092F3F806C3 for ; Mon, 9 Dec 2024 08:41:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 092F3F806C3 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=XY4Hl4/x ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tTGuUuoYxz0yn7c3Cw/J94hRFk+uBdhaM0zK6lye0vuzYk9DCPKKdcZzCKbspo6lo5CX+pzQSgDsR8nJCxWcuTr4PuvR8zSC88UaObObNq5WOPEGbKnuO8CXO7vTsK2XCNRxQyBhwjvLOa3wOJBJf0p0BV2e3xwNymCMJl+PBAVWC/v2gHpOb2HNr5RkUjjm5jvRubD6Myj53Lzv4gBTZmk2H6jFN3bfYMqPsbYmKDuyyrMSExHPwXAlZB1fTW1TvqhSKYL69rNWJ25xzr+Op+7ULSnh5yHYiV5wa+tcX6oLM0aXP4PuSeU7Jo+oxZwFJ5Nw4JL0MHEn2udiUaJi9g== 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=1HyQknMTeb76d4PRMGEOX1kqYJhvW1OMzkTTBONvr1E=; b=CiXXpq4AFOHJBt/D4nIFJ/GkgCn0A5PC3k5M/WDxstGdBZx9fC5tvpwKqxIYQu3KTAMdefx/AWeMder2Y/YmJ6e+Ds0xzfXLwFeTKOLOvTdFvFa2o8yatM+a0Rb2gOKziR+KAp5ETbkdAZpN7WuWI534rSCrSx6npdeGWYRBufrhFZbzF5ghss7ciL0tRUOfwHY11WCTVqB6nCd8o/I0a1S4A63zaFq/9RpXneyEAB+JDlRsxy1XWSXJdCUe3n51etS2b5WipZy5q4k9NdRkjJ5tOEmdYiixpTrQPVXSnO6pe0aTi3hPC3hdemFEiozwKWt9BoOiW5xiM/hqsd4XAw== 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=1HyQknMTeb76d4PRMGEOX1kqYJhvW1OMzkTTBONvr1E=; b=XY4Hl4/xecRPK/28/Z76CHSNfxZrMCmhv0UBsc8PA5+6bjWli5PdY2GwTs6GoLiu6bzDpg3BMocZo+s/n22J5Ie5Lw0FlM+1tRNRwsYWcWm4zb3JJomdJ+ziCa1f2dtuLdIh6YaHGV4weDW3H8iqGn65pHB3dH4YmkvOcE/ynLA= 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:39 +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:38 +0000 Message-ID: <87cyi1mhhl.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 14/17] ASoC: codecs: madera: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:40:38 +0000 X-ClientProxiedBy: TYCP286CA0039.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29d::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSYPR01MB5479:EE_ X-MS-Office365-Filtering-Correlation-Id: 65501156-0d6b-4480-67b7-08dd1824c68d 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: TcLSyH7JHedUWzlnTEHWARU6P1vpslFSoaum36b+uNRzeFukKcQs12+5kL0/NTaybclAwsk2nNnjRqKiDo65cK75VPyCvCLfeL0zHlVUQAecUO3HkgmBNfefDb2yo+JiWOBWCIiGs6E2jJ2V3hYYSoDqYZz5rZiNfLlddpWVgB5HsCRTWLLs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grFX6lIvQaYaNfXH/fKPO65WnEoyU/6pch+9DFaHVZRsCFqRMVqW0oCLWErKg/dQ1KyFEWiLSqwfNDytQqJXI9QgbjOghWTnBPl8cdMX8XIlmE39JNyFOkJ2mt97HvLvqFtHAQqxBpZ2yBHAhEYb6J3wDDYMe/tAUOYo4pza/Aaeu/HqOZWNsij2Bn17BK5FSJ6UR3So7JB1hUYbENGG 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: G40UKSJXEmt4rAqQJSumXhzhEbgYS4VtjpY+eVaP9myv2VqOaH5LqhTx6swApUYVBBBryMvTSXXHv6wjFfCTJE08hN9o29twBv8losA5aSaLFR7LTN3aIDoydByY5psm+i+1U8qqKXudGe3MV1m0Th9cQDRzkd8Nyy7k2n93pSEuoU7mi7S89cj8Cjwn0NVcIi2EezCluByXd9ElKm5xiqE93wCIxzRRV0Mh7gJpoDE2hyCX9KP6jb2STEmSwTINZvR9eMErd4OUmvM1/sSQSyxh1dACwuM/Uz/9PouOQeBLXbmRJ0tj6jo58/tQTaDApplcVz6zMz8GJ5lFqSmPqTpt3RhLMHorXbCZUxQ4+u4Lo7EqkMB4wAgI3uQyfp5Y0wWWAAJO3LInl6hI3TVx3FiFUL8zZJ7LALH6421oz33UURDukB36GcWH3MCEBcYthCdicA9U4SD3qdsO66i2kYi5YgpRp1RbabNmjmUJIfxPJwoQKXLjJg3uhMNsYayV/UN7JuxQze5eweskF+zcmnvMCbjtVGPrk+zeVtTteDRZYMw00qsdC7OGuSRSsH2RJ8PyWr6uqgxt/qJZ6H/UFiYd+S99ECIjz7pjy9866ALStkbNKwqv+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b-4480-67b7-08dd1824c68d 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:38.6587 (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: DjoDx4i4c6yWU+SK9MnTfd3H9Z5I0R+4LjkDDMexXom6Q5dSKFay/tys8GCVcKt9AotwaBzeLNKxWjNq8vmUaI/KcG0NADUGaUyGOnbXPqNdIILPpKPg9lfwP86GZ9Wj X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSYPR01MB5479 Message-ID-Hash: C7WKCAAEYQDQ4YRWZ2XQAO3EJIUX5ED3 X-Message-ID-Hash: C7WKCAAEYQDQ4YRWZ2XQAO3EJIUX5ED3 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/madera.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c index b24d6472ad5fc..92457b4a908bc 100644 --- a/sound/soc/codecs/madera.c +++ b/sound/soc/codecs/madera.c @@ -3285,27 +3285,6 @@ static int madera_dai_set_sysclk(struct snd_soc_dai *dai, return snd_soc_dapm_sync(dapm); } -static int madera_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct snd_soc_component *component = dai->component; - int base = dai->driver->base; - unsigned int reg; - int ret; - - if (tristate) - reg = MADERA_AIF1_TRI; - else - reg = 0; - - ret = snd_soc_component_update_bits(component, - base + MADERA_AIF_RATE_CTRL, - MADERA_AIF1_TRI, reg); - if (ret < 0) - return ret; - else - return 0; -} - static void madera_set_channels_to_mask(struct snd_soc_dai *dai, unsigned int base, int channels, unsigned int mask) @@ -3364,7 +3343,6 @@ const struct snd_soc_dai_ops madera_dai_ops = { .set_tdm_slot = &madera_set_tdm_slot, .hw_params = &madera_hw_params, .set_sysclk = &madera_dai_set_sysclk, - .set_tristate = &madera_set_tristate, }; EXPORT_SYMBOL_GPL(madera_dai_ops);