diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-10-10 08:34:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-10 11:18:10 -0400 |
commit | cb4248779d317eb5a0f554b298134689c395c4fd (patch) | |
tree | be884463fe2b096c5753d6de0cf47d5ceee7c83b | |
parent | 03b5362d2fef02cabbbb440d861d27e40ed3a929 (diff) |
ASoC: OMAP machines: Remove soc_dapm_sync() call from init
No need to call soc_dapm_sync at init time.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Anuj Aggarwal <anuj.aggarwal@ti.com>
Cc: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
Cc: GraÅžvydas Ignotas <notasas@gmail.com>
Cc: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/omap/am3517evm.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/ams-delta.c | 1 | ||||
-rw-r--r-- | sound/soc/omap/n810.c | 6 | ||||
-rw-r--r-- | sound/soc/omap/omap3pandora.c | 8 | ||||
-rw-r--r-- | sound/soc/omap/osk5912.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/rx51.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/sdp3430.c | 4 | ||||
-rw-r--r-- | sound/soc/omap/sdp4430.c | 4 | ||||
-rw-r--r-- | sound/soc/omap/zoom2.c | 4 |
9 files changed, 4 insertions, 29 deletions
diff --git a/sound/soc/omap/am3517evm.c b/sound/soc/omap/am3517evm.c index 48af0f87f84d..f5a4d65b2f60 100644 --- a/sound/soc/omap/am3517evm.c +++ b/sound/soc/omap/am3517evm.c | |||
@@ -107,8 +107,6 @@ static int am3517evm_aic23_init(struct snd_soc_pcm_runtime *rtd) | |||
107 | snd_soc_dapm_enable_pin(dapm, "Line In"); | 107 | snd_soc_dapm_enable_pin(dapm, "Line In"); |
108 | snd_soc_dapm_enable_pin(dapm, "Mic In"); | 108 | snd_soc_dapm_enable_pin(dapm, "Mic In"); |
109 | 109 | ||
110 | snd_soc_dapm_sync(dapm); | ||
111 | |||
112 | return 0; | 110 | return 0; |
113 | } | 111 | } |
114 | 112 | ||
diff --git a/sound/soc/omap/ams-delta.c b/sound/soc/omap/ams-delta.c index 0aa475f92efa..dcb7b689a4ea 100644 --- a/sound/soc/omap/ams-delta.c +++ b/sound/soc/omap/ams-delta.c | |||
@@ -569,7 +569,6 @@ static int ams_delta_cx20442_init(struct snd_soc_pcm_runtime *rtd) | |||
569 | snd_soc_dapm_disable_pin(dapm, "Speaker"); | 569 | snd_soc_dapm_disable_pin(dapm, "Speaker"); |
570 | snd_soc_dapm_disable_pin(dapm, "AGCIN"); | 570 | snd_soc_dapm_disable_pin(dapm, "AGCIN"); |
571 | snd_soc_dapm_disable_pin(dapm, "AGCOUT"); | 571 | snd_soc_dapm_disable_pin(dapm, "AGCOUT"); |
572 | snd_soc_dapm_sync(dapm); | ||
573 | 572 | ||
574 | /* Add virtual switch */ | 573 | /* Add virtual switch */ |
575 | ret = snd_soc_add_controls(codec, ams_delta_audio_controls, | 574 | ret = snd_soc_add_controls(codec, ams_delta_audio_controls, |
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index c10d3566ab1f..4fa881bc00e5 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -280,11 +280,7 @@ static int n810_aic33_init(struct snd_soc_pcm_runtime *rtd) | |||
280 | ARRAY_SIZE(aic33_dapm_widgets)); | 280 | ARRAY_SIZE(aic33_dapm_widgets)); |
281 | 281 | ||
282 | /* Set up N810 specific audio path audio_map */ | 282 | /* Set up N810 specific audio path audio_map */ |
283 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); | 283 | return snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
284 | |||
285 | snd_soc_dapm_sync(dapm); | ||
286 | |||
287 | return 0; | ||
288 | } | 284 | } |
289 | 285 | ||
290 | /* Digital audio interface glue - connects codec <--> CPU */ | 286 | /* Digital audio interface glue - connects codec <--> CPU */ |
diff --git a/sound/soc/omap/omap3pandora.c b/sound/soc/omap/omap3pandora.c index 3ae87fd36612..30a75b406aea 100644 --- a/sound/soc/omap/omap3pandora.c +++ b/sound/soc/omap/omap3pandora.c | |||
@@ -173,10 +173,8 @@ static int omap3pandora_out_init(struct snd_soc_pcm_runtime *rtd) | |||
173 | if (ret < 0) | 173 | if (ret < 0) |
174 | return ret; | 174 | return ret; |
175 | 175 | ||
176 | snd_soc_dapm_add_routes(dapm, omap3pandora_out_map, | 176 | return snd_soc_dapm_add_routes(dapm, omap3pandora_out_map, |
177 | ARRAY_SIZE(omap3pandora_out_map)); | 177 | ARRAY_SIZE(omap3pandora_out_map)); |
178 | |||
179 | return snd_soc_dapm_sync(dapm); | ||
180 | } | 178 | } |
181 | 179 | ||
182 | static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd) | 180 | static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd) |
@@ -196,10 +194,8 @@ static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd) | |||
196 | if (ret < 0) | 194 | if (ret < 0) |
197 | return ret; | 195 | return ret; |
198 | 196 | ||
199 | snd_soc_dapm_add_routes(dapm, omap3pandora_in_map, | 197 | return snd_soc_dapm_add_routes(dapm, omap3pandora_in_map, |
200 | ARRAY_SIZE(omap3pandora_in_map)); | 198 | ARRAY_SIZE(omap3pandora_in_map)); |
201 | |||
202 | return snd_soc_dapm_sync(dapm); | ||
203 | } | 199 | } |
204 | 200 | ||
205 | static struct snd_soc_ops omap3pandora_ops = { | 201 | static struct snd_soc_ops omap3pandora_ops = { |
diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c index 597833246e3a..18f8a2db2d31 100644 --- a/sound/soc/omap/osk5912.c +++ b/sound/soc/omap/osk5912.c | |||
@@ -107,8 +107,6 @@ static int osk_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) | |||
107 | snd_soc_dapm_enable_pin(dapm, "Line In"); | 107 | snd_soc_dapm_enable_pin(dapm, "Line In"); |
108 | snd_soc_dapm_enable_pin(dapm, "Mic Jack"); | 108 | snd_soc_dapm_enable_pin(dapm, "Mic Jack"); |
109 | 109 | ||
110 | snd_soc_dapm_sync(dapm); | ||
111 | |||
112 | return 0; | 110 | return 0; |
113 | } | 111 | } |
114 | 112 | ||
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 7164db5fc38a..a56842380c72 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c | |||
@@ -317,8 +317,6 @@ static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd) | |||
317 | if (err < 0) | 317 | if (err < 0) |
318 | return err; | 318 | return err; |
319 | 319 | ||
320 | snd_soc_dapm_sync(dapm); | ||
321 | |||
322 | /* AV jack detection */ | 320 | /* AV jack detection */ |
323 | err = snd_soc_jack_new(codec, "AV Jack", | 321 | err = snd_soc_jack_new(codec, "AV Jack", |
324 | SND_JACK_HEADSET | SND_JACK_VIDEOOUT, | 322 | SND_JACK_HEADSET | SND_JACK_VIDEOOUT, |
diff --git a/sound/soc/omap/sdp3430.c b/sound/soc/omap/sdp3430.c index 269aded8a6be..85e2e9183e21 100644 --- a/sound/soc/omap/sdp3430.c +++ b/sound/soc/omap/sdp3430.c | |||
@@ -159,10 +159,6 @@ static int sdp3430_twl4030_init(struct snd_soc_pcm_runtime *rtd) | |||
159 | snd_soc_dapm_nc_pin(dapm, "CARKITL"); | 159 | snd_soc_dapm_nc_pin(dapm, "CARKITL"); |
160 | snd_soc_dapm_nc_pin(dapm, "CARKITR"); | 160 | snd_soc_dapm_nc_pin(dapm, "CARKITR"); |
161 | 161 | ||
162 | ret = snd_soc_dapm_sync(dapm); | ||
163 | if (ret) | ||
164 | return ret; | ||
165 | |||
166 | /* Headset jack detection */ | 162 | /* Headset jack detection */ |
167 | ret = snd_soc_jack_new(codec, "Headset Jack", | 163 | ret = snd_soc_jack_new(codec, "Headset Jack", |
168 | SND_JACK_HEADSET, &hs_jack); | 164 | SND_JACK_HEADSET, &hs_jack); |
diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c index 79ec76d521e1..98f05dc4c394 100644 --- a/sound/soc/omap/sdp4430.c +++ b/sound/soc/omap/sdp4430.c | |||
@@ -140,10 +140,6 @@ static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd) | |||
140 | snd_soc_dapm_enable_pin(dapm, "Headset Mic"); | 140 | snd_soc_dapm_enable_pin(dapm, "Headset Mic"); |
141 | snd_soc_dapm_enable_pin(dapm, "Headset Stereophone"); | 141 | snd_soc_dapm_enable_pin(dapm, "Headset Stereophone"); |
142 | 142 | ||
143 | ret = snd_soc_dapm_sync(dapm); | ||
144 | if (ret) | ||
145 | return ret; | ||
146 | |||
147 | /* | 143 | /* |
148 | * Configure McPDM offset cancellation based on the HSOTRIM value from | 144 | * Configure McPDM offset cancellation based on the HSOTRIM value from |
149 | * twl6040. | 145 | * twl6040. |
diff --git a/sound/soc/omap/zoom2.c b/sound/soc/omap/zoom2.c index 8b1ebbce33aa..9a8288d5ea49 100644 --- a/sound/soc/omap/zoom2.c +++ b/sound/soc/omap/zoom2.c | |||
@@ -126,9 +126,7 @@ static int zoom2_twl4030_init(struct snd_soc_pcm_runtime *rtd) | |||
126 | snd_soc_dapm_nc_pin(dapm, "CARKITL"); | 126 | snd_soc_dapm_nc_pin(dapm, "CARKITL"); |
127 | snd_soc_dapm_nc_pin(dapm, "CARKITR"); | 127 | snd_soc_dapm_nc_pin(dapm, "CARKITR"); |
128 | 128 | ||
129 | ret = snd_soc_dapm_sync(dapm); | 129 | return 0; |
130 | |||
131 | return ret; | ||
132 | } | 130 | } |
133 | 131 | ||
134 | static int zoom2_twl4030_voice_init(struct snd_soc_pcm_runtime *rtd) | 132 | static int zoom2_twl4030_voice_init(struct snd_soc_pcm_runtime *rtd) |