aica.c (7fbb8759eff9a348efa5f352ffaa51c364837c4b) aica.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2* This code is licenced under
3* the General Public Licence
4* version 2
5*
6* Copyright Adrian McMenamin 2005, 2006, 2007
7* <adrian@mcmen.demon.co.uk>
8* Requires firmware (BSD licenced) available from:

--- 595 unchanged lines hidden (view full) ---

604
605static int __devinit snd_aica_probe(struct platform_device *devptr)
606{
607 int err;
608 struct snd_card_aica *dreamcastcard;
609 dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL);
610 if (unlikely(!dreamcastcard))
611 return -ENOMEM;
1/*
2* This code is licenced under
3* the General Public Licence
4* version 2
5*
6* Copyright Adrian McMenamin 2005, 2006, 2007
7* <adrian@mcmen.demon.co.uk>
8* Requires firmware (BSD licenced) available from:

--- 595 unchanged lines hidden (view full) ---

604
605static int __devinit snd_aica_probe(struct platform_device *devptr)
606{
607 int err;
608 struct snd_card_aica *dreamcastcard;
609 dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL);
610 if (unlikely(!dreamcastcard))
611 return -ENOMEM;
612 dreamcastcard->card =
613 snd_card_new(index, SND_AICA_DRIVER, THIS_MODULE, 0);
614 if (unlikely(!dreamcastcard->card)) {
612 err = snd_card_create(index, SND_AICA_DRIVER, THIS_MODULE, 0,
613 &dreamcastcard->card);
614 if (unlikely(err < 0)) {
615 kfree(dreamcastcard);
615 kfree(dreamcastcard);
616 return -ENODEV;
616 return err;
617 }
618 strcpy(dreamcastcard->card->driver, "snd_aica");
619 strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER);
620 strcpy(dreamcastcard->card->longname,
621 "Yamaha AICA Super Intelligent Sound Processor for SEGA Dreamcast");
622 /* Prepare to use the queue */
623 INIT_WORK(&(dreamcastcard->spu_dma_work), run_spu_dma);
624 /* Load the PCM 'chip' */

--- 64 unchanged lines hidden ---
617 }
618 strcpy(dreamcastcard->card->driver, "snd_aica");
619 strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER);
620 strcpy(dreamcastcard->card->longname,
621 "Yamaha AICA Super Intelligent Sound Processor for SEGA Dreamcast");
622 /* Prepare to use the queue */
623 INIT_WORK(&(dreamcastcard->spu_dma_work), run_spu_dma);
624 /* Load the PCM 'chip' */

--- 64 unchanged lines hidden ---