ASoC: Add snd_soc_{add, remove}_platform
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 15 Apr 2013 17:19:49 +0000 (19:19 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 13:18:26 +0000 (14:18 +0100)
commit71a45cda444f9c47bd63516cf4c24fb6d1ccb151
treec47295f905b9ba67ce71b72696bcafa8d43d799e
parent8b1b054f6be2c3f94bf027ad37bc85d9ec67677f
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>
include/sound/soc.h
sound/soc/soc-core.c