summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-12-12 23:55:34 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-20 02:05:34 +0100
commitbec4fa05e25f7e78ec67df389539acc6bb352a2a (patch)
treeddde93b4ca9604bf586bde2381cdb8c0dffd3f07 /include
parentASoC: Rename rt562[1|2]_vol_snd_controls to alc562[1|2]_vol_snd_controls (diff)
downloadlinux-bec4fa05e25f7e78ec67df389539acc6bb352a2a.tar.xz
linux-bec4fa05e25f7e78ec67df389539acc6bb352a2a.zip
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')
-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)
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