Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / sound / core / seq / oss / seq_oss_synth.h
blob07bc0e2cfb8238fa43dfea74bb532e4c54d9aa6b
1 /*
2 * OSS compatible sequencer driver
4 * synth device information
6 * Copyright (C) 1998,99 Takashi Iwai <tiwai@suse.de>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __SEQ_OSS_SYNTH_H
24 #define __SEQ_OSS_SYNTH_H
26 #include "seq_oss_device.h"
27 #include <sound/seq_oss_legacy.h>
28 #include <sound/seq_device.h>
30 typedef struct seq_oss_synth_t seq_oss_synth_t;
32 void snd_seq_oss_synth_init(void);
33 int snd_seq_oss_synth_register(snd_seq_device_t *dev);
34 int snd_seq_oss_synth_unregister(snd_seq_device_t *dev);
35 void snd_seq_oss_synth_setup(seq_oss_devinfo_t *dp);
36 void snd_seq_oss_synth_setup_midi(seq_oss_devinfo_t *dp);
37 void snd_seq_oss_synth_cleanup(seq_oss_devinfo_t *dp);
39 void snd_seq_oss_synth_reset(seq_oss_devinfo_t *dp, int dev);
40 int snd_seq_oss_synth_load_patch(seq_oss_devinfo_t *dp, int dev, int fmt, const char __user *buf, int p, int c);
41 int snd_seq_oss_synth_is_valid(seq_oss_devinfo_t *dp, int dev);
42 int snd_seq_oss_synth_sysex(seq_oss_devinfo_t *dp, int dev, unsigned char *buf, snd_seq_event_t *ev);
43 int snd_seq_oss_synth_addr(seq_oss_devinfo_t *dp, int dev, snd_seq_event_t *ev);
44 int snd_seq_oss_synth_ioctl(seq_oss_devinfo_t *dp, int dev, unsigned int cmd, unsigned long addr);
45 int snd_seq_oss_synth_raw_event(seq_oss_devinfo_t *dp, int dev, unsigned char *data, snd_seq_event_t *ev);
47 int snd_seq_oss_synth_make_info(seq_oss_devinfo_t *dp, int dev, struct synth_info *inf);
49 #endif