[Linux-stm32] [PATCH 02/17] ASoC: codecs: cs35l32: remove snd_soc_dai_set_tristate()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Mon Dec 9 07:39:34 UTC 2024
snd_soc_dai_set_tristate() has never been used before.
Let's remove it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/codecs/cs35l32.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index 96555263e10b8..cc9decb593b54 100644
--- a/sound/soc/codecs/cs35l32.c
+++ b/sound/soc/codecs/cs35l32.c
@@ -169,17 +169,8 @@ static int cs35l32_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
return 0;
}
-static int cs35l32_set_tristate(struct snd_soc_dai *dai, int tristate)
-{
- struct snd_soc_component *component = dai->component;
-
- return snd_soc_component_update_bits(component, CS35L32_PWRCTL2,
- CS35L32_SDOUT_3ST, tristate << 3);
-}
-
static const struct snd_soc_dai_ops cs35l32_ops = {
.set_fmt = cs35l32_set_dai_fmt,
- .set_tristate = cs35l32_set_tristate,
};
static struct snd_soc_dai_driver cs35l32_dai[] = {
--
2.43.0
More information about the Linux-stm32
mailing list