[PATCH 1/1] ASoC: soc-dai: export some symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sometimes we need to make some dais alive when close the card, like
VAD, so these functions must be exported so that they can be called.

Signed-off-by: Jason Zhu <jason.zhu@xxxxxxxxxxxxxx>
---
 sound/soc/soc-dai.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c
index d530e8c2b77b..75294e830392 100644
--- a/sound/soc/soc-dai.c
+++ b/sound/soc/soc-dai.c
@@ -405,6 +405,7 @@ int snd_soc_dai_hw_params(struct snd_soc_dai *dai,
 end:
 	return soc_dai_ret(dai, ret);
 }
+EXPORT_SYMBOL_GPL(snd_soc_dai_hw_params);
 
 void snd_soc_dai_hw_free(struct snd_soc_dai *dai,
 			 struct snd_pcm_substream *substream,
@@ -420,6 +421,7 @@ void snd_soc_dai_hw_free(struct snd_soc_dai *dai,
 	/* remove marked substream */
 	soc_dai_mark_pop(dai, substream, hw_params);
 }
+EXPORT_SYMBOL_GPL(snd_soc_dai_hw_free);
 
 int snd_soc_dai_startup(struct snd_soc_dai *dai,
 			struct snd_pcm_substream *substream)
@@ -436,6 +438,7 @@ int snd_soc_dai_startup(struct snd_soc_dai *dai,
 
 	return soc_dai_ret(dai, ret);
 }
+EXPORT_SYMBOL_GPL(snd_soc_dai_startup);
 
 void snd_soc_dai_shutdown(struct snd_soc_dai *dai,
 			  struct snd_pcm_substream *substream,
@@ -451,6 +454,7 @@ void snd_soc_dai_shutdown(struct snd_soc_dai *dai,
 	/* remove marked substream */
 	soc_dai_mark_pop(dai, substream, startup);
 }
+EXPORT_SYMBOL_GPL(snd_soc_dai_shutdown);
 
 int snd_soc_dai_compress_new(struct snd_soc_dai *dai,
 			     struct snd_soc_pcm_runtime *rtd, int num)
@@ -556,6 +560,7 @@ int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(snd_soc_pcm_dai_probe);
 
 int snd_soc_pcm_dai_remove(struct snd_soc_pcm_runtime *rtd, int order)
 {
@@ -578,6 +583,7 @@ int snd_soc_pcm_dai_remove(struct snd_soc_pcm_runtime *rtd, int order)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(snd_soc_pcm_dai_remove);
 
 int snd_soc_pcm_dai_new(struct snd_soc_pcm_runtime *rtd)
 {
@@ -594,6 +600,7 @@ int snd_soc_pcm_dai_new(struct snd_soc_pcm_runtime *rtd)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(snd_soc_pcm_dai_new);
 
 int snd_soc_pcm_dai_prepare(struct snd_pcm_substream *substream)
 {
@@ -612,6 +619,7 @@ int snd_soc_pcm_dai_prepare(struct snd_pcm_substream *substream)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(snd_soc_pcm_dai_prepare);
 
 static int soc_dai_trigger(struct snd_soc_dai *dai,
 			   struct snd_pcm_substream *substream, int cmd)
@@ -624,6 +632,7 @@ static int soc_dai_trigger(struct snd_soc_dai *dai,
 
 	return soc_dai_ret(dai, ret);
 }
+EXPORT_SYMBOL_GPL(soc_dai_trigger);
 
 int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream,
 			    int cmd, int rollback)
@@ -659,6 +668,7 @@ int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream,
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(snd_soc_pcm_dai_trigger);
 
 int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream,
 				    int cmd)
-- 
2.34.1




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux