Update of /cvsroot/alsa/alsa-kernel/isa/ad1816a In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5304/isa/ad1816a
Modified Files: ad1816a.c Log Message: Clemens Ladisch <[EMAIL PROTECTED]>: - fix names for MPU-401 ports This moves the initialization of card->shortname before the component creation so that the name for the rawmidi port is "<shortname> MPU-401" instead of "MPU-401 (UART) x-0". Index: ad1816a.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1816a/ad1816a.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- ad1816a.c 21 Jan 2004 18:32:46 -0000 1.17 +++ ad1816a.c 26 Jan 2004 14:27:13 -0000 1.18 @@ -221,6 +221,11 @@ return error; } + strcpy(card->driver, "AD1816A"); + strcpy(card->shortname, "ADI SoundPort AD1816A"); + sprintf(card->longname, "%s, SS at 0x%lx, irq %d, dma %d&%d", + card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); + if ((error = snd_ad1816a_pcm(chip, 0, NULL)) < 0) { snd_card_free(card); return error; @@ -255,11 +260,6 @@ } } - strcpy(card->driver, "AD1816A"); - strcpy(card->shortname, "ADI SoundPort AD1816A"); - sprintf(card->longname, "%s soundcard, SS at 0x%lx, irq %d, dma %d&%d", - card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); - if ((error = snd_card_register(card)) < 0) { snd_card_free(card); return error; ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog