From patchwork Mon Dec 9 07:39:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13899009 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010016.outbound.protection.outlook.com [52.101.228.16]) (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 46177155751 for ; Mon, 9 Dec 2024 07:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733729986; cv=fail; b=pCEC1HvYA1znoXavbXAVD70pkdpTNlXSzrnrSs6V8KCTg4FQqL+pJYtVEB5LGVqb3cTLthu6FrnqyXK8GBw0UcbMkokp5U7OHtCDR1poj+xNOUGvxjG237YFG0K2J2uZasrdT3nDWtrAZ5d82DfKMW67OYBdK57wePjJ17bA9cU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733729986; c=relaxed/simple; bh=oNcGjzpvOPtxpfg2Gfx1xEYaWegg/LRNn6RVbRXYN90=; h=Message-ID:From:To:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=ii/DzhHU8Dj7ZQU53J0CrQMtcGK8GbU09Ce/nA2SkmpvqoeGpASlnqOiVPcsaxxmYxiX0FmW/i7sKgL0aywjPimE8j87vS6alH123t1TKP1ho5rtDIA3KJS39/0DRm8wLkTQ2xXhDPQnoMoDuf7SrEtwFiaO27BaTtr+1Kh4/ak= 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=ejAP31GC; arc=fail smtp.client-ip=52.101.228.16 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="ejAP31GC" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HRdVwjH7qp288RBCEoohXDlcD1dnRu60Zq0V3zhwS01pjk9mTpmHzS0TQULkNMrPm63kkSNuwA3GeR504NpM5yzi7kMHovU74EG6NLhA8Fb5qpvQLPkRjBse/bj5rtJJbtlnRdNjT6ixdCnf0za4sH/F6PZqhYOE5C0oUcma9JJdzTnhMKq6ITBeQ7nxxHMiORKqLsLhZPJcjZJgHdNCWncXIEg//C7B3Ta6nGOuZ8GXhXrPIPYwEjshwXkoLIJuzvqP24qpumEclRcm6fBIA42HdTeLVYzQwgZk7h8OSSX4ZQJTh5YN73F+tfQOpZ4HGwInm2+u3jFM6v3RfBk2ww== 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=H5ejxYyGOUrP3+fXaRXhLQAhm0z26QmMcLMJAPceWWk=; b=f09eqrSW1OjNAiIXIoaBBtJcsGV/Z2fB4zTX6J6VWNVgmJMAphX6ROP322MF/WOqnnh+sEx/DxaDTL3riwpiFsAev38jMjd68bvtMbGwLKU9GlDDdg47n+ZukubUXu5ttumE0rh4E9SnhuSdZyXEgp07EnWJAhRfctAr1P/9bimBa1R0N4DsW8BaewZrR8Ircs0xu76Et6K841dA4X7flWw3hn3aUElQRY9cr3igSjGs/xXUVG3gS+OFXcFPsVee1fsSDnJ1ZQhBZq4l0Qqc8yu+kAqv1lnAIiOVVcvBUeb0qcwsekDCXgRicpAlkZHlusICcUclC+4S7K7oUrv6ow== 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=H5ejxYyGOUrP3+fXaRXhLQAhm0z26QmMcLMJAPceWWk=; b=ejAP31GCehd7sC/85zAuSYfnhi7qd8XYU2OF3DtMQAW2hRpNOy01/47wOhdoG60MZ2fP+qYx8sVPUsy9ezVgrtpUxYllnIiwvytflyt/Juhoz4+pUipfBJn7suW75GFbHoaOSCWeEIbw2IP+69wahxihLlhIqNR45EsR2UZJ1yo= 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:42 +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:42 +0000 Message-ID: <87seqxmhj6.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto 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 In-Reply-To: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> References: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 03/17] ASoC: codecs: cs35l33: remove snd_soc_dai_set_tristate() Date: Mon, 9 Dec 2024 07:39:41 +0000 X-ClientProxiedBy: TYCP286CA0112.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::7) 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: 38c845e1-6eb6-4d66-2352-08dd1824a4e5 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: F+fQ2LHW2SrfH5F9I0Xgc4s226A9u9+YlVWVl6szHWniLqYo8yJLpFNrkWMCoh3+cjUws3/qF0esOIRkQJY9ZPMd5t/MF9t3dzhQersGgk5IHNTAR0eIDHuibixr4Ta4FzeWs0LESgop3XoQDvwYRg68rM6WifilEpCzwltAdJg7UZcHXomC782LgYuPhom2hFd29V54QftfyQAJ5h+q8docS/pTPHemjvY6G5BdKOLoqcnHBvIGqjG/lpKNCFQ5ZRqIDm+fCkXDQM38uCIYD29IUUb4UoCZ5NEKDBH0olRx/r/17vNmi5YB+bx6C0pTcn1lZuKAlQ3q3D8MyOl/1l6IQtYJ2fxDRevyOp2dlnnvnKVBE7BkjvXDyh5Qji1p4kATWWUSyE0uxcRq8iVAfsYcplFTtETE76d1Y04/r8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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: fzhtLb7lLkBkbe5VuvZUlBx/wiZxzPhW2tqUjwMa+QmH9Z27MOEVduxrMo9qyyiG4+jIj8qqV+ugCKvR5/QsjDlB1ESIVerlsF1ZT3WZy1qtIZ97D9jGMe8ZbuXhpveJkzBelPPpZdGvEoKtsdV9fGzbBTH0ga7sLxcdggDFRh1fmYXeHUZKfTDUIPMvTeOMGnLKD17OEB/Mbyx00nOdTvaRk0WaOmgZUjQRxh4msCMpzsfFJrlIQljuu9V8HcmZ6BVwkqv8aVA2QCwmpYhjxLEt1YUBPIEz5yj3Tlde+0MI8BAegFjLb3yQrUYlMkoEvj6O2/ALS2g9Y7aQoSvzR4gLvbthw68o6dGsYaUpCylXtIRxf6LW/qvJrSWstjVtEoFIFMJlUWJG9GFdzw+8jQj9Sbn8EeBQnGc0f0Ng+V8C4absCIiUh5rVDLQwtcrqgaGr6O0zvwStij9au5Jv8JMnQ3/5GVsm/2MckEPgEy9jonD5vFcxUP0qsGklgGDlWkplaiHTHemX4WVQUcLvDxUcAdlK+xXBoelrfhAkcH0XwwQZ0nUN3u+1Dj6HI7uWg4Q1pmwIolDaTeWIQtSIwTvBGt9obx/mHlfFzJDt6/rzwc8jmwzfcEGIEtucROPuAWbB/E60iid4LPHnzrXyX8403wvQ1SWxPpMMy9MJCrc08qHgr/2GVysoKuMIKy1m5yv3W0l/0IABcJJiAJwxFp3Q77e+nLFG6wd31Bj+8Cpe5jIja3vJQQ1w+xfarvTzSSa9BqJxsM5YgBK6XhjKWsojyc/6zbIwErWlmMkRjf0QqYaAFF54Qjqq3Er3C01G7v9sudJS13ftSrLHREs3sU3IWcyjtkJzxUPuwO6Fjude6+ONej5ojHPml3gnhZ7xxWmI/dnxiqF1mzDEgRuPnVVqgOcn1x/5rZyrSybnbRU46Sxj36ZKtKQJ/0cmBCQGwycX/UCNvekKs/ahm6is9enCfuxB+HTpfnhfDqtBELfQ7FxcWp6tuE+7bQ/QFkk+kdgE6MdabBTEu7ST8i8uYNmT8f6zBs1AcbOgy4WQfe0SvQVKh47qwco54rjdEOO3DvjVnxHoRlAznNbN2CMj0BmDtmxQltEr1aYaYCusp0rfmLUKcPaLEnr9wV3fAJJgRbTNu1rv4RbLfkm3XnRd+EEuMFlPbv5G+AeCjjeDDvdocFqyQD2sFVbsX/6pawvFISOpNy2ONc5E73k0Z6CF4aHrCx8cQE4MG72EHFCqH6xn7gznW9nHkxZH1f+Rs73XOlxVfev6fRaRWt8f8PX38uV1i8wI0ZroifUOVoW44AdDkaRusc2wioZXqlecyzh/FEhcu5L/g3ujTFxg1cirML987Z5QZibrHxOpZnoHDF3ZaH4ST1H/hP6ALkPaJgLZDkNnsrxA8DLMh1VOqobCDcGyiJZbG0yQ0GnNpisB3LscVYhSJ53mIqKMYFCREdOK3dVY1BKkza9Mfb1krk40mj3/+YmEYAU+Vok33AktnGEqstzLmAHPHAiY41/nOph0Si9ImmCST+WA0ioFpQl7+6hD9J/484Ck4ETaqIgfSIl8l9v4yCyid0uJquyBagxOTCgAcjtiTxm9akZZnY2SZO71IdDQPH2S9i5SQWotmqg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38c845e1-6eb6-4d66-2352-08dd1824a4e5 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:42.2240 (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: SJo9vc4DJYIXosMoEnj1qIIJFy3ZrX7eO7rp8VFjpcBEC9ozdfebHAmrlzyoT76nggyoAgl92IVxdTpyiwkHut1RMrOJUiKgBnugKTRxzzlfcr1uELC0zdN9NlxpcxPV 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/cs35l33.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c index b03aab147530c..ec1de0225eed8 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -523,26 +523,6 @@ static int cs35l33_pcm_startup(struct snd_pcm_substream *substream, return 0; } -static int cs35l33_set_tristate(struct snd_soc_dai *dai, int tristate) -{ - struct snd_soc_component *component = dai->component; - struct cs35l33_private *priv = snd_soc_component_get_drvdata(component); - - if (tristate) { - regmap_update_bits(priv->regmap, CS35L33_PWRCTL2, - CS35L33_SDOUT_3ST_I2S, CS35L33_SDOUT_3ST_I2S); - regmap_update_bits(priv->regmap, CS35L33_CLK_CTL, - CS35L33_SDOUT_3ST_TDM, CS35L33_SDOUT_3ST_TDM); - } else { - regmap_update_bits(priv->regmap, CS35L33_PWRCTL2, - CS35L33_SDOUT_3ST_I2S, 0); - regmap_update_bits(priv->regmap, CS35L33_CLK_CTL, - CS35L33_SDOUT_3ST_TDM, 0); - } - - return 0; -} - static int cs35l33_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) { @@ -664,7 +644,6 @@ static int cs35l33_component_set_sysclk(struct snd_soc_component *component, static const struct snd_soc_dai_ops cs35l33_ops = { .startup = cs35l33_pcm_startup, - .set_tristate = cs35l33_set_tristate, .set_fmt = cs35l33_set_dai_fmt, .hw_params = cs35l33_pcm_hw_params, .set_tdm_slot = cs35l33_set_tdm_slot,