Skip to contentSkip to conversation

ASoC: cq93vc: Use table based control registration

PATCH New Mark Brown 1 participant 1 message Aug 31, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: cq93vc: Use table based control registration

From: Mark Brown <[email protected]>

Saves a little code.

---
 sound/soc/codecs/cq93vc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/cq93vc.c +2 -4
index 3ce535b..43737a27 100644
@@ -142,10 +142,6 @@ static int cq93vc_probe(struct snd_soc_codec *codec)
 
 	snd_soc_codec_set_cache_io(codec, 32, 32, SND_SOC_REGMAP);
 
-	/* Set controls */
-	snd_soc_add_codec_controls(codec, cq93vc_snd_controls,
-			     ARRAY_SIZE(cq93vc_snd_controls));
-
 	/* Off, with power on */
 	cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
@@ -164,6 +160,8 @@ static struct snd_soc_codec_driver soc_codec_dev_cq93vc = {
 	.probe = cq93vc_probe,
 	.remove = cq93vc_remove,
 	.resume = cq93vc_resume,
+	.controls = cq93vc_snd_controls,
+	.num_controls = ARRAY_SIZE(cq93vc_snd_controls),
 };
 
 static int cq93vc_platform_probe(struct platform_device *pdev)
Signature · 1 line
1.8.4.rc3