ymfpci.c (7e66eaf14e19c032433be7c4df3c892fa2a5282f) | ymfpci.c (dba8b46992c55946d3b092934f581a343403118f) |
---|---|
1/* 2 * The driver for the Yamaha's DS1/DS1E cards 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 --- 291 unchanged lines hidden (view full) --- 300 } 301 if ((err = snd_ymfpci_timer(chip, 0)) < 0) { 302 snd_card_free(card); 303 return err; 304 } 305 if (chip->mpu_res) { 306 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_YMFPCI, 307 mpu_port[dev], | 1/* 2 * The driver for the Yamaha's DS1/DS1E cards 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 --- 291 unchanged lines hidden (view full) --- 300 } 301 if ((err = snd_ymfpci_timer(chip, 0)) < 0) { 302 snd_card_free(card); 303 return err; 304 } 305 if (chip->mpu_res) { 306 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_YMFPCI, 307 mpu_port[dev], |
308 MPU401_INFO_INTEGRATED, 309 pci->irq, 0, &chip->rawmidi)) < 0) { | 308 MPU401_INFO_INTEGRATED | 309 MPU401_INFO_IRQ_HOOK, 310 -1, &chip->rawmidi)) < 0) { |
310 printk(KERN_WARNING "ymfpci: cannot initialize MPU401 at 0x%lx, skipping...\n", mpu_port[dev]); 311 legacy_ctrl &= ~YMFPCI_LEGACY_MIEN; /* disable MPU401 irq */ 312 pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl); 313 } 314 } 315 if (chip->fm_res) { 316 if ((err = snd_opl3_create(card, 317 fm_port[dev], --- 52 unchanged lines hidden --- | 311 printk(KERN_WARNING "ymfpci: cannot initialize MPU401 at 0x%lx, skipping...\n", mpu_port[dev]); 312 legacy_ctrl &= ~YMFPCI_LEGACY_MIEN; /* disable MPU401 irq */ 313 pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl); 314 } 315 } 316 if (chip->fm_res) { 317 if ((err = snd_opl3_create(card, 318 fm_port[dev], --- 52 unchanged lines hidden --- |