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 <tiwai@suse.de>
Tento commit je obsažen v:
Takashi Iwai
2008-12-28 16:45:02 +01:00
odevzdal Takashi Iwai
rodič e58de7baf7
revize bd7dd77c2a
31 změnil soubory, kde provedl 111 přidání a 103 odebrání

Zobrazit soubor

@@ -58,9 +58,9 @@ static int __init snd_pmac_probe(struct platform_device *devptr)
char *name_ext;
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;
if ((err = snd_pmac_new(card, &chip)) < 0)
goto __error;

Zobrazit soubor

@@ -969,11 +969,9 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev)
}
/* create card instance */
the_card.card = snd_card_new(index, id, THIS_MODULE, 0);
if (!the_card.card) {
ret = -ENXIO;
ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card);
if (ret < 0)
goto clean_irq;
}
strcpy(the_card.card->driver, "PS3");
strcpy(the_card.card->shortname, "PS3");