aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-06-16 12:13:02 -0400
committerMark Brown <broonie@linaro.org>2014-06-21 16:04:24 -0400
commitf4333203ec933f9272c90c7add01774ec2cf94d3 (patch)
tree4a7f0bd37c7a5d00105dd91980fca721e181bee4 /sound/soc/soc-dapm.c
parent94f99c875c109e51decf0d8c25ec2c946db20c56 (diff)
ASoC: Move name and id from CODEC/platform to component
The component struct already has a name and id field which are initialized to the same values as the same fields in the CODEC and platform structs. So remove them from the CODEC and platform structs and used the ones from the component struct instead. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 2f29b289a333..074e9ce136f8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3400,8 +3400,8 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card)
3400 source = cpu_dai->playback_widget; 3400 source = cpu_dai->playback_widget;
3401 sink = codec_dai->playback_widget; 3401 sink = codec_dai->playback_widget;
3402 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n", 3402 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n",
3403 cpu_dai->codec->name, source->name, 3403 cpu_dai->component->name, source->name,
3404 codec_dai->platform->name, sink->name); 3404 codec_dai->component->name, sink->name);
3405 3405
3406 snd_soc_dapm_add_path(&card->dapm, source, sink, 3406 snd_soc_dapm_add_path(&card->dapm, source, sink,
3407 NULL, NULL); 3407 NULL, NULL);
@@ -3412,8 +3412,8 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card)
3412 source = codec_dai->capture_widget; 3412 source = codec_dai->capture_widget;
3413 sink = cpu_dai->capture_widget; 3413 sink = cpu_dai->capture_widget;
3414 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n", 3414 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n",
3415 codec_dai->codec->name, source->name, 3415 codec_dai->component->name, source->name,
3416 cpu_dai->platform->name, sink->name); 3416 cpu_dai->component->name, sink->name);
3417 3417
3418 snd_soc_dapm_add_path(&card->dapm, source, sink, 3418 snd_soc_dapm_add_path(&card->dapm, source, sink,
3419 NULL, NULL); 3419 NULL, NULL);