sb16.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | sb16.c (dba8b46992c55946d3b092934f581a343403118f) |
---|---|
1/* 2 * Driver for SoundBlaster 16/AWE32/AWE64 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 --- 380 unchanged lines hidden (view full) --- 389 if (xdma8 >= 0) 390 sprintf(card->longname + strlen(card->longname), "%d", xdma8); 391 if (xdma16 >= 0) 392 sprintf(card->longname + strlen(card->longname), "%s%d", 393 xdma8 >= 0 ? "&" : "", xdma16); 394 395 if (chip->mpu_port > 0 && chip->mpu_port != SNDRV_AUTO_PORT) { 396 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SB, | 1/* 2 * Driver for SoundBlaster 16/AWE32/AWE64 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 --- 380 unchanged lines hidden (view full) --- 389 if (xdma8 >= 0) 390 sprintf(card->longname + strlen(card->longname), "%d", xdma8); 391 if (xdma16 >= 0) 392 sprintf(card->longname + strlen(card->longname), "%s%d", 393 xdma8 >= 0 ? "&" : "", xdma16); 394 395 if (chip->mpu_port > 0 && chip->mpu_port != SNDRV_AUTO_PORT) { 396 if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SB, |
397 chip->mpu_port, 0, 398 xirq, 0, &chip->rmidi)) < 0) | 397 chip->mpu_port, 398 MPU401_INFO_IRQ_HOOK, -1, 399 &chip->rmidi)) < 0) |
399 return err; 400 chip->rmidi_callback = snd_mpu401_uart_interrupt; 401 } 402 403#ifdef SNDRV_SBAWE_EMU8000 404 if (awe_port[dev] == SNDRV_AUTO_PORT) 405 awe_port[dev] = 0; /* disable */ 406#endif --- 292 unchanged lines hidden --- | 400 return err; 401 chip->rmidi_callback = snd_mpu401_uart_interrupt; 402 } 403 404#ifdef SNDRV_SBAWE_EMU8000 405 if (awe_port[dev] == SNDRV_AUTO_PORT) 406 awe_port[dev] = 0; /* disable */ 407#endif --- 292 unchanged lines hidden --- |