@@ -191,8 +191,6 @@ int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai,
unsigned int tx_num, const unsigned int *tx_slot,
unsigned int rx_num, const unsigned int *rx_slot);
-int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate);
-
/* Digital Audio Interface mute */
int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute,
int direction);
@@ -306,7 +304,6 @@ struct snd_soc_dai_ops {
int (*get_channel_map)(const struct snd_soc_dai *dai,
unsigned int *tx_num, unsigned int *tx_slot,
unsigned int *rx_num, unsigned int *rx_slot);
- int (*set_tristate)(struct snd_soc_dai *dai, int tristate);
int (*set_stream)(struct snd_soc_dai *dai,
void *stream, int direction);
@@ -341,25 +341,6 @@ int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai,
}
EXPORT_SYMBOL_GPL(snd_soc_dai_get_channel_map);
-/**
- * snd_soc_dai_set_tristate - configure DAI system or master clock.
- * @dai: DAI
- * @tristate: tristate enable
- *
- * Tristates the DAI so that others can use it.
- */
-int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate)
-{
- int ret = -EINVAL;
-
- if (dai->driver->ops &&
- dai->driver->ops->set_tristate)
- ret = dai->driver->ops->set_tristate(dai, tristate);
-
- return soc_dai_ret(dai, ret);
-}
-EXPORT_SYMBOL_GPL(snd_soc_dai_set_tristate);
-
/**
* snd_soc_dai_digital_mute - configure DAI system or master clock.
* @dai: DAI
snd_soc_dai_set_tristate() has never been used before. Let's remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- include/sound/soc-dai.h | 3 --- sound/soc/soc-dai.c | 19 ------------------- 2 files changed, 22 deletions(-)