cs4231.c (d585a021c0b10b0477d6b608c53e1feb8cde0507) | cs4231.c (dba8b46992c55946d3b092934f581a343403118f) |
---|---|
1/* 2 * Generic driver for CS4231 chips 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Originally the CS4232/CS4232A driver, modified for use on CS4231 by 5 * Tugrul Galatali <galatalt@stuy.edu> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 117 unchanged lines hidden (view full) --- 126 if (error < 0) 127 goto out; 128 129 if (mpu_port[n] > 0 && mpu_port[n] != SNDRV_AUTO_PORT) { 130 if (mpu_irq[n] == SNDRV_AUTO_IRQ) 131 mpu_irq[n] = -1; 132 if (snd_mpu401_uart_new(card, 0, MPU401_HW_CS4232, 133 mpu_port[n], 0, mpu_irq[n], | 1/* 2 * Generic driver for CS4231 chips 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Originally the CS4232/CS4232A driver, modified for use on CS4231 by 5 * Tugrul Galatali <galatalt@stuy.edu> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 117 unchanged lines hidden (view full) --- 126 if (error < 0) 127 goto out; 128 129 if (mpu_port[n] > 0 && mpu_port[n] != SNDRV_AUTO_PORT) { 130 if (mpu_irq[n] == SNDRV_AUTO_IRQ) 131 mpu_irq[n] = -1; 132 if (snd_mpu401_uart_new(card, 0, MPU401_HW_CS4232, 133 mpu_port[n], 0, mpu_irq[n], |
134 mpu_irq[n] >= 0 ? IRQF_DISABLED : 0, | |
135 NULL) < 0) 136 dev_warn(dev, "MPU401 not detected\n"); 137 } 138 139 snd_card_set_dev(card, dev); 140 141 error = snd_card_register(card); 142 if (error < 0) --- 63 unchanged lines hidden --- | 134 NULL) < 0) 135 dev_warn(dev, "MPU401 not detected\n"); 136 } 137 138 snd_card_set_dev(card, dev); 139 140 error = snd_card_register(card); 141 if (error < 0) --- 63 unchanged lines hidden --- |