aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-28 06:49:07 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-01 14:58:50 -0500
commit968a6025aa9f909d487988efb542217a126023a0 (patch)
tree570f91bce3381826d01b0b1948103f4577b05564 /sound/soc/codecs
parent682d5874f3d654b5d13d9b8dd56b9e05cfadd01b (diff)
ASoC: Rename snd_soc_register_card() to snd_soc_init_card()
Currently ASoC card initialisation is completed by a function called snd_soc_register_card(). As part of the work to allow independant registration of cards, codecs and machines in ASoC v2 a new function of the same name has been added so rename the existing function to facilitate the merge of v2. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/ac97.c2
-rw-r--r--sound/soc/codecs/ad1980.c2
-rw-r--r--sound/soc/codecs/ad73311.c2
-rw-r--r--sound/soc/codecs/ak4535.c2
-rw-r--r--sound/soc/codecs/cs4270.c2
-rw-r--r--sound/soc/codecs/pcm3008.c2
-rw-r--r--sound/soc/codecs/ssm2602.c2
-rw-r--r--sound/soc/codecs/tlv320aic23.c2
-rw-r--r--sound/soc/codecs/tlv320aic26.c2
-rw-r--r--sound/soc/codecs/tlv320aic3x.c2
-rw-r--r--sound/soc/codecs/twl4030.c2
-rw-r--r--sound/soc/codecs/uda134x.c2
-rw-r--r--sound/soc/codecs/uda1380.c2
-rw-r--r--sound/soc/codecs/wm8510.c2
-rw-r--r--sound/soc/codecs/wm8580.c2
-rw-r--r--sound/soc/codecs/wm8728.c2
-rw-r--r--sound/soc/codecs/wm8731.c2
-rw-r--r--sound/soc/codecs/wm8750.c2
-rw-r--r--sound/soc/codecs/wm8753.c2
-rw-r--r--sound/soc/codecs/wm8900.c2
-rw-r--r--sound/soc/codecs/wm8903.c2
-rw-r--r--sound/soc/codecs/wm8971.c2
-rw-r--r--sound/soc/codecs/wm8990.c2
-rw-r--r--sound/soc/codecs/wm9712.c2
-rw-r--r--sound/soc/codecs/wm9713.c2
25 files changed, 25 insertions, 25 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c
index c4208c8210c8..fb53e6511af2 100644
--- a/sound/soc/codecs/ac97.c
+++ b/sound/soc/codecs/ac97.c
@@ -114,7 +114,7 @@ static int ac97_soc_probe(struct platform_device *pdev)
114 if (ret < 0) 114 if (ret < 0)
115 goto bus_err; 115 goto bus_err;
116 116
117 ret = snd_soc_register_card(socdev); 117 ret = snd_soc_init_card(socdev);
118 if (ret < 0) 118 if (ret < 0)
119 goto bus_err; 119 goto bus_err;
120 return 0; 120 return 0;
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c
index a9a268112d3f..73fdbb4d4a3d 100644
--- a/sound/soc/codecs/ad1980.c
+++ b/sound/soc/codecs/ad1980.c
@@ -270,7 +270,7 @@ static int ad1980_soc_probe(struct platform_device *pdev)
270 ac97_write(codec, AC97_EXTENDED_STATUS, ext_status&~0x3800); 270 ac97_write(codec, AC97_EXTENDED_STATUS, ext_status&~0x3800);
271 271
272 ad1980_add_controls(codec); 272 ad1980_add_controls(codec);
273 ret = snd_soc_register_card(socdev); 273 ret = snd_soc_init_card(socdev);
274 if (ret < 0) { 274 if (ret < 0) {
275 printk(KERN_ERR "ad1980: failed to register card\n"); 275 printk(KERN_ERR "ad1980: failed to register card\n");
276 goto reset_err; 276 goto reset_err;
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c
index 59c4c8f18cbb..0f4110f4bceb 100644
--- a/sound/soc/codecs/ad73311.c
+++ b/sound/soc/codecs/ad73311.c
@@ -67,7 +67,7 @@ static int ad73311_soc_probe(struct platform_device *pdev)
67 goto pcm_err; 67 goto pcm_err;
68 } 68 }
69 69
70 ret = snd_soc_register_card(socdev); 70 ret = snd_soc_init_card(socdev);
71 if (ret < 0) { 71 if (ret < 0) {
72 printk(KERN_ERR "ad73311: failed to register card\n"); 72 printk(KERN_ERR "ad73311: failed to register card\n");
73 goto register_err; 73 goto register_err;
diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c
index c742290e5533..23062c952e85 100644
--- a/sound/soc/codecs/ak4535.c
+++ b/sound/soc/codecs/ak4535.c
@@ -512,7 +512,7 @@ static int ak4535_init(struct snd_soc_device *socdev)
512 512
513 ak4535_add_controls(codec); 513 ak4535_add_controls(codec);
514 ak4535_add_widgets(codec); 514 ak4535_add_widgets(codec);
515 ret = snd_soc_register_card(socdev); 515 ret = snd_soc_init_card(socdev);
516 if (ret < 0) { 516 if (ret < 0) {
517 printk(KERN_ERR "ak4535: failed to register card\n"); 517 printk(KERN_ERR "ak4535: failed to register card\n");
518 goto card_err; 518 goto card_err;
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 7507d468b200..4667a07b566c 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -723,7 +723,7 @@ static int cs4270_probe(struct platform_device *pdev)
723 printk(KERN_INFO "cs4270: I2C disabled, using stand-alone mode\n"); 723 printk(KERN_INFO "cs4270: I2C disabled, using stand-alone mode\n");
724#endif 724#endif
725 725
726 ret = snd_soc_register_card(socdev); 726 ret = snd_soc_init_card(socdev);
727 if (ret < 0) { 727 if (ret < 0) {
728 printk(KERN_ERR "cs4270: failed to register card\n"); 728 printk(KERN_ERR "cs4270: failed to register card\n");
729 goto error_del_driver; 729 goto error_del_driver;
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c
index 651a15eb8c2c..a5862555b444 100644
--- a/sound/soc/codecs/pcm3008.c
+++ b/sound/soc/codecs/pcm3008.c
@@ -91,7 +91,7 @@ static int pcm3008_soc_probe(struct platform_device *pdev)
91 } 91 }
92 92
93 /* Register Card. */ 93 /* Register Card. */
94 ret = snd_soc_register_card(socdev); 94 ret = snd_soc_init_card(socdev);
95 if (ret < 0) { 95 if (ret < 0) {
96 printk(KERN_ERR "pcm3008: failed to register card\n"); 96 printk(KERN_ERR "pcm3008: failed to register card\n");
97 goto card_err; 97 goto card_err;
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index 0c5884ea1b00..973844973fe1 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -624,7 +624,7 @@ static int ssm2602_init(struct snd_soc_device *socdev)
624 624
625 ssm2602_add_controls(codec); 625 ssm2602_add_controls(codec);
626 ssm2602_add_widgets(codec); 626 ssm2602_add_widgets(codec);
627 ret = snd_soc_register_card(socdev); 627 ret = snd_soc_init_card(socdev);
628 if (ret < 0) { 628 if (ret < 0) {
629 pr_err("ssm2602: failed to register card\n"); 629 pr_err("ssm2602: failed to register card\n");
630 goto card_err; 630 goto card_err;
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c
index a4e13d0688c9..d209bec02a69 100644
--- a/sound/soc/codecs/tlv320aic23.c
+++ b/sound/soc/codecs/tlv320aic23.c
@@ -720,7 +720,7 @@ static int tlv320aic23_init(struct snd_soc_device *socdev)
720 720
721 tlv320aic23_add_controls(codec); 721 tlv320aic23_add_controls(codec);
722 tlv320aic23_add_widgets(codec); 722 tlv320aic23_add_widgets(codec);
723 ret = snd_soc_register_card(socdev); 723 ret = snd_soc_init_card(socdev);
724 if (ret < 0) { 724 if (ret < 0) {
725 printk(KERN_ERR "tlv320aic23: failed to register card\n"); 725 printk(KERN_ERR "tlv320aic23: failed to register card\n");
726 goto card_err; 726 goto card_err;
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c
index 6b7ddfc92573..e33fb7e00d1e 100644
--- a/sound/soc/codecs/tlv320aic26.c
+++ b/sound/soc/codecs/tlv320aic26.c
@@ -359,7 +359,7 @@ static int aic26_probe(struct platform_device *pdev)
359 359
360 /* CODEC is setup, we can register the card now */ 360 /* CODEC is setup, we can register the card now */
361 dev_dbg(&pdev->dev, "Registering card\n"); 361 dev_dbg(&pdev->dev, "Registering card\n");
362 ret = snd_soc_register_card(socdev); 362 ret = snd_soc_init_card(socdev);
363 if (ret < 0) { 363 if (ret < 0) {
364 dev_err(&pdev->dev, "aic26: failed to register card\n"); 364 dev_err(&pdev->dev, "aic26: failed to register card\n");
365 goto card_err; 365 goto card_err;
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 255e784c805b..0f4067bdd4a3 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1187,7 +1187,7 @@ static int aic3x_init(struct snd_soc_device *socdev)
1187 1187
1188 aic3x_add_controls(codec); 1188 aic3x_add_controls(codec);
1189 aic3x_add_widgets(codec); 1189 aic3x_add_widgets(codec);
1190 ret = snd_soc_register_card(socdev); 1190 ret = snd_soc_init_card(socdev);
1191 if (ret < 0) { 1191 if (ret < 0) {
1192 printk(KERN_ERR "aic3x: failed to register card\n"); 1192 printk(KERN_ERR "aic3x: failed to register card\n");
1193 goto card_err; 1193 goto card_err;
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 413623147891..f3e9e591b52f 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -764,7 +764,7 @@ static int twl4030_init(struct snd_soc_device *socdev)
764 twl4030_add_controls(codec); 764 twl4030_add_controls(codec);
765 twl4030_add_widgets(codec); 765 twl4030_add_widgets(codec);
766 766
767 ret = snd_soc_register_card(socdev); 767 ret = snd_soc_init_card(socdev);
768 if (ret < 0) { 768 if (ret < 0) {
769 printk(KERN_ERR "twl4030: failed to register card\n"); 769 printk(KERN_ERR "twl4030: failed to register card\n");
770 goto card_err; 770 goto card_err;
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index 91f333cdc7cf..58de749185e6 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -578,7 +578,7 @@ static int uda134x_soc_probe(struct platform_device *pdev)
578 goto pcm_err; 578 goto pcm_err;
579 } 579 }
580 580
581 ret = snd_soc_register_card(socdev); 581 ret = snd_soc_init_card(socdev);
582 if (ret < 0) { 582 if (ret < 0) {
583 printk(KERN_ERR "UDA134X: failed to register card\n"); 583 printk(KERN_ERR "UDA134X: failed to register card\n");
584 goto card_err; 584 goto card_err;
diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c
index 330877c70699..42491650593f 100644
--- a/sound/soc/codecs/uda1380.c
+++ b/sound/soc/codecs/uda1380.c
@@ -677,7 +677,7 @@ static int uda1380_init(struct snd_soc_device *socdev, int dac_clk)
677 /* uda1380 init */ 677 /* uda1380 init */
678 uda1380_add_controls(codec); 678 uda1380_add_controls(codec);
679 uda1380_add_widgets(codec); 679 uda1380_add_widgets(codec);
680 ret = snd_soc_register_card(socdev); 680 ret = snd_soc_init_card(socdev);
681 if (ret < 0) { 681 if (ret < 0) {
682 pr_err("uda1380: failed to register card\n"); 682 pr_err("uda1380: failed to register card\n");
683 goto card_err; 683 goto card_err;
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 173b66c0c766..126c70f749d1 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -658,7 +658,7 @@ static int wm8510_init(struct snd_soc_device *socdev)
658 wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 658 wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
659 wm8510_add_controls(codec); 659 wm8510_add_controls(codec);
660 wm8510_add_widgets(codec); 660 wm8510_add_widgets(codec);
661 ret = snd_soc_register_card(socdev); 661 ret = snd_soc_init_card(socdev);
662 if (ret < 0) { 662 if (ret < 0) {
663 printk(KERN_ERR "wm8510: failed to register card\n"); 663 printk(KERN_ERR "wm8510: failed to register card\n");
664 goto card_err; 664 goto card_err;
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index 220d4b68904a..572a31de3219 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -869,7 +869,7 @@ static int wm8580_init(struct snd_soc_device *socdev)
869 wm8580_add_controls(codec); 869 wm8580_add_controls(codec);
870 wm8580_add_widgets(codec); 870 wm8580_add_widgets(codec);
871 871
872 ret = snd_soc_register_card(socdev); 872 ret = snd_soc_init_card(socdev);
873 if (ret < 0) { 873 if (ret < 0) {
874 printk(KERN_ERR "wm8580: failed to register card\n"); 874 printk(KERN_ERR "wm8580: failed to register card\n");
875 goto card_err; 875 goto card_err;
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c
index 71949bd320d3..28f12c6a6ac8 100644
--- a/sound/soc/codecs/wm8728.c
+++ b/sound/soc/codecs/wm8728.c
@@ -332,7 +332,7 @@ static int wm8728_init(struct snd_soc_device *socdev)
332 332
333 wm8728_add_controls(codec); 333 wm8728_add_controls(codec);
334 wm8728_add_widgets(codec); 334 wm8728_add_widgets(codec);
335 ret = snd_soc_register_card(socdev); 335 ret = snd_soc_init_card(socdev);
336 if (ret < 0) { 336 if (ret < 0) {
337 printk(KERN_ERR "wm8728: failed to register card\n"); 337 printk(KERN_ERR "wm8728: failed to register card\n");
338 goto card_err; 338 goto card_err;
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index c0f277053bb2..403dea13b5d9 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -545,7 +545,7 @@ static int wm8731_init(struct snd_soc_device *socdev)
545 545
546 wm8731_add_controls(codec); 546 wm8731_add_controls(codec);
547 wm8731_add_widgets(codec); 547 wm8731_add_widgets(codec);
548 ret = snd_soc_register_card(socdev); 548 ret = snd_soc_init_card(socdev);
549 if (ret < 0) { 549 if (ret < 0) {
550 printk(KERN_ERR "wm8731: failed to register card\n"); 550 printk(KERN_ERR "wm8731: failed to register card\n");
551 goto card_err; 551 goto card_err;
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 860a1d56830a..979446f5c983 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -818,7 +818,7 @@ static int wm8750_init(struct snd_soc_device *socdev)
818 818
819 wm8750_add_controls(codec); 819 wm8750_add_controls(codec);
820 wm8750_add_widgets(codec); 820 wm8750_add_widgets(codec);
821 ret = snd_soc_register_card(socdev); 821 ret = snd_soc_init_card(socdev);
822 if (ret < 0) { 822 if (ret < 0) {
823 printk(KERN_ERR "wm8750: failed to register card\n"); 823 printk(KERN_ERR "wm8750: failed to register card\n");
824 goto card_err; 824 goto card_err;
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index 5e4cd3bb824a..96c0453fffb3 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1605,7 +1605,7 @@ static int wm8753_init(struct snd_soc_device *socdev)
1605 1605
1606 wm8753_add_controls(codec); 1606 wm8753_add_controls(codec);
1607 wm8753_add_widgets(codec); 1607 wm8753_add_widgets(codec);
1608 ret = snd_soc_register_card(socdev); 1608 ret = snd_soc_init_card(socdev);
1609 if (ret < 0) { 1609 if (ret < 0) {
1610 printk(KERN_ERR "wm8753: failed to register card\n"); 1610 printk(KERN_ERR "wm8753: failed to register card\n");
1611 goto card_err; 1611 goto card_err;
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
index d1326be91c8b..29cd83991c5b 100644
--- a/sound/soc/codecs/wm8900.c
+++ b/sound/soc/codecs/wm8900.c
@@ -1365,7 +1365,7 @@ static int wm8900_init(struct snd_soc_device *socdev)
1365 wm8900_add_controls(codec); 1365 wm8900_add_controls(codec);
1366 wm8900_add_widgets(codec); 1366 wm8900_add_widgets(codec);
1367 1367
1368 ret = snd_soc_register_card(socdev); 1368 ret = snd_soc_init_card(socdev);
1369 if (ret < 0) { 1369 if (ret < 0) {
1370 dev_err(&i2c_client->dev, "Failed to register card\n"); 1370 dev_err(&i2c_client->dev, "Failed to register card\n");
1371 goto card_err; 1371 goto card_err;
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index efbe8927b7d2..393a4c198823 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -1648,7 +1648,7 @@ static int wm8903_init(struct snd_soc_device *socdev)
1648 1648
1649 wm8903_add_controls(codec); 1649 wm8903_add_controls(codec);
1650 wm8903_add_widgets(codec); 1650 wm8903_add_widgets(codec);
1651 ret = snd_soc_register_card(socdev); 1651 ret = snd_soc_init_card(socdev);
1652 if (ret < 0) { 1652 if (ret < 0) {
1653 dev_err(&i2c->dev, "wm8903: failed to register card\n"); 1653 dev_err(&i2c->dev, "wm8903: failed to register card\n");
1654 goto card_err; 1654 goto card_err;
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c
index 26edcc9d6e87..53e6937e9ba1 100644
--- a/sound/soc/codecs/wm8971.c
+++ b/sound/soc/codecs/wm8971.c
@@ -747,7 +747,7 @@ static int wm8971_init(struct snd_soc_device *socdev)
747 747
748 wm8971_add_controls(codec); 748 wm8971_add_controls(codec);
749 wm8971_add_widgets(codec); 749 wm8971_add_widgets(codec);
750 ret = snd_soc_register_card(socdev); 750 ret = snd_soc_init_card(socdev);
751 if (ret < 0) { 751 if (ret < 0) {
752 printk(KERN_ERR "wm8971: failed to register card\n"); 752 printk(KERN_ERR "wm8971: failed to register card\n");
753 goto card_err; 753 goto card_err;
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index 13926516d16e..5c5128b6b453 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -1462,7 +1462,7 @@ static int wm8990_init(struct snd_soc_device *socdev)
1462 1462
1463 wm8990_add_controls(codec); 1463 wm8990_add_controls(codec);
1464 wm8990_add_widgets(codec); 1464 wm8990_add_widgets(codec);
1465 ret = snd_soc_register_card(socdev); 1465 ret = snd_soc_init_card(socdev);
1466 if (ret < 0) { 1466 if (ret < 0) {
1467 printk(KERN_ERR "wm8990: failed to register card\n"); 1467 printk(KERN_ERR "wm8990: failed to register card\n");
1468 goto card_err; 1468 goto card_err;
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 40f14061fb72..af83d629078a 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -700,7 +700,7 @@ static int wm9712_soc_probe(struct platform_device *pdev)
700 wm9712_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 700 wm9712_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
701 wm9712_add_controls(codec); 701 wm9712_add_controls(codec);
702 wm9712_add_widgets(codec); 702 wm9712_add_widgets(codec);
703 ret = snd_soc_register_card(socdev); 703 ret = snd_soc_init_card(socdev);
704 if (ret < 0) { 704 if (ret < 0) {
705 printk(KERN_ERR "wm9712: failed to register card\n"); 705 printk(KERN_ERR "wm9712: failed to register card\n");
706 goto reset_err; 706 goto reset_err;
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 9dad0bffcb05..49962a88770d 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -1247,7 +1247,7 @@ static int wm9713_soc_probe(struct platform_device *pdev)
1247 1247
1248 wm9713_add_controls(codec); 1248 wm9713_add_controls(codec);
1249 wm9713_add_widgets(codec); 1249 wm9713_add_widgets(codec);
1250 ret = snd_soc_register_card(socdev); 1250 ret = snd_soc_init_card(socdev);
1251 if (ret < 0) 1251 if (ret < 0)
1252 goto reset_err; 1252 goto reset_err;
1253 return 0; 1253 return 0;