aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-12-12 17:55:34 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-19 20:05:34 -0500
commitbec4fa05e25f7e78ec67df389539acc6bb352a2a (patch)
treeddde93b4ca9604bf586bde2381cdb8c0dffd3f07 /include/sound
parent6048ef768e7bec7e1e17f48fe8d5360021928b4a (diff)
ASoC: Add utility to set a card's name from device tree
Implement snd_soc_of_parse_card_name(), a utility function that sets a card's name from device tree. The machine driver specifies the DT property to use, since this is binding-specific. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index a35cf14a8eb1..278f3b892ca6 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -961,6 +961,9 @@ static inline bool snd_soc_volsw_is_stereo(struct soc_mixer_control *mc)
961int snd_soc_util_init(void); 961int snd_soc_util_init(void);
962void snd_soc_util_exit(void); 962void snd_soc_util_exit(void);
963 963
964int snd_soc_of_parse_card_name(struct snd_soc_card *card,
965 const char *propname);
966
964#include <sound/soc-dai.h> 967#include <sound/soc-dai.h>
965 968
966#ifdef CONFIG_DEBUG_FS 969#ifdef CONFIG_DEBUG_FS