summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2026-02-25 16:50:02 +0300
committerMark Brown <broonie@kernel.org>2026-03-02 02:48:52 +0300
commit98eb42c7de6b0185c914df4cca61b49ff76821ee (patch)
tree2ce9429012ea292f5c73a9b74f66fab8540802ce /include
parent11439c4635edd669ae435eec308f4ab8a0804808 (diff)
downloadlinux-98eb42c7de6b0185c914df4cca61b49ff76821ee.tar.xz
ASoC: add snd_soc_lookup_component_by_name helper
Add a helper to help user to get the component by name. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://patch.msgid.link/20260225135004.2322987-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 7d8376c8e1be..1a486153dc76 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -465,6 +465,7 @@ struct snd_soc_component *snd_soc_lookup_component_nolocked(struct device *dev,
const char *driver_name);
struct snd_soc_component *snd_soc_lookup_component(struct device *dev,
const char *driver_name);
+struct snd_soc_component *snd_soc_lookup_component_by_name(const char *component_name);
int soc_new_pcm(struct snd_soc_pcm_runtime *rtd);
#ifdef CONFIG_SND_SOC_COMPRESS