diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-10 16:41:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-18 10:37:58 -0500 |
commit | ca005f324ee38308b319c693f40523d959027acf (patch) | |
tree | 7e8abc28b18db78baf1e98c5c8bf9ce186be9f75 /sound/soc/soc-ac97.c | |
parent | bdfd60e3c0affb914549f1d22e8aeef71e7828e6 (diff) |
ASoC: ac97: Drop support for setting platform data via the CPU DAI
This has no users since commit f0fba2ad1b6b ("ASoC: multi-component - ASoC
Multi-Component Support") which was almost 5 years ago. Given that this runs
after CODEC probe functions have been run it also doesn't seem to be that
useful.
So drop it altogether to make the code simpler.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-ac97.c')
-rw-r--r-- | sound/soc/soc-ac97.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/soc/soc-ac97.c b/sound/soc/soc-ac97.c index b5d23c976662..f2ed77b5169a 100644 --- a/sound/soc/soc-ac97.c +++ b/sound/soc/soc-ac97.c | |||
@@ -342,15 +342,3 @@ err: | |||
342 | soc_unregister_ac97_dai_link(&card->rtd[i]); | 342 | soc_unregister_ac97_dai_link(&card->rtd[i]); |
343 | return ret; | 343 | return ret; |
344 | } | 344 | } |
345 | |||
346 | void snd_soc_ac97_add_pdata(struct snd_soc_pcm_runtime *rtd) | ||
347 | { | ||
348 | unsigned int i; | ||
349 | |||
350 | /* add platform data for AC97 devices */ | ||
351 | for (i = 0; i < rtd->num_codecs; i++) { | ||
352 | if (rtd->codec_dais[i]->driver->ac97_control) | ||
353 | snd_ac97_dev_add_pdata(rtd->codec_dais[i]->codec->ac97, | ||
354 | rtd->cpu_dai->ac97_pdata); | ||
355 | } | ||
356 | } | ||