opl3sa2.c (020abf03cd659388f94cb328e1e1df0656e0d7ff) | opl3sa2.c (dba8b46992c55946d3b092934f581a343403118f) |
---|---|
1/* 2 * Driver for Yamaha OPL3-SA[2,3] soundcards 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 693 unchanged lines hidden (view full) --- 702 return err; 703 if ((err = snd_opl3_timer_new(opl3, 1, 2)) < 0) 704 return err; 705 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, &chip->synth)) < 0) 706 return err; 707 } 708 if (midi_port[dev] >= 0x300 && midi_port[dev] < 0x340) { 709 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_OPL3SA2, | 1/* 2 * Driver for Yamaha OPL3-SA[2,3] soundcards 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 693 unchanged lines hidden (view full) --- 702 return err; 703 if ((err = snd_opl3_timer_new(opl3, 1, 2)) < 0) 704 return err; 705 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, &chip->synth)) < 0) 706 return err; 707 } 708 if (midi_port[dev] >= 0x300 && midi_port[dev] < 0x340) { 709 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_OPL3SA2, |
710 midi_port[dev], 0, 711 xirq, 0, &chip->rmidi)) < 0) | 710 midi_port[dev], 711 MPU401_INFO_IRQ_HOOK, -1, 712 &chip->rmidi)) < 0) |
712 return err; 713 } 714 sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", 715 card->shortname, chip->port, xirq, xdma1); 716 if (xdma2 >= 0) 717 sprintf(card->longname + strlen(card->longname), "&%d", xdma2); 718 719 return snd_card_register(card); --- 251 unchanged lines hidden --- | 713 return err; 714 } 715 sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", 716 card->shortname, chip->port, xirq, xdma1); 717 if (xdma2 >= 0) 718 sprintf(card->longname + strlen(card->longname), "&%d", xdma2); 719 720 return snd_card_register(card); --- 251 unchanged lines hidden --- |