diff mbox

ASoC: Add kerneldoc comments for snd_soc_find_dai

Message ID 1461299133-1535-1-git-send-email-mengdong.lin@linux.intel.com (mailing list archive)
State Accepted
Commit fbb88b5ca1dc84416fc1fec34773948b6780492c
Headers show

Commit Message

mengdong.lin@linux.intel.com April 22, 2016, 4:25 a.m. UTC
From: Mengdong Lin <mengdong.lin@linux.intel.com>

snd_soc_find_dai() has been exported and so add the kerneldoc comments
for it.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
diff mbox

Patch

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 07663de..16369ca 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -930,6 +930,17 @@  static struct snd_soc_component *soc_find_component(
 	return NULL;
 }
 
+/**
+ * snd_soc_find_dai - Find a registered DAI
+ *
+ * @dlc: name of the DAI and optional component info to match
+ *
+ * This function will search all regsitered components and their DAIs to
+ * find the DAI of the same name. The component's of_node and name
+ * should also match if being specified.
+ *
+ * Return: pointer of DAI, or NULL if not found.
+ */
 struct snd_soc_dai *snd_soc_find_dai(
 	const struct snd_soc_dai_link_component *dlc)
 {