From patchwork Mon Dec 9 07:40:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13899022 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010029.outbound.protection.outlook.com [52.101.229.29]) (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 07FD6215047 for ; Mon, 9 Dec 2024 07:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.29 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730050; cv=fail; b=bXQh2E9BXikjBWxSJDlvBepOMAX/DKT+AeMiHCIkLfVMeDhlFJ9B0hbb5S6jMRhDDOIjmNz9FX+JLkvZvUbhlvQI9IIvcREKR9kdd50JXou2HtBvADW2mPyKRT6c393WFGE9G8/B5ZfQDzmJok2AimOHD7/jwB8bSDISNe1NhYQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730050; c=relaxed/simple; bh=LuEWTy/kuY2f34mx0Zfgcikbg9NuqlrBg/ytodLKvt0=; h=Message-ID:To:From:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=EaenGp6uvqj97ALYfj0AtSLWSnwzH4n56nheb5BFbJNzv3UEIPDxDA7eNRxzxUriTHr+tejb+Edm874uxjVbH1fLmLCURlEueBj0PyLYP+2hRkyFZkpU2coxePRg6Ifmk0Qb4Mn0zqjZRy/wL0/4QxX2bxT5CEHKkGpBaqideUA= 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=asKT+RJh; arc=fail smtp.client-ip=52.101.229.29 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="asKT+RJh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DVVOLoNU5a4GMmLVEY8UY3A/aua2Hnjgk1UDBXSa+hkn7RD4O4mBOTEusitHFAJjz+m8wbd8eGo8FvfzP96jhnxRRJrIcRpdoG7JUrVVoD/pYZq6ogCDG9HuZgiFQT0y73paz/bx7mdgYekKRoWTWdgAS30UqCEFxfKk9Z3MjqMN8ziLJLLVTxssVv58z9TN2Vwi1cGuL5hXf52VS7vtuXXrAIjQtB2nppbsBKtvPZ9BoKI0j/qaeIfRK5WBSwRVNog89fMldQKy0DDBeXN4/ALeeIOI5wgu6Sf62KU8M6jbxmKWCo9W8mb4pgEnUaBYaqREAMnojNVOydEtFHgZvA== 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=1j2QscSPkzjwrSQOKqUeUX1vL55tCOBHc5VHpsCJigk=; b=TUah/3kl1yVySv5STFzpvaItXxi5WqfEvJrrCV8mhKHLG+IIjwSOjn4hvZAk+EcjSuBTvHBKKaL6/Dhw8xr8yV9UsIRDFad6uwAxyeiAKRlJmxBDjVZjYOvuU9twrdF+7XR5prQ9tgdAeICMtjY9IXUznFuy/6O8AKBmhNcIqXnb6vuVO3MVhmUAZfIBUAjrEnZtlXOwiz3hD3h5Rtvuq2CVrR1bvm3qv7tOfeF36OEbRjrMw7jmeXqIq6yj9i+GgduymoWzrRBCZL41YtPGC5xlRmFe0vbV0SNXQGgx2dLBtZlGn3G3p44Mlkh+Vs8222EvuzrgxdET0oy47fpwDg== 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=1j2QscSPkzjwrSQOKqUeUX1vL55tCOBHc5VHpsCJigk=; b=asKT+RJh5O4mHE62yDjfjTyltLd5JQTOKVR+2rIaZQrmyETq+klLaBPJsosGf/Mc7qrCw3lxfodzcD+nKENzKqLe9LnNzDvlCg1LyCgg431hqFSrpYk2tVVnmGdO3DYgcWZtBRrAfRnV8QOrFDMNCoLFOcVmgjQrzfqUUJeViV0= 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:46 +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:46 +0000 Message-ID: <87a5d5mhhd.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 16/17] ASoC: codecs: twl4030: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:40:46 +0000 X-ClientProxiedBy: TYCP286CA0223.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c5::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_|OSYPR01MB5479:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ef4a4aa-f4bc-4c73-2826-08dd1824cb60 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: z3Ee/6aH7/Zm7rZJOt3lO7Q8kDzN/TkkFYtPuAcme8WNNxUFzk+ImlIAGtApsyM7pZVyk8wz6PU5/nkdpIAE78nK2m3226esZgJlaKOQEUwzei7fEtPTyJUR87pjr4KgHQzjYIb7K4J5e9XpulA+H/kfzVrnTW0ZsLDX9j9+zJdY9XsRTyDNa1Y68PCTgisyJ8EpUv06QMlIK08XAF6yxJj1Mm0pvFFI3CCZHTJowKvPMNEH6Obugu53n2rJBOfCzRUYU51BjckweYwMGqGL6ye+xBXnE+D6K47TPdZovx4dgdWH6w3Bn5gakvLTZqpjYvPlQyCOShJUkP39BddBhv82zMM6bZA+V8TFEWsWLPvL3WdscNLP2iI4/vEiGLECZgEH40GJhM4wv11Dfo6IE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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: juug+wNUuw1ZZFvy/+YN2fTWMHcfvHJPnAZoZ8IsIZ0jQ+EcWPoBCS3WnVUcV8PI7yhm3Y35GWXoUk2aNHQkWUHSY5Q/rSAtJwgrnsSyDXeWoQScNGumEJhVit2zQA5z2SIoKilz9w0cQBE6vrow6hMz13ga0MIB5PZHwOnPbysFaYghRE+7xYMlFv/KvOSyvnNLjGWp4yvQpMpX/OUhtmNtNABkgGoa9YjPh4y17JcLVOZC7pwsAH32mdP6m08bA5ekn2vSKNxOpv9kOLawObKxk1MVvMddXzBH8mhIE3w15KNV8m8CojXyHXGavTS1XQybagNTSIKwXYQY6ntX0aBZnU5lxAL435TP4cjSEgzcgcxv2LbzTV3sNrVISD1OusD+OUC8fy4wC+pqmWSR9S+OTXhK1vS99Z5DsSj6azIc36mZyPYw1o1MmH+mLPuYn/aNYOHZZyg33HS5AfymiWyNdU7SXfWAHanQ6N41Iud1yiGihiHXpYF4BZScHvQQ4JDlQDPAINeldHqXDWwM3iv/omMdGeFoBGN/1QLssUF5GvTJNBuK41tEht2oiLDO+AGY4DZNngFq/E5sXULT4oWvMbrDtrxU0D1zTe4gAoMwf1C+uz9fplWA6hYL8khu7xIlQEb2zQfdkgnjDeK078PZAuspRet3XaLRoueC82EOuaKIAv3vxoVFSUtO7+TGanMIh2PECTjyooLt/JyMEi8vzkFn4ew/zVoBt6rN9vt4Zk0lXRRXIHUbSHYoUDTU6USj5wJESvAQNJBW6P3C5CdzYTXdGrgJdc3jO8kE3LowXCbbSTWnm4lD7S/W/mI76vYcmE6Pd599T70x0fhA8K77Wq6GuTImOGcaTIC7gHK7N1VUdSpIFMzNCi0fzE8hi20DOnn+q2OPTfItl5QStQOnRZZ4wlVtlfxkXue2Iu8hXDiXsK1lsM5GlOdbvIWTgYRsRjpBBDQzOSSNNpInmpt+BPjpLl8mo8Z8WjhC25+JLUPx55hHR0C5Tk3gY7k5vsvdrNohyCoQuu2FEU5J+dMBGxymJygWM0ECbN8apPeelXHL3hJf9VvoMtERYBPVChZIRTAdGp2srgDUbULW9flYKQXMnDq9c3RI6V8pCwfl8o6nhmFrbBoQVs4ZX/9P6J/28Jenr5UGna0a10dbGR14Iu/oA82V1QGQUAx5rFg1cmEvtHccvT1YYA0YevcD++Q+PQ57IZ95/P1DFgso1tJGBFa6Vhn+B0c86j/rR22rM/cG7FyPJcsIhybpQQC4y7knoI4bintWXIsk9h2E6v3914ZyGnhn4+9uN3uT00MAAb9GQ2Niqo8Y+ysaFo5PqA2B6JFHs5fQE5L2R9ieBTGwUVicatPMluH2UTYdr55njWQgKTZWbJ4Ouu3oGygelKHdCB+EMVwCslBnxkJAGu3ozEYJ/qLY59vjaYtf+iZdMysXepOKzUlonBG8F9/KKh41qLuRC0GCbbmBJ+7A5a6lN1tWK/wuU3n2/P93BA7Luy6kNSaGuGVdHCu3WL0b3k8XrFj5i0gzG7eLDTGUoB0ghVNE/p80OSUwmwsb/87X+FpqFe044rr+qgfOFCGkGft16FpFW2QoCJ3h6bY8D1qwdAX25kV1ixLX/qNWvOM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ef4a4aa-f4bc-4c73-2826-08dd1824cb60 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:46.7589 (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: UIbWCv1y7m/Oo51guPHenaACvMFQ6l38tPYa6KFOtuUkxkw5NzQs+f829GRVYQ37PIySo3XPTWWW6MmM5D/qp/nEyzTQZUfBzyM3JchAddBvjUr9/lpMt3YIqUubc3Ox 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/twl4030.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index e3782762139f6..28ab6540d3400 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c @@ -1891,19 +1891,6 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) return 0; } -static int twl4030_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct snd_soc_component *component = dai->component; - u8 reg = twl4030_read(component, TWL4030_REG_AUDIO_IF); - - if (tristate) - reg |= TWL4030_AIF_TRI_EN; - else - reg &= ~TWL4030_AIF_TRI_EN; - - return twl4030_write(component, TWL4030_REG_AUDIO_IF, reg); -} - /* In case of voice mode, the RX1 L(VRX) for downlink and the TX2 L/R * (VTXL, VTXR) for uplink has to be enabled/disabled. */ static void twl4030_voice_enable(struct snd_soc_component *component, int direction, @@ -2085,19 +2072,6 @@ static int twl4030_voice_set_dai_fmt(struct snd_soc_dai *codec_dai, return 0; } -static int twl4030_voice_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct snd_soc_component *component = dai->component; - u8 reg = twl4030_read(component, TWL4030_REG_VOICE_IF); - - if (tristate) - reg |= TWL4030_VIF_TRI_EN; - else - reg &= ~TWL4030_VIF_TRI_EN; - - return twl4030_write(component, TWL4030_REG_VOICE_IF, reg); -} - #define TWL4030_RATES (SNDRV_PCM_RATE_8000_48000) #define TWL4030_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE) @@ -2107,7 +2081,6 @@ static const struct snd_soc_dai_ops twl4030_dai_hifi_ops = { .hw_params = twl4030_hw_params, .set_sysclk = twl4030_set_dai_sysclk, .set_fmt = twl4030_set_dai_fmt, - .set_tristate = twl4030_set_tristate, }; static const struct snd_soc_dai_ops twl4030_dai_voice_ops = { @@ -2116,7 +2089,6 @@ static const struct snd_soc_dai_ops twl4030_dai_voice_ops = { .hw_params = twl4030_voice_hw_params, .set_sysclk = twl4030_voice_set_dai_sysclk, .set_fmt = twl4030_voice_set_dai_fmt, - .set_tristate = twl4030_voice_set_tristate, }; static struct snd_soc_dai_driver twl4030_dai[] = {