From patchwork Mon Dec 9 07:40:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13899018 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011064.outbound.protection.outlook.com [40.107.74.64]) (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 43FF42156E9 for ; Mon, 9 Dec 2024 07:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730033; cv=fail; b=VteeVWsDiDCICeaQ6Vgd4Pv+ydAZQMg01x6eKv7z0MKpiXDWiIGun2u5t7JHmDXVDgU8CXU5bAso0hnHdxBagi+cijhbZcwCe/Q8cVS38uS98t82WOPTiUBktl11O/Alo4aNBqRgUoraqKfScVDCcDwtSioqPdqF16loAp5OFYE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730033; c=relaxed/simple; bh=3VSL5LZqOSP17aVl/woDFDsIDZMHGL3bZB0FwU0A7qM=; h=Message-ID:To:From:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=mTU6vVb0t91EuBpox9W+vuRsYZwCNVt02/xWcEcn3unWhXs9Qi8ODXNc7NFGekRw6rjVsUnvYbEsyJ40SM5t4WU7+t5Rpl0RP451T3YW0g7bjEZOoxdxK8NwPt1HHPt4R9BJuDe3IP7SABA+nuWMBrGeFHn3yLFqKLbq3gIJekU= 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=m7wF2+DD; arc=fail smtp.client-ip=40.107.74.64 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="m7wF2+DD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nhlbLERguAdZb4ijYSxzES7n4JvydxQ25YFKMwIM40ivPEFTEM/gDrhGEgkX3tRMvsX3hBZn5IS1z1Rd+R15YWFH9Ujx1EJ2G+2DZUfaFeuvFKjoAOLtzrUpiBT5Z9dVCCKUYfvJQKcwj0kDPZtJweccghd9YdHxSYDdBFKOkid9pBUsd4IS9rjn1uiKqs8An2usucBdLwa+hFxvVlGDkAbvhQHv9dFa+4LrQlW95UM9zhyPerBxzw8h+eVCWiAxv0U0c9+NNoVhBj7wjHUZxc5D+/MdzouBfpLCOZQTZX5KOPNep8EkdYHnUzMCR3TrofF9qkiLq5vtb9+0taU6bA== 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=i1v3YIawXfoT/0g9OYwreHf5nPqkslv8vQL1QrNXrjI=; b=DU63nfcWEdAmRw9uME3pcBFsp5BZwf6tCN8NVNa1zX2ejyWeduRTJtBcBXS2zuk5hteqso4szveXYg8Q60/wyQJq9c982gegG80l1ivuDX06qOQV41AT+v1EWOoX+IKpbLksMxG/UQJO7qVDtZshnu/ZBTi6xO6y15YvcFtlfchDpuLCoYezG9RsaX4tMgQjl+/hjSid73zkZbPq67x0NjpWVroj0X/8kbOdYXOLetWg2zASDKcvvHxFBrEgUvunnqSb5KeYGPoZlTJ8Xxdy5164SfezO8XybYrFo8hRQ9HhqIZUDd1eZazTKDvppJVn+O868b/q1YJfqJvoYnFGbw== 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=i1v3YIawXfoT/0g9OYwreHf5nPqkslv8vQL1QrNXrjI=; b=m7wF2+DDD0Hy6eDYstMHKPWW/fwrqA+UOQOlWaTY5rVB5Usmrqs9yBCtkXU9aBYwPfUxT9RSDeCJWV4EM5Tp563rVmkPP/Qxy6CiBsoyK/bK/dQUqrDW1jtXjE/tkXWuYmefnPSzkM+3uFmgbNCBInPFF+S8sQksw+QBl8ndXD8= 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:40:30 +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:30 +0000 Message-ID: <87frmxmhhu.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 12/17] ASoC: codecs: adau1977: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:40:29 +0000 X-ClientProxiedBy: TYCPR01CA0185.jpnprd01.prod.outlook.com (2603:1096:400:2b0::11) 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_|OSCPR01MB12968:EE_ X-MS-Office365-Filtering-Correlation-Id: 9cb49b0d-516f-4edf-35c9-08dd1824c162 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: XtGM05cEa+ibX0W0R6ImHXHdUtmzi4ZLIFhXltOyrA1pZ3iRcJJPiER87z/l8buJAxuruFkh5fYLjyd33g+oLQOkW2ucXRYkFc0DLzlZWPKQTRoWCythK0FkPWf2GjDa1FX4pI2kAIMN+u0G3nSJyZBwGpRtQRU1iaTDbEJklMlw+NU2CuK6v32GrCoamglJuCdMTyB3R4q9VbeAZ+cx/sYIUnRn/iDaY1AZbOD2xrMQxmwJl+j12ws4JrW75WdbUsJbHj+H0fH51fEuXI1pNREdipWGzgBM4BdHA7QCudxdFwxL00V65KhqfxkOvRau++206bD2n6qXAofa0mfsDn6wylpyxQAEQ2sM+HY62yrKfFKCBY3hC9HpwliTWl+w8BIxg1vu+lkSoeh99uwSrEYAb7JrL5B5cDXo2d8GS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.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: fB/6yFnjmMK96A6faPiOImFJEiP3aNj0dLD+JQE1S1PEarpMIBUP83HIvU7Nm2Fg7Y6+iQ1bMywQMu9MMdRDgPxaGXslIxhPfJotD5Qoc1gSDc/OPdnes1d5WTXz4p00JgDLnsNczD9gN/lZnQEyfUU+HUvAi8kIJ5f2AAuiPl/kSZqfD/ImIrJxRldhGwQWdjSFNLeKan4v9UqKDkGuOXyzwiyXRKNtW/wtzV1yB82W3Owl8ZeBZsJoJJZ6VobThS43stbX2MPXxrvNh8MfY25lb9+8fLQvkwhW912oYOEky5saeWOYXqyHEzHMAzGqx7TRh6X/EgyKoWSdIETgbHDUToOIkAXu1l2oV+es4Wcda46u6iHSPKiSjnYRNiTy6AnkU8SlDMOpEtOrgCSdP+bpRo3POqLs5GU+Erxyx2qAu3z+Nf8YOdiU47uITWbPEHrX/zbHDwg0BaYSqqrbf7tv7MGQ3rMs9tMJ74ICdz1MypNHzWXqRqwhnNWca9J0lvPPmFpdu8c2ucBbh4r/Ygid4CodEcDOo7XtXLgLvNN5qpzUjvJe87RdOTaop3ZVoo/aSsdGrPYLX0YtcQO6S3nZ4fXfKao4t/q4RUe50gDks84ohvyIBD1bwVIVaJZd30x2w7pIOGMyp9HBFeR/GDPCu3bYRwHyWyh9Brh2GIVPJYjnXpGMOGz1++m0wugSy783y/MY2+jIz7NgcJsW350s2rJFu3eNKOCqo3vR9KS8aHDfoLqMaulWbG2pFnErcQKMJ5xlfXi7Ta+BsTaQ7lWd9yTHWT2f9Pa/6Rx0uMSeXMITZSFGjjBG1YnogY2Y9cgwi+WjqJFTSQkPdKeVI65y/z6EiEE3XpWhVI+BicDf3fuhCa9LoYdLJZ1Y8/YJF158t7AgDA63Da8qTs3ua50faBpJLhkpx3h3nGncunOVIcW9lduHUmZzmPoNJ4hn35jVmpqTsDCaNoX6Kv/1afwwDBsW6jBM6Gq8W8GWegZnkEUTMhBndOLUJVhrpWRGlR/TnA9i/KswZDfnY4iTbIc+PEu48WN74WpxMZnmo7tMZpmD+72Q259vf2GUb4Lqzq0PB3Yab81mINkIGLR+YP/nZThlgFVTZFMkciMdo4TcDdn/ciT1K+EIE50pJmi4ko46XOHy1R1BJxOAFTVuo35YPsF0Q6kjcgonQcTZHL55W4jLoj65ShcmpUGblr20HoYHmwhEvyyfj5O77p1aaKlPAgQ9EPxlITsbcVY19Nn5ltqMbvd2PjnsOnisHYA3sTsiejcRpOz4mJsGVzBBpF4rvPP8Aii4TnycJv+NWlgi5dSe0kdVy0wC31m0kGjHo4poMJTYhqy78qevvsUsFe+st7ISljCpw2DjdPGi9udPGVK0FAwucbETCTEo+fQi9xWgLbTqWKfNDP+rBuXR4cd9a+2G531LJzG4MHTqIdbwVYhIXFn27Ig7lnVhuGPFed4jjDV0mpohq7aprBtwk/SaQVrVO7fjJPfqA8DxwYSt4vewteQ5pW/+zVglLa3ao8j0x8O5u0XSxbAtjF50S9NIhE4l2wlZ09v81PtH7W+Uiu1DV6l6vnn/whK431DwQYX0XVw3ob0tkuTI3X1XJe+mqtoyZ0FDKyKEW/TQjsQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cb49b0d-516f-4edf-35c9-08dd1824c162 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:29.9859 (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: fSR5n6UUOIF9p76wfjMRTrf/i7Ebdmd2OMfD2FyeU3Uoz1Orz8ukl61njx98RWlv+F8jBFEAcO87MyeFMfOHw8dTaIO8c+qCZAIXiSjaKxtl5lVLE356WYbTmT+gQOXf X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB12968 snd_soc_dai_set_tristate() has never been used before. Let's remove it. Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/adau1977.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index ae59efb38f265..9e57fdc0f7ec6 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -726,27 +726,12 @@ static int adau1977_startup(struct snd_pcm_substream *substream, return 0; } -static int adau1977_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct adau1977 *adau1977 = snd_soc_component_get_drvdata(dai->component); - unsigned int val; - - if (tristate) - val = ADAU1977_SAI_OVERTEMP_DRV_HIZ; - else - val = 0; - - return regmap_update_bits(adau1977->regmap, ADAU1977_REG_SAI_OVERTEMP, - ADAU1977_SAI_OVERTEMP_DRV_HIZ, val); -} - static const struct snd_soc_dai_ops adau1977_dai_ops = { .startup = adau1977_startup, .hw_params = adau1977_hw_params, .mute_stream = adau1977_mute, .set_fmt = adau1977_set_dai_fmt, .set_tdm_slot = adau1977_set_tdm_slot, - .set_tristate = adau1977_set_tristate, }; static struct snd_soc_dai_driver adau1977_dai = {