/sound/core/seq/oss/ |
D | seq_oss_init.c | 42 static int create_port(struct seq_oss_devinfo *dp); 43 static int delete_port(struct seq_oss_devinfo *dp); 44 static int alloc_seq_queue(struct seq_oss_devinfo *dp); 174 struct seq_oss_devinfo *dp; in snd_seq_oss_open() local 176 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in snd_seq_oss_open() 177 if (!dp) in snd_seq_oss_open() 180 dp->cseq = system_client; in snd_seq_oss_open() 181 dp->port = -1; in snd_seq_oss_open() 182 dp->queue = -1; in snd_seq_oss_open() 189 dp->index = i; in snd_seq_oss_open() [all …]
|
D | seq_oss_ioctl.c | 18 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_synth_info_user() argument 24 if (snd_seq_oss_synth_make_info(dp, info.device, &info) < 0) in snd_seq_oss_synth_info_user() 31 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_midi_info_user() argument 37 if (snd_seq_oss_midi_make_info(dp, info.device, &info) < 0) in snd_seq_oss_midi_info_user() 44 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_oob_user() argument 52 snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.client, dp->addr.port); in snd_seq_oss_oob_user() 54 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user() 55 snd_seq_oss_dispatch(dp, &tmpev, 0, 0); in snd_seq_oss_oob_user() 61 snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long carg) in snd_seq_oss_ioctl() argument 77 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); in snd_seq_oss_ioctl() [all …]
|
D | seq_oss_event.c | 22 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 23 static int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event… 24 static int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_even… 25 static int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *e… 26 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev… 27 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 28 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd… 29 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn… 30 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,… 31 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int … [all …]
|
D | seq_oss_rw.c | 23 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 31 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) in snd_seq_oss_read() argument 33 struct seq_oss_readq *readq = dp->readq; in snd_seq_oss_read() 39 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read() 46 !is_nonblock_mode(dp->file_mode) && result == 0) { in snd_seq_oss_read() 83 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument 89 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_write() 105 return snd_seq_oss_synth_load_patch(dp, rec.s.dev, in snd_seq_oss_write() 111 dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write() 127 if (dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write() [all …]
|
D | seq_oss_synth.c | 73 static struct seq_oss_synth *get_synthdev(struct seq_oss_devinfo *dp, int dev); 200 snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_synth_setup() argument 206 dp->max_synthdev = max_synth_devs; in snd_seq_oss_synth_setup() 207 dp->synth_opened = 0; in snd_seq_oss_synth_setup() 208 memset(dp->synths, 0, sizeof(dp->synths)); in snd_seq_oss_synth_setup() 209 for (i = 0; i < dp->max_synthdev; i++) { in snd_seq_oss_synth_setup() 217 info = &dp->synths[i]; in snd_seq_oss_synth_setup() 218 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 219 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 220 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() [all …]
|
D | seq_oss_midi.c | 56 static struct seq_oss_midi *get_mididev(struct seq_oss_devinfo *dp, int dev); 57 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev); 58 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid… 273 snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_setup() argument 276 dp->max_mididev = max_midi_devs; in snd_seq_oss_midi_setup() 284 snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_cleanup() argument 287 for (i = 0; i < dp->max_mididev; i++) in snd_seq_oss_midi_cleanup() 288 snd_seq_oss_midi_close(dp, i); in snd_seq_oss_midi_cleanup() 289 dp->max_mididev = 0; in snd_seq_oss_midi_cleanup() 297 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument [all …]
|
D | seq_oss_writeq.c | 25 snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen) in snd_seq_oss_writeq_new() argument 33 q->dp = dp; in snd_seq_oss_writeq_new() 41 pool.client = dp->cseq; in snd_seq_oss_writeq_new() 45 snd_seq_oss_control(dp, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, &pool); in snd_seq_oss_writeq_new() 73 snd_seq_oss_control(q->dp, SNDRV_SEQ_IOCTL_REMOVE_EVENTS, &reset); in snd_seq_oss_writeq_clear() 85 struct seq_oss_devinfo *dp = q->dp; in snd_seq_oss_writeq_sync() local 88 time = snd_seq_oss_timer_cur_tick(dp->timer); in snd_seq_oss_writeq_sync() 102 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync() 107 snd_seq_kernel_client_enqueue(dp->cseq, &ev, NULL, true); in snd_seq_oss_writeq_sync() 142 pool.client = q->dp->cseq; in snd_seq_oss_writeq_get_free_size() [all …]
|
D | seq_oss_device.h | 111 void snd_seq_oss_release(struct seq_oss_devinfo *dp); 112 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg); 114 int snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *o… 115 __poll_t snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait); 117 void snd_seq_oss_reset(struct seq_oss_devinfo *dp); 120 void snd_seq_oss_process_queue(struct seq_oss_devinfo *dp, abstime_t time); 136 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument 138 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch() 143 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument 147 snd_seq_client_ioctl_lock(dp->cseq); in snd_seq_oss_control() [all …]
|
D | seq_oss_synth.h | 20 void snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp); 21 void snd_seq_oss_synth_setup_midi(struct seq_oss_devinfo *dp); 22 void snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp); 24 void snd_seq_oss_synth_reset(struct seq_oss_devinfo *dp, int dev); 25 int snd_seq_oss_synth_load_patch(struct seq_oss_devinfo *dp, int dev, int fmt, 27 struct seq_oss_synthinfo *snd_seq_oss_synth_info(struct seq_oss_devinfo *dp, 29 int snd_seq_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf, 31 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev); 32 int snd_seq_oss_synth_ioctl(struct seq_oss_devinfo *dp, int dev, unsigned int cmd, 34 int snd_seq_oss_synth_raw_event(struct seq_oss_devinfo *dp, int dev, [all …]
|
D | seq_oss_midi.h | 21 void snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp); 22 void snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp); 24 int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode); 25 void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode); 26 int snd_seq_oss_midi_close(struct seq_oss_devinfo *dp, int dev); 27 void snd_seq_oss_midi_reset(struct seq_oss_devinfo *dp, int dev); 28 int snd_seq_oss_midi_putc(struct seq_oss_devinfo *dp, int dev, unsigned char c, 31 int snd_seq_oss_midi_filemode(struct seq_oss_devinfo *dp, int dev); 32 int snd_seq_oss_midi_make_info(struct seq_oss_devinfo *dp, int dev, struct midi_info *inf); 33 void snd_seq_oss_midi_get_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_addr *addr);
|
D | seq_oss_timer.c | 25 static int send_timer_event(struct seq_oss_devinfo *dp, int type, int value); 33 snd_seq_oss_timer_new(struct seq_oss_devinfo *dp) in snd_seq_oss_timer_new() argument 41 rec->dp = dp; in snd_seq_oss_timer_new() 127 send_timer_event(struct seq_oss_devinfo *dp, int type, int value) in send_timer_event() argument 133 ev.source.client = dp->cseq; in send_timer_event() 137 ev.queue = dp->queue; in send_timer_event() 138 ev.data.queue.queue = dp->queue; in send_timer_event() 140 return snd_seq_kernel_client_dispatch(dp->cseq, &ev, 1, 0); in send_timer_event() 149 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start() local 156 tmprec.queue = dp->queue; in snd_seq_oss_timer_start() [all …]
|
D | seq_oss.c | 137 struct seq_oss_devinfo *dp; in odev_release() local 139 dp = file->private_data; in odev_release() 140 if (!dp) in odev_release() 144 snd_seq_oss_release(dp); in odev_release() 153 struct seq_oss_devinfo *dp; in odev_read() local 154 dp = file->private_data; in odev_read() 155 if (snd_BUG_ON(!dp)) in odev_read() 157 return snd_seq_oss_read(dp, buf, count); in odev_read() 164 struct seq_oss_devinfo *dp; in odev_write() local 165 dp = file->private_data; in odev_write() [all …]
|
D | seq_oss_timer.h | 18 struct seq_oss_devinfo *dp; member 27 struct seq_oss_timer *snd_seq_oss_timer_new(struct seq_oss_devinfo *dp); 28 void snd_seq_oss_timer_delete(struct seq_oss_timer *dp);
|
D | seq_oss_writeq.h | 16 struct seq_oss_devinfo *dp; member 28 struct seq_oss_writeq *snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen);
|
D | seq_oss_readq.h | 29 struct seq_oss_readq *snd_seq_oss_readq_new(struct seq_oss_devinfo *dp, int maxlen);
|
D | seq_oss_event.h | 94 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
|
D | seq_oss_readq.c | 33 snd_seq_oss_readq_new(struct seq_oss_devinfo *dp, int maxlen) in snd_seq_oss_readq_new() argument
|
/sound/core/seq/ |
D | seq_ports.h | 109 struct snd_seq_client *d, struct snd_seq_client_port *dp, 115 struct snd_seq_client *d, struct snd_seq_client_port *dp,
|
/sound/soc/intel/avs/ |
D | pcm.c | 37 struct snd_soc_dapm_path *dp; in avs_dai_find_path_template() local 48 dp = list_first_entry_or_null(&dw->edges[dir], typeof(*dp), list_node[dir]); in avs_dai_find_path_template() 49 if (!dp) in avs_dai_find_path_template() 53 dw = (dp->source == dw) ? dp->sink : dp->source; in avs_dai_find_path_template()
|
/sound/soc/rockchip/ |
D | rockchip_i2s.c | 667 struct snd_soc_dai_driver **dp) in rockchip_i2s_init_dai() argument 729 if (dp) in rockchip_i2s_init_dai() 730 *dp = dai; in rockchip_i2s_init_dai()
|
/sound/pci/hda/ |
D | patch_hdmi.c | 234 struct dp_audio_infoframe dp; member 708 struct dp_audio_infoframe *dp_ai = &ai.dp; in hdmi_pin_setup_infoframe()
|