]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Rename snd_soc_register_card() to snd_soc_init_card()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 28 Nov 2008 11:49:07 +0000 (11:49 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Dec 2008 19:58:50 +0000 (19:58 +0000)
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>
27 files changed:
include/sound/soc.h
sound/soc/codecs/ac97.c
sound/soc/codecs/ad1980.c
sound/soc/codecs/ad73311.c
sound/soc/codecs/ak4535.c
sound/soc/codecs/cs4270.c
sound/soc/codecs/pcm3008.c
sound/soc/codecs/ssm2602.c
sound/soc/codecs/tlv320aic23.c
sound/soc/codecs/tlv320aic26.c
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/twl4030.c
sound/soc/codecs/uda134x.c
sound/soc/codecs/uda1380.c
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8728.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8750.c
sound/soc/codecs/wm8753.c
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm8903.c
sound/soc/codecs/wm8971.c
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c
sound/soc/soc-core.c

index 444f9c211379d726a761015ff69494f0026c2f70..9356c1ce98c1a49a944c053a20780eb330d4164f 100644 (file)
@@ -162,7 +162,7 @@ extern struct snd_ac97_bus_ops soc_ac97_ops;
 /* pcm <-> DAI connect */
 void snd_soc_free_pcms(struct snd_soc_device *socdev);
 int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
-int snd_soc_register_card(struct snd_soc_device *socdev);
+int snd_soc_init_card(struct snd_soc_device *socdev);
 
 /* set runtime hw params */
 int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
index c4208c8210c8734cf589d73058ca6b48ecb2713c..fb53e6511af25d0b0d0dd164a1b1de0a511f73c7 100644 (file)
@@ -114,7 +114,7 @@ static int ac97_soc_probe(struct platform_device *pdev)
        if (ret < 0)
                goto bus_err;
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0)
                goto bus_err;
        return 0;
index a9a268112d3f45e37a97cad43eb279621d3279d2..73fdbb4d4a3d4702cbf6d9b3b25d59d00a287e2b 100644 (file)
@@ -270,7 +270,7 @@ static int ad1980_soc_probe(struct platform_device *pdev)
        ac97_write(codec, AC97_EXTENDED_STATUS, ext_status&~0x3800);
 
        ad1980_add_controls(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "ad1980: failed to register card\n");
                goto reset_err;
index 59c4c8f18cbb16741604331d64a0fd2c2a7a6459..0f4110f4bceba08092065d2001329a14ab7a9d02 100644 (file)
@@ -67,7 +67,7 @@ static int ad73311_soc_probe(struct platform_device *pdev)
                goto pcm_err;
        }
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "ad73311: failed to register card\n");
                goto register_err;
index c742290e5533bcfa093a2ce439b208137761224d..23062c952e857170d38a5936f8d6699837e04327 100644 (file)
@@ -512,7 +512,7 @@ static int ak4535_init(struct snd_soc_device *socdev)
 
        ak4535_add_controls(codec);
        ak4535_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "ak4535: failed to register card\n");
                goto card_err;
index 7507d468b2004a4d24b578ecc035705d71f9a343..4667a07b566ced0654c7bcfa42ae7a66ab2b2cd4 100644 (file)
@@ -723,7 +723,7 @@ static int cs4270_probe(struct platform_device *pdev)
        printk(KERN_INFO "cs4270: I2C disabled, using stand-alone mode\n");
 #endif
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "cs4270: failed to register card\n");
                goto error_del_driver;
index 651a15eb8c2c87058928919bc82c8d244213db0b..a5862555b44498075ee4da6afd82bdc513273801 100644 (file)
@@ -91,7 +91,7 @@ static int pcm3008_soc_probe(struct platform_device *pdev)
        }
 
        /* Register Card. */
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "pcm3008: failed to register card\n");
                goto card_err;
index 0c5884ea1b00e1ae544f988c86e44bffbc98de00..973844973fe1d8dab50062b623123be5de4d8a66 100644 (file)
@@ -624,7 +624,7 @@ static int ssm2602_init(struct snd_soc_device *socdev)
 
        ssm2602_add_controls(codec);
        ssm2602_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                pr_err("ssm2602: failed to register card\n");
                goto card_err;
index a4e13d0688c955671c02bd1f3e381e45ab6cbb00..d209bec02a69d668c4e5f92a28a7fb3d79883f6d 100644 (file)
@@ -720,7 +720,7 @@ static int tlv320aic23_init(struct snd_soc_device *socdev)
 
        tlv320aic23_add_controls(codec);
        tlv320aic23_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "tlv320aic23: failed to register card\n");
                goto card_err;
index 6b7ddfc92573ebdb366ebd1c34a9a1055792fbd8..e33fb7e00d1ed1d0b9694fa1770876e5095dccff 100644 (file)
@@ -359,7 +359,7 @@ static int aic26_probe(struct platform_device *pdev)
 
        /* CODEC is setup, we can register the card now */
        dev_dbg(&pdev->dev, "Registering card\n");
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                dev_err(&pdev->dev, "aic26: failed to register card\n");
                goto card_err;
index 255e784c805bb6419b7679a956ae6e3ef246aa95..0f4067bdd4a34419d80f1050508887f87ea46550 100644 (file)
@@ -1187,7 +1187,7 @@ static int aic3x_init(struct snd_soc_device *socdev)
 
        aic3x_add_controls(codec);
        aic3x_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "aic3x: failed to register card\n");
                goto card_err;
index 413623147891437441786077722d3d05db77138d..f3e9e591b52fb90f6cfc4705789bab97b02f5eb8 100644 (file)
@@ -764,7 +764,7 @@ static int twl4030_init(struct snd_soc_device *socdev)
        twl4030_add_controls(codec);
        twl4030_add_widgets(codec);
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "twl4030: failed to register card\n");
                goto card_err;
index 91f333cdc7cfbb7d003743436455b4ca85cc4361..58de749185e6bcc530e3ff8c47dbe0bae8f72bcc 100644 (file)
@@ -578,7 +578,7 @@ static int uda134x_soc_probe(struct platform_device *pdev)
                goto pcm_err;
        }
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "UDA134X: failed to register card\n");
                goto card_err;
index 330877c7069915ac0a74b657e33a8aaa986e328b..42491650593f6f59e8f272e0a3b8285e410367a2 100644 (file)
@@ -677,7 +677,7 @@ static int uda1380_init(struct snd_soc_device *socdev, int dac_clk)
        /* uda1380 init */
        uda1380_add_controls(codec);
        uda1380_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                pr_err("uda1380: failed to register card\n");
                goto card_err;
index 173b66c0c766c35009c5247cd10576f1cf03c842..126c70f749d16a8ce80f5781d0baa46f0eb74379 100644 (file)
@@ -658,7 +658,7 @@ static int wm8510_init(struct snd_soc_device *socdev)
        wm8510_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
        wm8510_add_controls(codec);
        wm8510_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8510: failed to register card\n");
                goto card_err;
index 220d4b68904a504eacf6a095d9097f69cfcd70ef..572a31de3219b892c786de597fd1e1279e55e2fe 100644 (file)
@@ -869,7 +869,7 @@ static int wm8580_init(struct snd_soc_device *socdev)
        wm8580_add_controls(codec);
        wm8580_add_widgets(codec);
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8580: failed to register card\n");
                goto card_err;
index 71949bd320d3f216a0864cb0fdb3b2afb4b4d3c2..28f12c6a6ac88728462b36a7f2dc24a092a5a6be 100644 (file)
@@ -332,7 +332,7 @@ static int wm8728_init(struct snd_soc_device *socdev)
 
        wm8728_add_controls(codec);
        wm8728_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8728: failed to register card\n");
                goto card_err;
index c0f277053bb235c5faa71eef35c145c9931d17d5..403dea13b5d9c288bb8063d9f2baec6a6396a64d 100644 (file)
@@ -545,7 +545,7 @@ static int wm8731_init(struct snd_soc_device *socdev)
 
        wm8731_add_controls(codec);
        wm8731_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8731: failed to register card\n");
                goto card_err;
index 860a1d56830aa93e864b577f89e2a54e724c2562..979446f5c983eb5e578afdebf731e311d781444d 100644 (file)
@@ -818,7 +818,7 @@ static int wm8750_init(struct snd_soc_device *socdev)
 
        wm8750_add_controls(codec);
        wm8750_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8750: failed to register card\n");
                goto card_err;
index 5e4cd3bb824ae711b7dc6bc4b1e4193a1976002c..96c0453fffb36f1fc9b74bc4c9d2d73505ba2a2d 100644 (file)
@@ -1605,7 +1605,7 @@ static int wm8753_init(struct snd_soc_device *socdev)
 
        wm8753_add_controls(codec);
        wm8753_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8753: failed to register card\n");
                goto card_err;
index d1326be91c8bbf0fe0c0c5a62a77c0ff92367826..29cd83991c5ba68231aea62a8ccbcd1b89c5398f 100644 (file)
@@ -1365,7 +1365,7 @@ static int wm8900_init(struct snd_soc_device *socdev)
        wm8900_add_controls(codec);
        wm8900_add_widgets(codec);
 
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                dev_err(&i2c_client->dev, "Failed to register card\n");
                goto card_err;
index efbe8927b7d273eea2a028efb412927e7f9024a5..393a4c19882339aef180e2ebaa1b240d433aab1e 100644 (file)
@@ -1648,7 +1648,7 @@ static int wm8903_init(struct snd_soc_device *socdev)
 
        wm8903_add_controls(codec);
        wm8903_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                dev_err(&i2c->dev, "wm8903: failed to register card\n");
                goto card_err;
index 26edcc9d6e87fab47b88653cb73f24e7c057e306..53e6937e9ba1a77a13709432f8c5068d53c85f29 100644 (file)
@@ -747,7 +747,7 @@ static int wm8971_init(struct snd_soc_device *socdev)
 
        wm8971_add_controls(codec);
        wm8971_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8971: failed to register card\n");
                goto card_err;
index 13926516d16e16a3f3a84391843c9317d61b6739..5c5128b6b4538f3dc60f16edcf5f7de39169e16c 100644 (file)
@@ -1462,7 +1462,7 @@ static int wm8990_init(struct snd_soc_device *socdev)
 
        wm8990_add_controls(codec);
        wm8990_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm8990: failed to register card\n");
                goto card_err;
index 40f14061fb72cc2273d42c6987f3212aca1cccfb..af83d629078a47f2dbaac75d6d47036086b57ce1 100644 (file)
@@ -700,7 +700,7 @@ static int wm9712_soc_probe(struct platform_device *pdev)
        wm9712_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
        wm9712_add_controls(codec);
        wm9712_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0) {
                printk(KERN_ERR "wm9712: failed to register card\n");
                goto reset_err;
index 9dad0bffcb0589d993c56b742ad582a59b46ffcd..49962a88770d2058efeffb142ecfbba4dcc88966 100644 (file)
@@ -1247,7 +1247,7 @@ static int wm9713_soc_probe(struct platform_device *pdev)
 
        wm9713_add_controls(codec);
        wm9713_add_widgets(codec);
-       ret = snd_soc_register_card(socdev);
+       ret = snd_soc_init_card(socdev);
        if (ret < 0)
                goto reset_err;
        return 0;
index 13b4aaff0e9cdb672b476fdb27bb596261572966..0448708245e7f5842a4303daa9fe527b5b3ac057 100644 (file)
@@ -1233,7 +1233,7 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid)
 EXPORT_SYMBOL_GPL(snd_soc_new_pcms);
 
 /**
- * snd_soc_register_card - register sound card
+ * snd_soc_init_card - register sound card
  * @socdev: the SoC audio device
  *
  * Register a SoC sound card. Also registers an AC97 device if the
@@ -1241,7 +1241,7 @@ EXPORT_SYMBOL_GPL(snd_soc_new_pcms);
  *
  * Returns 0 for success, else error.
  */
-int snd_soc_register_card(struct snd_soc_device *socdev)
+int snd_soc_init_card(struct snd_soc_device *socdev)
 {
        struct snd_soc_codec *codec = socdev->codec;
        struct snd_soc_card *card = socdev->card;
@@ -1298,7 +1298,7 @@ int snd_soc_register_card(struct snd_soc_device *socdev)
 out:
        return ret;
 }
-EXPORT_SYMBOL_GPL(snd_soc_register_card);
+EXPORT_SYMBOL_GPL(snd_soc_init_card);
 
 /**
  * snd_soc_free_pcms - free sound card and pcms