All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ASoC: Convert H1940 to table based init
@ 2011-10-09 10:28 Mark Brown
  2011-10-09 10:28 ` [PATCH 2/2] ASoC: Assign power_check when we allocate DAPM widgets Mark Brown
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Mark Brown @ 2011-10-09 10:28 UTC (permalink / raw)
  To: Sangbeom Kim, Liam Girdwood; +Cc: alsa-devel, patches, Mark Brown

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/samsung/h1940_uda1380.c |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c
index cdaed90..03cfa5f 100644
--- a/sound/soc/samsung/h1940_uda1380.c
+++ b/sound/soc/samsung/h1940_uda1380.c
@@ -183,18 +183,6 @@ static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd)
 	struct snd_soc_dapm_context *dapm = &codec->dapm;
 	int err;
 
-	/* Add h1940 specific widgets */
-	err = snd_soc_dapm_new_controls(dapm, uda1380_dapm_widgets,
-				  ARRAY_SIZE(uda1380_dapm_widgets));
-	if (err)
-		return err;
-
-	/* Set up h1940 specific audio path audio_mapnects */
-	err = snd_soc_dapm_add_routes(dapm, audio_map,
-				      ARRAY_SIZE(audio_map));
-	if (err)
-		return err;
-
 	snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
 	snd_soc_dapm_enable_pin(dapm, "Speaker");
 	snd_soc_dapm_enable_pin(dapm, "Mic Jack");
@@ -229,6 +217,11 @@ static struct snd_soc_card h1940_asoc = {
 	.name = "h1940",
 	.dai_link = h1940_uda1380_dai,
 	.num_links = ARRAY_SIZE(h1940_uda1380_dai),
+
+	.dapm_widgets = uda1380_dapm_widgets,
+	.num_dapm_widgets = ARRAY_SIZE(uda1380_dapm_widgets),
+	.dapm_routes = audio_map,
+	.num_dapm_routes = ARRAY_SIZE(audio_map),
 };
 
 static int __init h1940_init(void)
-- 
1.7.6.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-10-10 10:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-09 10:28 [PATCH 1/5] ASoC: Convert H1940 to table based init Mark Brown
2011-10-09 10:28 ` [PATCH 2/2] ASoC: Assign power_check when we allocate DAPM widgets Mark Brown
2011-10-09 10:28 ` [PATCH 2/5] ASoC: Convert Jive to table based init Mark Brown
2011-10-10 10:06   ` Sangbeom Kim
2011-10-09 10:28 ` [PATCH 3/5] ASoC: Convert RX1950 " Mark Brown
2011-10-10 10:10   ` Sangbeom Kim
2011-10-09 10:28 ` [PATCH 4/5] ASoC: Convert SmartQ " Mark Brown
2011-10-10 10:12   ` Sangbeom Kim
2011-10-09 10:28 ` [PATCH 5/5] ASoC: Convert SMDK WM8580 to table based DAPM init Mark Brown
2011-10-10 10:17   ` Sangbeom Kim
2011-10-10 10:03 ` [PATCH 1/5] ASoC: Convert H1940 to table based init Sangbeom Kim
2011-10-10 10:10   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.