diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-04-15 13:19:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-17 09:18:26 -0400 |
commit | 71a45cda444f9c47bd63516cf4c24fb6d1ccb151 (patch) | |
tree | c47295f905b9ba67ce71b72696bcafa8d43d799e /include/sound | |
parent | 8b1b054f6be2c3f94bf027ad37bc85d9ec67677f (diff) |
ASoC: Add snd_soc_{add, remove}_platform
snd_soc_{add,remove}_platform are similar to snd_soc_register_platform and
snd_soc_unregister_platform with the difference that they won't allocate and
free the snd_soc_platform structure.
Also add snd_soc_lookup_platform which looks up a platform by the device it has
been registered for.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index f619905f0a65..4429254aa195 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -373,6 +373,10 @@ int snd_soc_poweroff(struct device *dev); | |||
373 | int snd_soc_register_platform(struct device *dev, | 373 | int snd_soc_register_platform(struct device *dev, |
374 | const struct snd_soc_platform_driver *platform_drv); | 374 | const struct snd_soc_platform_driver *platform_drv); |
375 | void snd_soc_unregister_platform(struct device *dev); | 375 | void snd_soc_unregister_platform(struct device *dev); |
376 | int snd_soc_add_platform(struct device *dev, struct snd_soc_platform *platform, | ||
377 | const struct snd_soc_platform_driver *platform_drv); | ||
378 | void snd_soc_remove_platform(struct snd_soc_platform *platform); | ||
379 | struct snd_soc_platform *snd_soc_lookup_platform(struct device *dev); | ||
376 | int snd_soc_register_codec(struct device *dev, | 380 | int snd_soc_register_codec(struct device *dev, |
377 | const struct snd_soc_codec_driver *codec_drv, | 381 | const struct snd_soc_codec_driver *codec_drv, |
378 | struct snd_soc_dai_driver *dai_drv, int num_dai); | 382 | struct snd_soc_dai_driver *dai_drv, int num_dai); |