mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ALSA: Convert to snd_card_create() in other sound/*
Convert from snd_card_new() to the new snd_card_create() function in other sound subdirectories. Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
e58de7baf7
commit
bd7dd77c2a
31 changed files with 111 additions and 103 deletions
|
|
@ -636,9 +636,10 @@ au1000_init(void)
|
|||
struct snd_card *card;
|
||||
struct snd_au1000 *au1000;
|
||||
|
||||
card = snd_card_new(-1, "AC97", THIS_MODULE, sizeof(struct snd_au1000));
|
||||
if (card == NULL)
|
||||
return -ENOMEM;
|
||||
err = snd_card_create(-1, "AC97", THIS_MODULE,
|
||||
sizeof(struct snd_au1000), &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
card->private_free = snd_au1000_free;
|
||||
au1000 = card->private_data;
|
||||
|
|
|
|||
|
|
@ -878,9 +878,9 @@ static int __devinit hal2_probe(struct platform_device *pdev)
|
|||
struct snd_hal2 *chip;
|
||||
int err;
|
||||
|
||||
card = snd_card_new(index, id, THIS_MODULE, 0);
|
||||
if (card == NULL)
|
||||
return -ENOMEM;
|
||||
err = snd_card_create(index, id, THIS_MODULE, 0, &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
err = hal2_create(card, &chip);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
|
|
@ -936,9 +936,9 @@ static int __devinit snd_sgio2audio_probe(struct platform_device *pdev)
|
|||
struct snd_sgio2audio *chip;
|
||||
int err;
|
||||
|
||||
card = snd_card_new(index, id, THIS_MODULE, 0);
|
||||
if (card == NULL)
|
||||
return -ENOMEM;
|
||||
err = snd_card_create(index, id, THIS_MODULE, 0, &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
err = snd_sgio2audio_create(card, &chip);
|
||||
if (err < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue