diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-06-16 12:13:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-21 16:03:22 -0400 |
commit | 94f99c875c109e51decf0d8c25ec2c946db20c56 (patch) | |
tree | 29bdcf055b85588e64553eec9353bf47919100c0 /include/sound | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (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.h | 2 |
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 { | |||
682 | struct snd_soc_component { | 682 | struct snd_soc_component { |
683 | const char *name; | 683 | const char *name; |
684 | int id; | 684 | int id; |
685 | const char *name_prefix; | ||
685 | struct device *dev; | 686 | struct device *dev; |
686 | 687 | ||
687 | unsigned int active; | 688 | unsigned int active; |
@@ -710,7 +711,6 @@ struct snd_soc_component { | |||
710 | /* SoC Audio Codec device */ | 711 | /* SoC Audio Codec device */ |
711 | struct snd_soc_codec { | 712 | struct snd_soc_codec { |
712 | const char *name; | 713 | const char *name; |
713 | const char *name_prefix; | ||
714 | int id; | 714 | int id; |
715 | struct device *dev; | 715 | struct device *dev; |
716 | const struct snd_soc_codec_driver *driver; | 716 | const struct snd_soc_codec_driver *driver; |