Message ID | 87ldwpmhid.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011043.outbound.protection.outlook.com [40.107.74.43]) (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 03013215047 for <linux-sound@vger.kernel.org>; Mon, 9 Dec 2024 07:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730015; cv=fail; b=WL9oMZsFqUPfasg2mJYSHD7FCznHJJiNTfXKgId2ezpuOUBTTLgN2rHM0xeS75QxPcG2jTzdWB25h0+Si3vx33nO6kcpftIzkVk1K3JWu5A2tZeTzSa+C/wlIPc/7F9/FoRM/UoOtuoaKveDPQ4y011U56CQXaRp+AT2QBy3IZs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733730015; c=relaxed/simple; bh=/F8kZfV6P3Eq5FGeVR3K/rQvxHvWen9EL15AdNcpIhw=; h=Message-ID:To:From:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=Guhv2UxqyiGgiPEu5l+G/impg1CDzbWQYV3viCDDuSv8gHSKhFC9l1nJFd0jRuPv0VVMb7YPU3KTNsyUwcExRJnjNZjZ2dF+GZlDuiSavEsRpiKU8dGLyHcG+lFOpI8LeYouo7KzVgFCqDz5qNUZiwhW9zVrlIeGZrNeAhKQVPY= 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=USSAyRyu; arc=fail smtp.client-ip=40.107.74.43 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="USSAyRyu" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F+Xs8/v+IJ6afNKqxZIiQHra5hMASRsRbyGNbjQwcDwHuzpVyDTuRpDEYg9f5JY/2YOWTxLLRtOLP5pbeEZkZVrXiK+jXQFBRiyoicFCp3r5+2ICeKir0ZCG+MvKTa57NT0m+QNIgKcl6dW5sJ5ovSY6bk86DmXQivgeUmW90KSvkwuFwwE0ME1Z8HjIfhz2UKXgK8TeAiaxMWNbe5Mb1iW6CnV0g9REpLBM9OAAhv9stHKwXetjjsPuHqzky6eQ08sOhw3+7N8sSqqC6/alfCrRg4WUqSe8DQy1UIhBjst6Deox3/dbLcEuX3ZRdOmkL8yGwGf24LaWwgUT0peo6g== 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=bRPu2+d3a7o2mGr4jWLLEl6mfLakbMRBH1ShfSkD5P4=; b=BU8fIqsfg7AhqP9VSaszJ4rNBRVBOdkf3pvhIwlQv3sqbvv7kWR4XaAMDzhFD7CL5CM1fRrDeGHBEY2S2YCwYBFn+d+7ERACWP1DSlz1gKA3XwVgC5x+q+eLJDyIn4qUP99caZT41vF7Lxjr93ZGnokDCMbZDi8mxj8b05WTMtcVpCd4st/fE224gZPbX3b8egFPY+aZBsl5Gnf/Jxv3e4j6/891gTCLWZeoGuaZZbDGBlxwcmUsG+NDXNN/XpG8WBIMn2nVg12dp01+HhpwJ1yT3zVq4O6Ahzu5Pod9lNNtaBqklsyWIbwkcJGlkkGVKP8lY2kVLlApvOSHLIMkLw== 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=bRPu2+d3a7o2mGr4jWLLEl6mfLakbMRBH1ShfSkD5P4=; b=USSAyRyuQbo7NXMWlvwy6DT1gKzWT1kKfF5kisfUVeS0Lk/EZvLXkNAs/Q0teCvT2418HgeJlQgehPci1/uuLWazxvUu/7Z5Gorpjl2ifDEsae9xz5l0A3egXjVNMk9gb/lZPS0cncgzXm01tUq3Hrrct3uW6hWJhuLO3Vml+E0= 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:11 +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:11 +0000 Message-ID: <87ldwpmhid.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-1?q?=22Nuno_S=E1=22?= <nuno.sa@analog.com>, =?iso-8859-1?q?=22Uwe_Kleine-K=F6nig=22?= <u.kleine-koenig@baylibre.com>, Charles Keepax <ckeepax@opensource.cirrus.com>, Daniel Mack <daniel@zonque.org>, David Rhodes <david.rhodes@cirrus.com>, Haojian Zhuang <haojian.zhuang@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Lars-Peter Clausen <lars@metafoo.de>, Liam Girdwood <lgirdwood@gmail.com>, Luca Ceresoli <luca.ceresoli@bootlin.com>, Mark Brown <broonie@kernel.org>, Peter Ujfalusi <peter.ujfalusi@gmail.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Takashi Iwai <tiwai@suse.com>, 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 <kuninori.morimoto.gx@renesas.com> In-Reply-To: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> References: <87wmg9mhkk.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 08/17] ASoC: codecs: wm8994: remove snd_soc_dai_set_tristate() Content-Type: text/plain; charset=US-ASCII Date: Mon, 9 Dec 2024 07:40:11 +0000 X-ClientProxiedBy: TYCP286CA0289.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c8::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: <linux-sound.vger.kernel.org> List-Subscribe: <mailto:linux-sound+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-sound+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSCPR01MB12968:EE_ X-MS-Office365-Filtering-Correlation-Id: cbcbefb6-66e8-4c76-f1ca-08dd1824b66c 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: NNREpg7uZeIDmofHRi+dwCsG93d2E46ie2QWf0z/NBTw7hoYMqfd8pTosD5CM7eitssiYERdoqlay+vU2SF6AMy/NsLfJHr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/XzvyDLeUCGCql1C+C6vaTBWhyjgwpFpVxYqnMeiTcxB+mkEK1sw9T/JWnhAr6yv/YzZCLPZoeGJ3NwAW4IJInlrN12bKzEOHEcgqy1SnHn8YF5ZuahjX+0RL5D3pyzWt0VNZsSC2uMFnMP8b8vNDG7rfSFuMpE8MMIUGqS8e+hf6xCCRwCyFXcNnJktLoYY/Qdd6zWYKzUx9CahH9KP+TBLPr8midczAvvPubRcxJvS5Dd70FPNu3SuDxknwUtjsmOUM52XEHYJKQsC4IAAGsv1BBK8oJcH1IOCAS0u6apKF9MhA 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: xY+9gWfL7d1kWomIp2a42399T65SKqTkmdiHwCZm1Txj0ddDW4FrGmAW0TJ6dw62eW5eWehDv+SCw+7kxmMQlPxPRv6CAyBK1dKUvauuxjdH8E7MlRI+Ccdm8kp8/3qxKxmuhKShnfsCT1X4z8lFMsL2635L2lmUzFtJKN5foxkM1OsQvYTVxFblnXlcs/qiY27/Ix9J93IfhnF4WAdbICQJgOlqg2J3lEB35gE+rmcJ3PpRAH9o4daIpZ/FegkNhq6PCFgTMC4gZ25jFaxgWt8Kn2gURg0tM2iV3zwsV6rV/IouYqHlT5BLQbu9KRC8Q9RD6Blv18ZgyQprUrI3LnVPAQN0C5SS5TsysPRUhgMZY6pT5QKG4KRo63yreq+BZazHJg99CbCTBretzom7r3AiNxbSOaVevu3beX4LdIMFFMLsttxs/TLz3pLXYqBSsByVfdjgJnY0z/5Hfp8M+YR3zPTpF2AB5VU7JFplGIP9ETlhfkRyOatp2gynL9C+P/roHkM58g0tX5QPcGJ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s4iNc5AaogxIxnLwoISw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: cbcbefb6-66e8-4c76-f1ca-08dd1824b66c 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:11.6567 (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: Wj9MaIowOvtdKUv/kt39MtjZORozq9V3KqZ7NgS9hVIuLUMjsperUGBEPQ0EV4QvyykrNhaD2TfmIUq9v3Kr+8HTcmdRnzdH3Yv1rPI6UkIMVAxB2wHpn/aMBIRGk+QJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB12968 |
Series |
ASoC: remove snd_soc_dai_set_tristate()
|
expand
|
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index a4abe6e53bfc5..20a3cad66fc8d 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3158,32 +3158,6 @@ static int wm8994_aif_mute(struct snd_soc_dai *codec_dai, int mute, return 0; } -static int wm8994_set_tristate(struct snd_soc_dai *codec_dai, int tristate) -{ - struct snd_soc_component *component = codec_dai->component; - int reg, val, mask; - - switch (codec_dai->id) { - case 1: - reg = WM8994_AIF1_MASTER_SLAVE; - mask = WM8994_AIF1_TRI; - break; - case 2: - reg = WM8994_AIF2_MASTER_SLAVE; - mask = WM8994_AIF2_TRI; - break; - default: - return -EINVAL; - } - - if (tristate) - val = mask; - else - val = 0; - - return snd_soc_component_update_bits(component, reg, mask, val); -} - static int wm8994_aif2_probe(struct snd_soc_dai *dai) { struct snd_soc_component *component = dai->component; @@ -3210,7 +3184,6 @@ static const struct snd_soc_dai_ops wm8994_aif1_dai_ops = { .hw_params = wm8994_hw_params, .mute_stream = wm8994_aif_mute, .set_pll = wm8994_set_fll, - .set_tristate = wm8994_set_tristate, .no_capture_mute = 1, }; @@ -3221,7 +3194,6 @@ static const struct snd_soc_dai_ops wm8994_aif2_dai_ops = { .hw_params = wm8994_hw_params, .mute_stream = wm8994_aif_mute, .set_pll = wm8994_set_fll, - .set_tristate = wm8994_set_tristate, .no_capture_mute = 1, };
snd_soc_dai_set_tristate() has never been used before. Let's remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/codecs/wm8994.c | 28 ---------------------------- 1 file changed, 28 deletions(-)