diff mbox series

[14/17] ASoC: codecs: madera: remove snd_soc_dai_set_tristate()

Message ID 87cyi1mhhl.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New
Headers show
Series ASoC: remove snd_soc_dai_set_tristate() | expand

Commit Message

Kuninori Morimoto Dec. 9, 2024, 7:40 a.m. UTC
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/madera.c | 22 ----------------------
 1 file changed, 22 deletions(-)
diff mbox series

Patch

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);