Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120265
b: refs/heads/master
c: 968a602
h: refs/heads/master
i:
  120263: 232700b
v: v3
  • Loading branch information
Mark Brown committed Dec 1, 2008
1 parent 61c7edb commit 3ca3b62
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 682d5874f3d654b5d13d9b8dd56b9e05cfadd01b
refs/heads/master: 968a6025aa9f909d487988efb542217a126023a0
2 changes: 1 addition & 1 deletion trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ad1980.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ad73311.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ak4535.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/pcm3008.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/ssm2602.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/tlv320aic23.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/tlv320aic26.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/tlv320aic3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/uda134x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/uda1380.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8510.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8580.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8728.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8750.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8753.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8900.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8971.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm8990.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/codecs/wm9713.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1233,15 +1233,15 @@ 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
* codec is AC97 for ad hoc devices.
*
* 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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ca3b62

Please sign in to comment.