20 |
#include "opl4_local.h" |
#include "opl4_local.h" |
21 |
#include <sound/initval.h> |
#include <sound/initval.h> |
22 |
#include <linux/ioport.h> |
#include <linux/ioport.h> |
23 |
|
#include <linux/init.h> |
24 |
#include <asm/io.h> |
#include <asm/io.h> |
25 |
|
|
26 |
MODULE_AUTHOR("Clemens Ladisch <clemens@ladisch.de>"); |
MODULE_AUTHOR("Clemens Ladisch <clemens@ladisch.de>"); |
138 |
return 0; |
return 0; |
139 |
} |
} |
140 |
|
|
141 |
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) |
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) |
142 |
static void snd_opl4_seq_dev_free(snd_seq_device_t *seq_dev) |
static void snd_opl4_seq_dev_free(snd_seq_device_t *seq_dev) |
143 |
{ |
{ |
144 |
opl4_t *opl4 = snd_magic_cast(opl4_t, seq_dev->private_data, return); |
opl4_t *opl4 = snd_magic_cast(opl4_t, seq_dev->private_data, return); |
244 |
snd_opl4_create_proc(opl4); |
snd_opl4_create_proc(opl4); |
245 |
#endif |
#endif |
246 |
|
|
247 |
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) |
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) |
248 |
opl4->seq_client = -1; |
opl4->seq_client = -1; |
249 |
if (opl4->hardware < OPL3_HW_OPL4_ML) |
if (opl4->hardware < OPL3_HW_OPL4_ML) |
250 |
snd_opl4_create_seq_dev(opl4, seq_device); |
snd_opl4_create_seq_dev(opl4, seq_device); |