aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-29 08:23:55 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-14 02:13:31 -0500
commit06b45f00a46621e0766e37a02a9676b9143261a2 (patch)
tree51b808f985a4eac75adc2208dd31016acd43ac29
parent874b8d422e26e21dd432657e25f679c75440c1bc (diff)
ALSA: firewire: Convert to snd_card_new() with a device pointer
Also remove superfluous snd_card_set_dev() calls. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/firewire/dice.c4
-rw-r--r--sound/firewire/isight.c4
-rw-r--r--sound/firewire/scs1x.c4
-rw-r--r--sound/firewire/speakers.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sound/firewire/dice.c b/sound/firewire/dice.c
index c0aa64941cee..0c3948630cf7 100644
--- a/sound/firewire/dice.c
+++ b/sound/firewire/dice.c
@@ -1326,10 +1326,10 @@ static int dice_probe(struct fw_unit *unit, const struct ieee1394_device_id *id)
1326 if (err < 0) 1326 if (err < 0)
1327 return err; 1327 return err;
1328 1328
1329 err = snd_card_create(-1, NULL, THIS_MODULE, sizeof(*dice), &card); 1329 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE,
1330 sizeof(*dice), &card);
1330 if (err < 0) 1331 if (err < 0)
1331 return err; 1332 return err;
1332 snd_card_set_dev(card, &unit->device);
1333 1333
1334 dice = card->private_data; 1334 dice = card->private_data;
1335 dice->card = card; 1335 dice->card = card;
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c
index fd42e6b315e6..7ac94439e758 100644
--- a/sound/firewire/isight.c
+++ b/sound/firewire/isight.c
@@ -631,10 +631,10 @@ static int isight_probe(struct fw_unit *unit,
631 struct isight *isight; 631 struct isight *isight;
632 int err; 632 int err;
633 633
634 err = snd_card_create(-1, NULL, THIS_MODULE, sizeof(*isight), &card); 634 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE,
635 sizeof(*isight), &card);
635 if (err < 0) 636 if (err < 0)
636 return err; 637 return err;
637 snd_card_set_dev(card, &unit->device);
638 638
639 isight = card->private_data; 639 isight = card->private_data;
640 isight->card = card; 640 isight->card = card;
diff --git a/sound/firewire/scs1x.c b/sound/firewire/scs1x.c
index 858023cf4298..2dba848a781f 100644
--- a/sound/firewire/scs1x.c
+++ b/sound/firewire/scs1x.c
@@ -391,10 +391,10 @@ static int scs_probe(struct fw_unit *unit, const struct ieee1394_device_id *id)
391 struct scs *scs; 391 struct scs *scs;
392 int err; 392 int err;
393 393
394 err = snd_card_create(-16, NULL, THIS_MODULE, sizeof(*scs), &card); 394 err = snd_card_new(&unit->device, -16, NULL, THIS_MODULE,
395 sizeof(*scs), &card);
395 if (err < 0) 396 if (err < 0)
396 return err; 397 return err;
397 snd_card_set_dev(card, &unit->device);
398 398
399 scs = card->private_data; 399 scs = card->private_data;
400 scs->card = card; 400 scs->card = card;
diff --git a/sound/firewire/speakers.c b/sound/firewire/speakers.c
index cc8bc3a51bc1..9f7ef219b109 100644
--- a/sound/firewire/speakers.c
+++ b/sound/firewire/speakers.c
@@ -668,10 +668,10 @@ static int fwspk_probe(struct fw_unit *unit,
668 u32 firmware; 668 u32 firmware;
669 int err; 669 int err;
670 670
671 err = snd_card_create(-1, NULL, THIS_MODULE, sizeof(*fwspk), &card); 671 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE,
672 sizeof(*fwspk), &card);
672 if (err < 0) 673 if (err < 0)
673 return err; 674 return err;
674 snd_card_set_dev(card, &unit->device);
675 675
676 fwspk = card->private_data; 676 fwspk = card->private_data;
677 fwspk->card = card; 677 fwspk->card = card;