All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] ASoC: sn95031: Use table based control setup
@ 2014-11-05  9:46 Lars-Peter Clausen
  2014-11-05  9:46 ` [PATCH 2/6] ASoC: tas2552: Use table based DAPM setup Lars-Peter Clausen
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Lars-Peter Clausen @ 2014-11-05  9:46 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: alsa-devel, Lars-Peter Clausen, Vinod Koul, patches, Dan Murphy,
	Charles Keepax

Makes the code a bit cleaner.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/codecs/sn95031.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index cf8fa40..6167c59 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -867,9 +867,6 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
 	snd_soc_write(codec, SN95031_SSR2, 0x10);
 	snd_soc_write(codec, SN95031_SSR3, 0x40);
 
-	snd_soc_add_codec_controls(codec, sn95031_snd_controls,
-			     ARRAY_SIZE(sn95031_snd_controls));
-
 	return 0;
 }
 
@@ -886,6 +883,9 @@ static struct snd_soc_codec_driver sn95031_codec = {
 	.remove		= sn95031_codec_remove,
 	.set_bias_level	= sn95031_set_vaud_bias,
 	.idle_bias_off	= true,
+
+	.controls	= sn95031_snd_controls,
+	.num_controls	= ARRAY_SIZE(sn95031_snd_controls),
 	.dapm_widgets	= sn95031_dapm_widgets,
 	.num_dapm_widgets	= ARRAY_SIZE(sn95031_dapm_widgets),
 	.dapm_routes	= sn95031_audio_map,
-- 
1.8.0

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

end of thread, other threads:[~2014-11-05 14:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05  9:46 [PATCH 1/6] ASoC: sn95031: Use table based control setup Lars-Peter Clausen
2014-11-05  9:46 ` [PATCH 2/6] ASoC: tas2552: Use table based DAPM setup Lars-Peter Clausen
2014-11-05  9:46 ` [PATCH 3/6] ASoC: wl1273: Use table based control setup Lars-Peter Clausen
2014-11-05  9:46 ` [PATCH 4/6] ASoC: wm8737: Use table based DAPM and " Lars-Peter Clausen
2014-11-05 14:21   ` Charles Keepax
2014-11-05  9:46 ` [PATCH 5/6] ASoC: wm8961: " Lars-Peter Clausen
2014-11-05 14:22   ` Charles Keepax
2014-11-05  9:46 ` [PATCH 6/6] ASoC: wm8995: " Lars-Peter Clausen
2014-11-05 14:22   ` Charles Keepax
2014-11-05 12:12 ` [PATCH 1/6] ASoC: sn95031: Use table based " Vinod Koul
2014-11-05 14:50 ` 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.