diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-06-16 12:13:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-21 16:36:08 -0400 |
commit | 9420d97b3f8672478696ae9c3e33051243e1f4a0 (patch) | |
tree | cd3737467f9f3675e939e82e809e40fd56308b6b /sound/soc/soc-core.c | |
parent | 14e8bdebfbc1d5c8804b3520233b2d4e516056bc (diff) |
ASoC: dapm: Remove DAI DAPM context
The DAI DAPM context was added in commit be09ad90 ("ASoC: core: Add platform DAI
widget mapping") and the only user was removed again in commit ae10e7e8f ("ASoC:
core: Only add platform DAI widgets once."). Now that we have a per component
DAPM context it is unlikely that we'll need the DAI DAPM context again.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 5fe732fdfd59..995a4b7f87eb 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1048,11 +1048,8 @@ static void soc_remove_link_dais(struct snd_soc_card *card, int num, int order) | |||
1048 | cpu_dai->name, err); | 1048 | cpu_dai->name, err); |
1049 | } | 1049 | } |
1050 | cpu_dai->probed = 0; | 1050 | cpu_dai->probed = 0; |
1051 | 1051 | if (!cpu_dai->codec) | |
1052 | if (!cpu_dai->codec) { | ||
1053 | snd_soc_dapm_free(&cpu_dai->dapm); | ||
1054 | module_put(cpu_dai->dev->driver->owner); | 1052 | module_put(cpu_dai->dev->driver->owner); |
1055 | } | ||
1056 | } | 1053 | } |
1057 | } | 1054 | } |
1058 | 1055 | ||
@@ -1510,11 +1507,8 @@ static int soc_probe_link_dais(struct snd_soc_card *card, int num, int order) | |||
1510 | if (!cpu_dai->probed && | 1507 | if (!cpu_dai->probed && |
1511 | cpu_dai->driver->probe_order == order) { | 1508 | cpu_dai->driver->probe_order == order) { |
1512 | if (!cpu_dai->codec) { | 1509 | if (!cpu_dai->codec) { |
1513 | cpu_dai->dapm.card = card; | ||
1514 | if (!try_module_get(cpu_dai->dev->driver->owner)) | 1510 | if (!try_module_get(cpu_dai->dev->driver->owner)) |
1515 | return -ENODEV; | 1511 | return -ENODEV; |
1516 | |||
1517 | list_add(&cpu_dai->dapm.list, &card->dapm_list); | ||
1518 | } | 1512 | } |
1519 | 1513 | ||
1520 | if (cpu_dai->driver->probe) { | 1514 | if (cpu_dai->driver->probe) { |
@@ -3975,13 +3969,9 @@ static int snd_soc_register_dais(struct snd_soc_component *component, | |||
3975 | dai->component = component; | 3969 | dai->component = component; |
3976 | dai->dev = dev; | 3970 | dai->dev = dev; |
3977 | dai->driver = &dai_drv[i]; | 3971 | dai->driver = &dai_drv[i]; |
3978 | dai->dapm.dev = dev; | ||
3979 | if (!dai->driver->ops) | 3972 | if (!dai->driver->ops) |
3980 | dai->driver->ops = &null_dai_ops; | 3973 | dai->driver->ops = &null_dai_ops; |
3981 | 3974 | ||
3982 | if (!dai->codec) | ||
3983 | dai->dapm.idle_bias_off = 1; | ||
3984 | |||
3985 | list_add(&dai->list, &component->dai_list); | 3975 | list_add(&dai->list, &component->dai_list); |
3986 | 3976 | ||
3987 | dev_dbg(dev, "ASoC: Registered DAI '%s'\n", dai->name); | 3977 | dev_dbg(dev, "ASoC: Registered DAI '%s'\n", dai->name); |