summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-12-12 15:55:34 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-20 01:05:34 +0000
commitbec4fa05e25f7e78ec67df389539acc6bb352a2a (patch)
treeddde93b4ca9604bf586bde2381cdb8c0dffd3f07 /include/sound/soc.h
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/soc.h')
-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 a35cf14a8eb..278f3b892ca 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)
int snd_soc_util_init(void);
void snd_soc_util_exit(void);
+int snd_soc_of_parse_card_name(struct snd_soc_card *card,
+ const char *propname);
+
#include <sound/soc-dai.h>
#ifdef CONFIG_DEBUG_FS