All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Zhu <jason.zhu@rock-chips.com>
To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com
Cc: sugar.zhang@rock-chips.com, Jason Zhu <jason.zhu@rock-chips.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH 1/1] ASoC: soc-dai: export some symbols
Date: Tue, 20 Sep 2022 11:45:45 +0800	[thread overview]
Message-ID: <20220920034545.2820888-2-jason.zhu@rock-chips.com> (raw)
In-Reply-To: <20220920034545.2820888-1-jason.zhu@rock-chips.com>

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@rock-chips.com>
---
 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


  reply	other threads:[~2022-09-23  8:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20  3:45 [PATCH 0/1] Jason Zhu
2022-09-20  3:45 ` Jason Zhu [this message]
2022-09-20 12:47   ` [PATCH 1/1] ASoC: soc-dai: export some symbols Mark Brown
2022-09-21  2:37     ` Jason Zhu
2022-09-23 12:55       ` Mark Brown
2022-09-26  1:34         ` Jason Zhu
2022-09-26  7:52           ` Pierre-Louis Bossart
2022-09-26 15:33             ` Mark Brown
2022-09-26 16:07               ` Pierre-Louis Bossart
2022-09-27  3:57               ` Jason Zhu
2022-09-28 11:52                 ` Mark Brown
2022-09-29  0:52                   ` Jason Zhu
2022-09-24  4:21   ` kernel test robot
2022-09-24  4:21     ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220920034545.2820888-2-jason.zhu@rock-chips.com \
    --to=jason.zhu@rock-chips.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=perex@perex.cz \
    --cc=sugar.zhang@rock-chips.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.