Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 20 of 20) sorted by relevance

/sound/core/seq/oss/
Dseq_oss_init.c55 static int create_port(struct seq_oss_devinfo *dp);
56 static int delete_port(struct seq_oss_devinfo *dp);
57 static int alloc_seq_queue(struct seq_oss_devinfo *dp);
188 struct seq_oss_devinfo *dp; in snd_seq_oss_open() local
190 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in snd_seq_oss_open()
191 if (!dp) in snd_seq_oss_open()
194 dp->cseq = system_client; in snd_seq_oss_open()
195 dp->port = -1; in snd_seq_oss_open()
196 dp->queue = -1; in snd_seq_oss_open()
203 dp->index = i; in snd_seq_oss_open()
[all …]
Dseq_oss_ioctl.c31 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_synth_info_user() argument
37 if (snd_seq_oss_synth_make_info(dp, info.device, &info) < 0) in snd_seq_oss_synth_info_user()
44 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_midi_info_user() argument
50 if (snd_seq_oss_midi_make_info(dp, info.device, &info) < 0) in snd_seq_oss_midi_info_user()
57 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_oob_user() argument
65 snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.client, dp->addr.port); in snd_seq_oss_oob_user()
67 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user()
68 snd_seq_oss_dispatch(dp, &tmpev, 0, 0); in snd_seq_oss_oob_user()
74 snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long carg) in snd_seq_oss_ioctl() argument
90 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); in snd_seq_oss_ioctl()
[all …]
Dseq_oss_event.c35 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
36 static int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event…
37 static int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_even…
38 static int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *e…
39 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev…
40 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
41 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd…
42 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn…
43 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,…
44 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int …
[all …]
Dseq_oss_rw.c36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt);
44 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) in snd_seq_oss_read() argument
46 struct seq_oss_readq *readq = dp->readq; in snd_seq_oss_read()
52 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read()
59 !is_nonblock_mode(dp->file_mode) && result == 0) { in snd_seq_oss_read()
96 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument
102 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_write()
118 return snd_seq_oss_synth_load_patch(dp, rec.s.dev, in snd_seq_oss_write()
124 dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write()
140 if (dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write()
[all …]
Dseq_oss_synth.c86 static struct seq_oss_synth *get_synthdev(struct seq_oss_devinfo *dp, int dev);
213 snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_synth_setup() argument
219 dp->max_synthdev = max_synth_devs; in snd_seq_oss_synth_setup()
220 dp->synth_opened = 0; in snd_seq_oss_synth_setup()
221 memset(dp->synths, 0, sizeof(dp->synths)); in snd_seq_oss_synth_setup()
222 for (i = 0; i < dp->max_synthdev; i++) { in snd_seq_oss_synth_setup()
230 info = &dp->synths[i]; in snd_seq_oss_synth_setup()
231 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup()
232 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
233 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup()
[all …]
Dseq_oss_midi.c68 static struct seq_oss_midi *get_mididev(struct seq_oss_devinfo *dp, int dev);
69 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev);
70 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid…
281 snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_setup() argument
283 dp->max_mididev = max_midi_devs; in snd_seq_oss_midi_setup()
290 snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_cleanup() argument
293 for (i = 0; i < dp->max_mididev; i++) in snd_seq_oss_midi_cleanup()
294 snd_seq_oss_midi_close(dp, i); in snd_seq_oss_midi_cleanup()
295 dp->max_mididev = 0; in snd_seq_oss_midi_cleanup()
303 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument
[all …]
Dseq_oss_writeq.c37 snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen) in snd_seq_oss_writeq_new() argument
44 q->dp = dp; in snd_seq_oss_writeq_new()
52 pool.client = dp->cseq; in snd_seq_oss_writeq_new()
56 snd_seq_oss_control(dp, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, &pool); in snd_seq_oss_writeq_new()
84 snd_seq_oss_control(q->dp, SNDRV_SEQ_IOCTL_REMOVE_EVENTS, &reset); in snd_seq_oss_writeq_clear()
96 struct seq_oss_devinfo *dp = q->dp; in snd_seq_oss_writeq_sync() local
99 time = snd_seq_oss_timer_cur_tick(dp->timer); in snd_seq_oss_writeq_sync()
113 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync()
118 snd_seq_kernel_client_enqueue_blocking(dp->cseq, &ev, NULL, 0, 0); in snd_seq_oss_writeq_sync()
153 pool.client = q->dp->cseq; in snd_seq_oss_writeq_get_free_size()
[all …]
Dseq_oss_synth.h33 void snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp);
34 void snd_seq_oss_synth_setup_midi(struct seq_oss_devinfo *dp);
35 void snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp);
37 void snd_seq_oss_synth_reset(struct seq_oss_devinfo *dp, int dev);
38 int snd_seq_oss_synth_load_patch(struct seq_oss_devinfo *dp, int dev, int fmt,
40 struct seq_oss_synthinfo *snd_seq_oss_synth_info(struct seq_oss_devinfo *dp,
42 int snd_seq_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf,
44 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev);
45 int snd_seq_oss_synth_ioctl(struct seq_oss_devinfo *dp, int dev, unsigned int cmd,
47 int snd_seq_oss_synth_raw_event(struct seq_oss_devinfo *dp, int dev,
[all …]
Dseq_oss_midi.h34 void snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp);
35 void snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp);
37 int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode);
38 void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode);
39 int snd_seq_oss_midi_close(struct seq_oss_devinfo *dp, int dev);
40 void snd_seq_oss_midi_reset(struct seq_oss_devinfo *dp, int dev);
41 int snd_seq_oss_midi_putc(struct seq_oss_devinfo *dp, int dev, unsigned char c,
44 int snd_seq_oss_midi_filemode(struct seq_oss_devinfo *dp, int dev);
45 int snd_seq_oss_midi_make_info(struct seq_oss_devinfo *dp, int dev, struct midi_info *inf);
46 void snd_seq_oss_midi_get_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_addr *addr);
Dseq_oss_device.h123 void snd_seq_oss_release(struct seq_oss_devinfo *dp);
124 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg);
126 int snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *o…
127 unsigned int snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait);
129 void snd_seq_oss_reset(struct seq_oss_devinfo *dp);
132 void snd_seq_oss_process_queue(struct seq_oss_devinfo *dp, abstime_t time);
148 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument
150 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch()
155 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument
157 return snd_seq_kernel_client_ctl(dp->cseq, type, arg); in snd_seq_oss_control()
[all …]
Dseq_oss_timer.c38 static int send_timer_event(struct seq_oss_devinfo *dp, int type, int value);
46 snd_seq_oss_timer_new(struct seq_oss_devinfo *dp) in snd_seq_oss_timer_new() argument
54 rec->dp = dp; in snd_seq_oss_timer_new()
140 send_timer_event(struct seq_oss_devinfo *dp, int type, int value) in send_timer_event() argument
146 ev.source.client = dp->cseq; in send_timer_event()
150 ev.queue = dp->queue; in send_timer_event()
151 ev.data.queue.queue = dp->queue; in send_timer_event()
153 return snd_seq_kernel_client_dispatch(dp->cseq, &ev, 1, 0); in send_timer_event()
162 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start() local
169 tmprec.queue = dp->queue; in snd_seq_oss_timer_start()
[all …]
Dseq_oss.c146 struct seq_oss_devinfo *dp; in odev_release() local
148 if ((dp = file->private_data) == NULL) in odev_release()
152 snd_seq_oss_release(dp); in odev_release()
161 struct seq_oss_devinfo *dp; in odev_read() local
162 dp = file->private_data; in odev_read()
163 if (snd_BUG_ON(!dp)) in odev_read()
165 return snd_seq_oss_read(dp, buf, count); in odev_read()
172 struct seq_oss_devinfo *dp; in odev_write() local
173 dp = file->private_data; in odev_write()
174 if (snd_BUG_ON(!dp)) in odev_write()
[all …]
Dseq_oss_timer.h31 struct seq_oss_devinfo *dp; member
40 struct seq_oss_timer *snd_seq_oss_timer_new(struct seq_oss_devinfo *dp);
41 void snd_seq_oss_timer_delete(struct seq_oss_timer *dp);
Dseq_oss_writeq.h29 struct seq_oss_devinfo *dp; member
41 struct seq_oss_writeq *snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen);
Dseq_oss_readq.h42 struct seq_oss_readq *snd_seq_oss_readq_new(struct seq_oss_devinfo *dp, int maxlen);
Dseq_oss_event.h107 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
Dseq_oss_readq.c46 snd_seq_oss_readq_new(struct seq_oss_devinfo *dp, int maxlen) in snd_seq_oss_readq_new() argument
/sound/
Dsound_firmware.c14 char *dp; in do_mod_firmware_load() local
29 dp = vmalloc(l); in do_mod_firmware_load()
30 if (dp == NULL) in do_mod_firmware_load()
36 if (kernel_read(filp, 0, dp, l) != l) in do_mod_firmware_load()
39 vfree(dp); in do_mod_firmware_load()
44 *fp = dp; in do_mod_firmware_load()
/sound/core/seq/
Dseq_ports.h124 struct snd_seq_client *d, struct snd_seq_client_port *dp,
130 struct snd_seq_client *d, struct snd_seq_client_port *dp,
/sound/pci/hda/
Dpatch_hdmi.c186 struct dp_audio_infoframe dp; member
1091 struct dp_audio_infoframe *dp_ai = &ai.dp; in hdmi_pin_setup_infoframe()