diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /drivers/sound/sound_calls.h | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'drivers/sound/sound_calls.h')
-rw-r--r-- | drivers/sound/sound_calls.h | 58 |
1 files changed, 25 insertions, 33 deletions
diff --git a/drivers/sound/sound_calls.h b/drivers/sound/sound_calls.h index 829cfcf91..aed677c89 100644 --- a/drivers/sound/sound_calls.h +++ b/drivers/sound/sound_calls.h @@ -22,7 +22,7 @@ int DMAbuf_space_in_queue (int dev); int DMAbuf_activate_recording (int dev, struct dma_buffparms *dmap); int DMAbuf_get_buffer_pointer (int dev, struct dma_buffparms *dmap, int direction); void DMAbuf_launch_output(int dev, struct dma_buffparms *dmap); -int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, poll_table * wait); +unsigned int DMAbuf_poll(struct file *file, int dev, poll_table *wait); void DMAbuf_start_devices(unsigned int devmask); void DMAbuf_reset (int dev); int DMAbuf_sync (int dev); @@ -31,15 +31,13 @@ int DMAbuf_sync (int dev); * System calls for /dev/dsp and /dev/audio (audio.c) */ -int audio_read (int dev, struct fileinfo *file, char *buf, int count); -int audio_write (int dev, struct fileinfo *file, const char *buf, int count); -int audio_open (int dev, struct fileinfo *file); -void audio_release (int dev, struct fileinfo *file); -int audio_ioctl (int dev, struct fileinfo *file, +int audio_read (int dev, struct file *file, char *buf, int count); +int audio_write (int dev, struct file *file, const char *buf, int count); +int audio_open (int dev, struct file *file); +void audio_release (int dev, struct file *file); +int audio_ioctl (int dev, struct file *file, unsigned int cmd, caddr_t arg); void audio_init_devices (void); - -int audio_select(int dev, struct fileinfo *file, int sel_type, poll_table * wait); void reorganize_buffers (int dev, struct dma_buffparms *dmap, int recording); int dma_ioctl (int dev, unsigned int cmd, caddr_t arg); @@ -47,15 +45,15 @@ int dma_ioctl (int dev, unsigned int cmd, caddr_t arg); * System calls for the /dev/sequencer */ -int sequencer_read (int dev, struct fileinfo *file, char *buf, int count); -int sequencer_write (int dev, struct fileinfo *file, const char *buf, int count); -int sequencer_open (int dev, struct fileinfo *file); -void sequencer_release (int dev, struct fileinfo *file); -int sequencer_ioctl (int dev, struct fileinfo *file, - unsigned int cmd, caddr_t arg); -int sequencer_select(int dev, struct fileinfo *file, int sel_type, poll_table * wait); +int sequencer_read (int dev, struct file *file, char *buf, int count); +int sequencer_write (int dev, struct file *file, const char *buf, int count); +int sequencer_open (int dev, struct file *file); +void sequencer_release (int dev, struct file *file); +int sequencer_ioctl (int dev, struct file *file, unsigned int cmd, caddr_t arg); +unsigned int sequencer_poll(int dev, struct file *file, poll_table * wait); void sequencer_init (void); +void sequencer_unload (void); void sequencer_timer(unsigned long dummy); int note_to_freq(int note_num); unsigned long compute_finetune(unsigned long base_freq, int bend, int range, @@ -67,13 +65,13 @@ void seq_copy_to_input (unsigned char *event, int len); * System calls for the /dev/midi */ -int MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count); -int MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count); -int MIDIbuf_open (int dev, struct fileinfo *file); -void MIDIbuf_release (int dev, struct fileinfo *file); -int MIDIbuf_ioctl (int dev, struct fileinfo *file, - unsigned int cmd, caddr_t arg); -int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, poll_table * wait); +int MIDIbuf_read (int dev, struct file *file, char *buf, int count); +int MIDIbuf_write (int dev, struct file *file, const char *buf, int count); +int MIDIbuf_open (int dev, struct file *file); +void MIDIbuf_release (int dev, struct file *file); +int MIDIbuf_ioctl (int dev, struct file *file, unsigned int cmd, caddr_t arg); +unsigned int MIDIbuf_poll(int dev, struct file *file, poll_table * wait); +int MIDIbuf_avail(int dev); void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); void MIDIbuf_init(void); @@ -84,9 +82,6 @@ void MIDIbuf_init(void); */ /* From soundcard.c */ -#if !defined(__bsdi__) && !defined(__NjetBSD__) -void tenmicrosec(int *osp); -#endif void request_sound_timer (int count); void sound_stop_timer(void); int snd_set_irq_handler (int interrupt_level, void(*iproc)(int, void*, struct pt_regs *), char *name, int *osp); @@ -98,14 +93,6 @@ void conf_printf2(char *name, int base, int irq, int dma, int dma2); int ioctl_in(caddr_t arg); int ioctl_out(caddr_t arg, int result); -/* From sound_switch.c */ -int sound_read_sw (int dev, struct fileinfo *file, char *buf, int count); -int sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count); -int sound_open_sw (int dev, struct fileinfo *file); -void sound_release_sw (int dev, struct fileinfo *file); -int sound_ioctl_sw (int dev, struct fileinfo *file, - unsigned int cmd, caddr_t arg); - /* From opl3.c */ int opl3_detect (int ioaddr, int *osp); int opl3_init(int ioaddr, int *osp); @@ -286,3 +273,8 @@ void attach_cs4232_mpu (struct address_info *hw_config); void attach_maui(struct address_info * hw_config); int probe_maui(struct address_info *hw_config); +/* From v_midi.c */ +void attach_v_midi (struct address_info *hw_config); +int probe_v_midi (struct address_info *hw_config); +void unload_v_midi (struct address_info *hw_config); + |