#include "seq_oss_synth.h"
#include "seq_oss_midi.h"
#include "../seq_lock.h"
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/nospec.h>
#define SNDRV_SEQ_OSS_MAX_SYNTH_NAME …
#define MAX_SYSEX_BUFLEN …
struct seq_oss_synth_sysex { … };
struct seq_oss_synth { … };
static int max_synth_devs;
static struct seq_oss_synth *synth_devs[SNDRV_SEQ_OSS_MAX_SYNTH_DEVS];
static struct seq_oss_synth midi_synth_dev = …;
static DEFINE_SPINLOCK(register_lock);
static struct seq_oss_synth *get_synthdev(struct seq_oss_devinfo *dp, int dev);
static void reset_channels(struct seq_oss_synthinfo *info);
void __init
snd_seq_oss_synth_init(void)
{ … }
int
snd_seq_oss_synth_probe(struct device *_dev)
{ … }
int
snd_seq_oss_synth_remove(struct device *_dev)
{ … }
static struct seq_oss_synth *
get_sdev(int dev)
{ … }
void
snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp)
{ … }
void
snd_seq_oss_synth_setup_midi(struct seq_oss_devinfo *dp)
{ … }
void
snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp)
{ … }
static struct seq_oss_synthinfo *
get_synthinfo_nospec(struct seq_oss_devinfo *dp, int dev)
{ … }
static struct seq_oss_synth *
get_synthdev(struct seq_oss_devinfo *dp, int dev)
{ … }
static void
reset_channels(struct seq_oss_synthinfo *info)
{ … }
void
snd_seq_oss_synth_reset(struct seq_oss_devinfo *dp, int dev)
{ … }
int
snd_seq_oss_synth_load_patch(struct seq_oss_devinfo *dp, int dev, int fmt,
const char __user *buf, int p, int c)
{ … }
struct seq_oss_synthinfo *
snd_seq_oss_synth_info(struct seq_oss_devinfo *dp, int dev)
{ … }
int
snd_seq_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf, struct snd_seq_event *ev)
{ … }
int
snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev)
{ … }
int
snd_seq_oss_synth_ioctl(struct seq_oss_devinfo *dp, int dev, unsigned int cmd, unsigned long addr)
{ … }
int
snd_seq_oss_synth_raw_event(struct seq_oss_devinfo *dp, int dev, unsigned char *data, struct snd_seq_event *ev)
{ … }
int
snd_seq_oss_synth_make_info(struct seq_oss_devinfo *dp, int dev, struct synth_info *inf)
{ … }
#ifdef CONFIG_SND_PROC_FS
void
snd_seq_oss_synth_info_read(struct snd_info_buffer *buf)
{ … }
#endif