aboutsummaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-06-16 18:13:01 +0200
committerMark Brown <broonie@linaro.org>2014-06-21 21:03:22 +0100
commit94f99c875c109e51decf0d8c25ec2c946db20c56 (patch)
tree29bdcf055b85588e64553eec9353bf47919100c0 /include/sound
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
ASoC: Move name_prefix from CODEC to component
Move the name_prefix from the CODEC struct to the component struct. This will eventually allow to specify prefixes for all types of components. It is also necessary to make the DAPM code component type independent (i.e. a DAPM context does not need to know whether it belongs to a CODEC or a platform or something else). Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index ed9e2d7e5fdc..e1cce0042f8a 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -682,6 +682,7 @@ struct snd_soc_component_driver {
struct snd_soc_component {
const char *name;
int id;
+ const char *name_prefix;
struct device *dev;
unsigned int active;
@@ -710,7 +711,6 @@ struct snd_soc_component {
/* SoC Audio Codec device */
struct snd_soc_codec {
const char *name;
- const char *name_prefix;
int id;
struct device *dev;
const struct snd_soc_codec_driver *driver;