diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-28 06:03:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-28 06:37:37 -0500 |
commit | 5f5de18a7f81382fead581efc489dfcfa34601af (patch) | |
tree | a19b16dae636c5a8b49fce1eb4e46815e631489d /sound/soc/kirkwood | |
parent | 7e0d6ac0d894ebae2ff85ea6108dd065a274dfb9 (diff) |
ASoC: Convert kirkwood-t5325 to table based DAPM init
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/kirkwood')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-t5325.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/kirkwood/kirkwood-t5325.c b/sound/soc/kirkwood/kirkwood-t5325.c index 6e992307c252..b47cc4e9b746 100644 --- a/sound/soc/kirkwood/kirkwood-t5325.c +++ b/sound/soc/kirkwood/kirkwood-t5325.c | |||
@@ -59,11 +59,6 @@ static int t5325_dai_init(struct snd_soc_pcm_runtime *rtd) | |||
59 | struct snd_soc_codec *codec = rtd->codec; | 59 | struct snd_soc_codec *codec = rtd->codec; |
60 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 60 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
61 | 61 | ||
62 | snd_soc_dapm_new_controls(dapm, t5325_dapm_widgets, | ||
63 | ARRAY_SIZE(t5325_dapm_widgets)); | ||
64 | |||
65 | snd_soc_dapm_add_routes(dapm, t5325_route, ARRAY_SIZE(t5325_route)); | ||
66 | |||
67 | snd_soc_dapm_enable_pin(dapm, "Mic Jack"); | 62 | snd_soc_dapm_enable_pin(dapm, "Mic Jack"); |
68 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); | 63 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); |
69 | snd_soc_dapm_enable_pin(dapm, "Speaker"); | 64 | snd_soc_dapm_enable_pin(dapm, "Speaker"); |
@@ -91,6 +86,11 @@ static struct snd_soc_card t5325 = { | |||
91 | .owner = THIS_MODULE, | 86 | .owner = THIS_MODULE, |
92 | .dai_link = t5325_dai, | 87 | .dai_link = t5325_dai, |
93 | .num_links = ARRAY_SIZE(t5325_dai), | 88 | .num_links = ARRAY_SIZE(t5325_dai), |
89 | |||
90 | .dapm_widgets = t5325_dapm_widgets, | ||
91 | .num_dapm_widgets = ARRAY_SIZE(t5325_dapm_widgets), | ||
92 | .dapm_routes = t5325_route, | ||
93 | .num_dapm_routes = ARRAY_SIZE(t5325_route), | ||
94 | }; | 94 | }; |
95 | 95 | ||
96 | static struct platform_device *t5325_snd_device; | 96 | static struct platform_device *t5325_snd_device; |