43 |
#endif /* CS4231 */ |
#endif /* CS4231 */ |
44 |
#include <sound/mpu401.h> |
#include <sound/mpu401.h> |
45 |
#include <sound/opl3.h> |
#include <sound/opl3.h> |
|
#ifdef USE_OPL4 |
|
46 |
#ifndef OPTi93X |
#ifndef OPTi93X |
47 |
#include "opl4.h" /* <sound/opl4.h> */ |
#include <sound/opl4.h> |
|
#endif |
|
48 |
#endif |
#endif |
49 |
#define SNDRV_LEGACY_FIND_FREE_IRQ |
#define SNDRV_LEGACY_FIND_FREE_IRQ |
50 |
#define SNDRV_LEGACY_FIND_FREE_DMA |
#define SNDRV_LEGACY_FIND_FREE_DMA |
2103 |
|
|
2104 |
if (chip->fm_port > 0) { |
if (chip->fm_port > 0) { |
2105 |
opl3_t *opl3 = NULL; |
opl3_t *opl3 = NULL; |
|
#ifdef USE_OPL4 |
|
2106 |
#ifndef OPTi93X |
#ifndef OPTi93X |
2107 |
if (chip->hardware == OPTi9XX_HW_82C928 || |
if (chip->hardware == OPTi9XX_HW_82C928 || |
2108 |
chip->hardware == OPTi9XX_HW_82C929 || |
chip->hardware == OPTi9XX_HW_82C929 || |
2121 |
} |
} |
2122 |
} |
} |
2123 |
#endif /* !OPTi93X */ |
#endif /* !OPTi93X */ |
|
#endif |
|
2124 |
if (!opl3 && snd_opl3_create(card, |
if (!opl3 && snd_opl3_create(card, |
2125 |
chip->fm_port, |
chip->fm_port, |
2126 |
chip->fm_port + 2, |
chip->fm_port + 2, |