[ALSA] Change an arugment of snd_mpu401_uart_new() to bit flags
Change the 5th argument of snd_mpu401_uart_new() to bit flags instead of a boolean. The argument takes bits that consist of MPU401_INFO_XXX flags. The callers that used the value 1 there are replaced with MPU401_INFO_INTEGRATED. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Jaroslav Kysela

parent
140432fd2f
commit
302e4c2f9e
@@ -2981,7 +2981,9 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
|
||||
|
||||
if (iomidi > 0) {
|
||||
if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI,
|
||||
iomidi, integrated_midi,
|
||||
iomidi,
|
||||
(integrated_midi ?
|
||||
MPU401_INFO_INTEGRATED : 0),
|
||||
cm->irq, 0, &cm->rmidi)) < 0) {
|
||||
printk(KERN_ERR "cmipci: no UART401 device at 0x%lx\n", iomidi);
|
||||
}
|
||||
|
Reference in New Issue
Block a user