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>
This commit is contained in:
Lars-Peter Clausen
2014-06-16 18:13:01 +02:00
committed by Mark Brown
parent 7171511eae
commit 94f99c875c
3 changed files with 29 additions and 21 deletions

View File

@@ -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;