[PATCH] ASoC: Remove #if 0 code from GTA02
Mark Brown
broonie at opensource.wolfsonmicro.com
Tue Mar 3 11:56:48 CET 2009
More code cleanup.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
sound/soc/s3c24xx/neo1973_gta02_wm8753.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
index 8e2c7fd..ade08e1 100644
--- a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
@@ -488,10 +488,6 @@ static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
/* Add neo1973 gta02 specific widgets */
snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets, ARRAY_SIZE(wm8753_dapm_widgets));
-#if 0
- for (i = 0; i < ARRAY_SIZE(wm8753_dapm_widgets); i++)
- snd_soc_dapm_new_control(codec, &wm8753_dapm_widgets[i]);
-#endif
/* add neo1973 gta02 specific controls */
for (i = 0; i < ARRAY_SIZE(wm8753_neo1973_gta02_controls); i++) {
@@ -502,13 +498,7 @@ static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
return err;
}
- /* set up neo1973 gta02 specific audio path audio_mapnects */
-#if 0
- for (i = 0; audio_map[i][0] != NULL; i++) {
- snd_soc_dapm_connect_input(codec, audio_map[i][0],
- audio_map[i][1], audio_map[i][2]);
- }
-#endif
+ /* set up neo1973 gta02 specific audio path audio_map */
snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
/* set endpoints to default off mode */
--
1.5.6.3
More information about the openmoko-kernel
mailing list