diff options
author | Liam Girdwood <lrg@ti.com> | 2011-07-04 22:10:52 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-05 11:07:39 -0700 |
commit | b7950641374ddb41e9a03ff61b43f9ab3fcf763d (patch) | |
tree | afd469b165d71265caabb9070d24167419ad1f18 /sound/soc/soc-core.c | |
parent | a491a5c84f34febfebd4cb0b8c9add97977efa97 (diff) |
ASoC: core - Add platform widget IO
Allow platform driver widgets to perform any IO required for DAPM.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 16651814ecb..38f954af7bb 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -993,6 +993,7 @@ static int soc_probe_platform(struct snd_soc_card *card, const struct snd_soc_platform_driver *driver = platform->driver; platform->card = card; + platform->dapm.card = card; if (!try_module_get(platform->dev->driver->owner)) return -ENODEV; @@ -1010,6 +1011,7 @@ static int soc_probe_platform(struct snd_soc_card *card, /* mark platform as probed and add to card platform list */ platform->probed = 1; list_add(&platform->card_list, &card->platform_dev_list); + list_add(&platform->dapm.list, &card->dapm_list); return 0; @@ -3122,6 +3124,8 @@ int snd_soc_register_platform(struct device *dev, platform->dev = dev; platform->driver = platform_drv; + platform->dapm.dev = dev; + platform->dapm.platform = platform; mutex_lock(&client_mutex); list_add(&platform->list, &platform_list); |