diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-08 07:19:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-10 06:06:22 -0400 |
commit | 4f5448ae4b1b877c777a6f96af7bef31f505936d (patch) | |
tree | 110e0055c2713c7cdae619338cb49a6542d89102 | |
parent | 6179b772ac6ac2209096753e2aa91edb9c3988a5 (diff) |
ASoC: Convert Simtec machines to table based DAPM init
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_hermes.c | 10 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index 359530bc7a9a..6bc5a36af1d9 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
@@ -65,11 +65,6 @@ static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd) | |||
65 | struct snd_soc_codec *codec = rtd->codec; | 65 | struct snd_soc_codec *codec = rtd->codec; |
66 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 66 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
67 | 67 | ||
68 | snd_soc_dapm_new_controls(dapm, dapm_widgets, | ||
69 | ARRAY_SIZE(dapm_widgets)); | ||
70 | |||
71 | snd_soc_dapm_add_routes(dapm, base_map, ARRAY_SIZE(base_map)); | ||
72 | |||
73 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); | 68 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); |
74 | snd_soc_dapm_enable_pin(dapm, "Line In"); | 69 | snd_soc_dapm_enable_pin(dapm, "Line In"); |
75 | snd_soc_dapm_enable_pin(dapm, "Line Out"); | 70 | snd_soc_dapm_enable_pin(dapm, "Line Out"); |
@@ -95,6 +90,11 @@ static struct snd_soc_card snd_soc_machine_simtec_aic33 = { | |||
95 | .name = "Simtec-Hermes", | 90 | .name = "Simtec-Hermes", |
96 | .dai_link = &simtec_dai_aic33, | 91 | .dai_link = &simtec_dai_aic33, |
97 | .num_links = 1, | 92 | .num_links = 1, |
93 | |||
94 | .dapm_widgets = dapm_widgets, | ||
95 | .num_dapm_widgets = ARRAY_SIZE(dapm_widgets), | ||
96 | .dapm_routes = base_map, | ||
97 | .num_dapm_routes = ARRAY_SIZE(base_map), | ||
98 | }; | 98 | }; |
99 | 99 | ||
100 | static int __devinit simtec_audio_hermes_probe(struct platform_device *pd) | 100 | static int __devinit simtec_audio_hermes_probe(struct platform_device *pd) |
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index 8bad349a9897..7bdda7674008 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
@@ -54,11 +54,6 @@ static int simtec_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) | |||
54 | struct snd_soc_codec *codec = rtd->codec; | 54 | struct snd_soc_codec *codec = rtd->codec; |
55 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 55 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
56 | 56 | ||
57 | snd_soc_dapm_new_controls(dapm, dapm_widgets, | ||
58 | ARRAY_SIZE(dapm_widgets)); | ||
59 | |||
60 | snd_soc_dapm_add_routes(dapm, base_map, ARRAY_SIZE(base_map)); | ||
61 | |||
62 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); | 57 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); |
63 | snd_soc_dapm_enable_pin(dapm, "Line In"); | 58 | snd_soc_dapm_enable_pin(dapm, "Line In"); |
64 | snd_soc_dapm_enable_pin(dapm, "Line Out"); | 59 | snd_soc_dapm_enable_pin(dapm, "Line Out"); |
@@ -84,6 +79,11 @@ static struct snd_soc_card snd_soc_machine_simtec_aic23 = { | |||
84 | .name = "Simtec", | 79 | .name = "Simtec", |
85 | .dai_link = &simtec_dai_aic23, | 80 | .dai_link = &simtec_dai_aic23, |
86 | .num_links = 1, | 81 | .num_links = 1, |
82 | |||
83 | .dapm_widgets = dapm_widgets, | ||
84 | .num_dapm_widgets = ARRAY_SIZE(dapm_widgets), | ||
85 | .dapm_routes = base_map, | ||
86 | .num_dapm_routes = ARRAY_SIZE(base_map), | ||
87 | }; | 87 | }; |
88 | 88 | ||
89 | static int __devinit simtec_audio_tlv320aic23_probe(struct platform_device *pd) | 89 | static int __devinit simtec_audio_tlv320aic23_probe(struct platform_device *pd) |