diff options
-rw-r--r-- | sound/soc/pxa/palm27x.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c index 2074e2daf9c6..bb062e6b9db5 100644 --- a/sound/soc/pxa/palm27x.c +++ b/sound/soc/pxa/palm27x.c | |||
@@ -79,17 +79,6 @@ static int palm27x_ac97_init(struct snd_soc_pcm_runtime *rtd) | |||
79 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 79 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
80 | int err; | 80 | int err; |
81 | 81 | ||
82 | /* add palm27x specific widgets */ | ||
83 | err = snd_soc_dapm_new_controls(dapm, palm27x_dapm_widgets, | ||
84 | ARRAY_SIZE(palm27x_dapm_widgets)); | ||
85 | if (err) | ||
86 | return err; | ||
87 | |||
88 | /* set up palm27x specific audio path audio_map */ | ||
89 | err = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); | ||
90 | if (err) | ||
91 | return err; | ||
92 | |||
93 | /* connected pins */ | 82 | /* connected pins */ |
94 | if (machine_is_palmld()) | 83 | if (machine_is_palmld()) |
95 | snd_soc_dapm_enable_pin(dapm, "MIC1"); | 84 | snd_soc_dapm_enable_pin(dapm, "MIC1"); |
@@ -149,6 +138,10 @@ static struct snd_soc_card palm27x_asoc = { | |||
149 | .owner = THIS_MODULE, | 138 | .owner = THIS_MODULE, |
150 | .dai_link = palm27x_dai, | 139 | .dai_link = palm27x_dai, |
151 | .num_links = ARRAY_SIZE(palm27x_dai), | 140 | .num_links = ARRAY_SIZE(palm27x_dai), |
141 | .dapm_widgets = palm27x_dapm_widgets, | ||
142 | .num_dapm_widgets = ARRAY_SIZE(palm27x_dapm_widgets), | ||
143 | .dapm_routes = audio_map, | ||
144 | .num_dapm_routes = ARRAY_SIZE(audio_map) | ||
152 | }; | 145 | }; |
153 | 146 | ||
154 | static struct platform_device *palm27x_snd_device; | 147 | static struct platform_device *palm27x_snd_device; |