aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-10 00:48:11 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-10 20:16:03 -0400
commit19ace0e97a605042c481c2ea3f7aeb59c0eb54ed (patch)
tree665f9b0a261a769a63954a56bc3ad39cc7d9be1a /sound
parent0ebe36c6c4fe8fcfeee3192f37f2ff8318a029bd (diff)
ASoC: cs4270: Conver to data based control init
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs4270.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 44a176f74170..c6e5a73a9f17 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -521,14 +521,6 @@ static int cs4270_probe(struct snd_soc_codec *codec)
521 return ret; 521 return ret;
522 } 522 }
523 523
524 /* Add the non-DAPM controls */
525 ret = snd_soc_add_codec_controls(codec, cs4270_snd_controls,
526 ARRAY_SIZE(cs4270_snd_controls));
527 if (ret < 0) {
528 dev_err(codec->dev, "failed to add controls\n");
529 return ret;
530 }
531
532 /* get the power supply regulators */ 524 /* get the power supply regulators */
533 for (i = 0; i < ARRAY_SIZE(supply_names); i++) 525 for (i = 0; i < ARRAY_SIZE(supply_names); i++)
534 cs4270->supplies[i].supply = supply_names[i]; 526 cs4270->supplies[i].supply = supply_names[i];
@@ -634,6 +626,9 @@ static const struct snd_soc_codec_driver soc_codec_device_cs4270 = {
634 .remove = cs4270_remove, 626 .remove = cs4270_remove,
635 .suspend = cs4270_soc_suspend, 627 .suspend = cs4270_soc_suspend,
636 .resume = cs4270_soc_resume, 628 .resume = cs4270_soc_resume,
629
630 .controls = cs4270_snd_controls,
631 .num_controls = ARRAY_SIZE(cs4270_snd_controls),
637 .volatile_register = cs4270_reg_is_volatile, 632 .volatile_register = cs4270_reg_is_volatile,
638 .readable_register = cs4270_reg_is_readable, 633 .readable_register = cs4270_reg_is_readable,
639 .reg_cache_size = CS4270_LASTREG + 1, 634 .reg_cache_size = CS4270_LASTREG + 1,