diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2011-09-06 17:28:26 -0500 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-09-13 15:55:11 -0700 |
commit | 708a6c6d2b64eb14c4935f579aaaa7ae02530770 (patch) | |
tree | cf9dcb1b9f2d7083a8b9d720a81527d5e54e59ff /include/sound | |
parent | a4b885ba6b7329fb75e24a027ec1aeb588dca4d2 (diff) | |
download | kernel_samsung_espresso10-708a6c6d2b64eb14c4935f579aaaa7ae02530770.zip kernel_samsung_espresso10-708a6c6d2b64eb14c4935f579aaaa7ae02530770.tar.gz kernel_samsung_espresso10-708a6c6d2b64eb14c4935f579aaaa7ae02530770.tar.bz2 |
ASoC: core: Search CODEC in a SoC card
Search a CODEC by its name in a SoC card. This is mostly useful
for machine drivers when trying to access a specific CODEC of
the sound card.
Change-Id: I62422f380782f4aa35d3ff0d3b0a88c5ca4da969
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 24b484b..0271b61 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -337,6 +337,8 @@ unsigned int snd_soc_platform_read(struct snd_soc_platform *platform, unsigned int snd_soc_platform_write(struct snd_soc_platform *platform, unsigned int reg, unsigned int val); +struct snd_soc_codec *snd_soc_card_get_codec(struct snd_soc_card *card, + const char *codec_name); struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card, const char *dai_link, int stream); struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card, |