/sound/core/seq/ |
D | seq_memory.c | 70 static int get_var_len(const struct snd_seq_event *event) in get_var_len() argument 72 if ((event->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in get_var_len() 75 return event->data.ext.len & ~SNDRV_SEQ_EXT_MASK; in get_var_len() 78 int snd_seq_dump_var_event(const struct snd_seq_event *event, in snd_seq_dump_var_event() argument 84 if ((len = get_var_len(event)) <= 0) in snd_seq_dump_var_event() 87 if (event->data.ext.len & SNDRV_SEQ_EXT_USRPTR) { in snd_seq_dump_var_event() 89 char __user *curptr = (char __user *)event->data.ext.ptr; in snd_seq_dump_var_event() 103 } if (! (event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) { in snd_seq_dump_var_event() 104 return func(private_data, event->data.ext.ptr, len); in snd_seq_dump_var_event() 107 cell = (struct snd_seq_event_cell *)event->data.ext.ptr; in snd_seq_dump_var_event() [all …]
|
D | seq_clientmgr.c | 81 struct snd_seq_event *event, 84 struct snd_seq_event *event, 432 if (snd_seq_ev_is_variable(&cell->event)) { in snd_seq_read() 434 tmpev = cell->event; in snd_seq_read() 442 err = snd_seq_expand_var_event(&cell->event, count, in snd_seq_read() 451 if (copy_to_user(buf, &cell->event, sizeof(struct snd_seq_event))) { in snd_seq_read() 489 static struct snd_seq_client *get_event_dest_client(struct snd_seq_event *event, in get_event_dest_client() argument 494 dest = snd_seq_client_use_ptr(event->dest.client); in get_event_dest_client() 500 ! test_bit(event->type, dest->event_filter)) in get_event_dest_client() 524 struct snd_seq_event *event, in bounce_error_event() argument [all …]
|
D | seq_prioq.c | 160 prior = (cell->event.flags & SNDRV_SEQ_PRIORITY_MASK); in snd_seq_prioq_cell_in() 168 if (compare_timestamp(&cell->event, &f->tail->event)) { in snd_seq_prioq_cell_in() 187 int rel = compare_timestamp_rel(&cell->event, &cur->event); in snd_seq_prioq_cell_in() 272 if (cell->event.source.client == client || in prioq_match() 273 cell->event.dest.client == client) in prioq_match() 277 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in prioq_match() 279 if (cell->event.time.tick) in prioq_match() 283 if (cell->event.time.time.tv_sec || in prioq_match() 284 cell->event.time.time.tv_nsec) in prioq_match() 325 cell->event.type, in snd_seq_prioq_leave() [all …]
|
D | Makefile | 16 snd-seq-midi-event-objs := seq_midi_event.o 30 obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o 35 obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o 36 obj-$(call sequencer,$(CONFIG_SND_RAWMIDI)) += snd-seq-midi.o snd-seq-midi-event.o 37 obj-$(call sequencer,$(CONFIG_SND_OPL3_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o 38 obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o
|
D | seq_virmidi.c | 165 if (vmidi->event.type != SNDRV_SEQ_EVENT_NONE) { in snd_virmidi_output_trigger() 166 if (snd_seq_kernel_client_dispatch(vmidi->client, &vmidi->event, in_atomic(), 0) < 0) in snd_virmidi_output_trigger() 168 vmidi->event.type = SNDRV_SEQ_EVENT_NONE; in snd_virmidi_output_trigger() 176 res = snd_midi_event_encode(vmidi->parser, pbuf, count, &vmidi->event); in snd_virmidi_output_trigger() 184 if (vmidi->event.type != SNDRV_SEQ_EVENT_NONE) { in snd_virmidi_output_trigger() 185 if (snd_seq_kernel_client_dispatch(vmidi->client, &vmidi->event, in_atomic(), 0) < 0) in snd_virmidi_output_trigger() 187 vmidi->event.type = SNDRV_SEQ_EVENT_NONE; in snd_virmidi_output_trigger() 245 snd_virmidi_init_event(vmidi, &vmidi->event); in snd_virmidi_output_open()
|
D | seq_queue.c | 276 &cell->event.time.tick)) { in snd_seq_check_queue() 290 &cell->event.time.time)) { in snd_seq_check_queue() 320 dest = cell->event.queue; /* destination queue */ in snd_seq_enqueue_event() 325 if ((cell->event.flags & SNDRV_SEQ_TIME_MODE_MASK) == SNDRV_SEQ_TIME_MODE_REL) { in snd_seq_enqueue_event() 326 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event() 328 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event() 332 snd_seq_inc_real_time(&cell->event.time.time, in snd_seq_enqueue_event() 336 cell->event.flags &= ~SNDRV_SEQ_TIME_MODE_MASK; in snd_seq_enqueue_event() 337 cell->event.flags |= SNDRV_SEQ_TIME_MODE_ABS; in snd_seq_enqueue_event() 340 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event()
|
D | seq_memory.h | 29 struct snd_seq_event event; member 66 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event,
|
D | seq_midi_event.c | 61 int event; member 101 int event; member 251 ev->type = status_event[ST_SPECIAL + c - 0xf0].event; in snd_midi_event_encode_byte() 282 ev->type = status_event[dev->type].event; in snd_midi_event_encode_byte() 365 if (ev->type == status_event[type].event) in snd_midi_event_decode() 369 if (ev->type == extra_event[type].event) in snd_midi_event_decode()
|
D | seq_fifo.c | 115 struct snd_seq_event *event) in snd_seq_fifo_event_in() argument 125 err = snd_seq_event_dup(f->pool, event, &cell, 1, NULL); /* always non-blocking */ in snd_seq_fifo_event_in()
|
D | seq_fifo.h | 50 int snd_seq_fifo_event_in(struct snd_seq_fifo *f, struct snd_seq_event *event);
|
/sound/core/seq/oss/ |
D | seq_oss_rw.c | 167 struct snd_seq_event event; in insert_queue() local 174 memset(&event, 0, sizeof(event)); in insert_queue() 176 event.type = SNDRV_SEQ_EVENT_NOTEOFF; in insert_queue() 177 snd_seq_oss_fill_addr(dp, &event, dp->addr.port, dp->addr.client); in insert_queue() 179 if (snd_seq_oss_process_event(dp, rec, &event)) in insert_queue() 182 event.time.tick = snd_seq_oss_timer_cur_tick(dp->timer); in insert_queue() 184 snd_seq_oss_dispatch(dp, &event, 0, 0); in insert_queue() 187 rc = snd_seq_kernel_client_enqueue(dp->cseq, &event, 0, 0); in insert_queue() 189 rc = snd_seq_kernel_client_enqueue_blocking(dp->cseq, &event, opt, 0, 0); in insert_queue()
|
/sound/soc/ |
D | soc-dapm.c | 489 struct snd_kcontrol *kcontrol, int event) in dapm_reg_event() argument 493 if (SND_SOC_DAPM_EVENT_ON(event)) in dapm_reg_event() 514 static int dapm_power_widgets(struct snd_soc_codec *codec, int event) in dapm_power_widgets() argument 520 if (event == SND_SOC_DAPM_STREAM_START) { in dapm_power_widgets() 523 } else if (event == SND_SOC_DAPM_STREAM_STOP) { in dapm_power_widgets() 559 if (!w->event) in dapm_power_widgets() 562 if (event == SND_SOC_DAPM_STREAM_START) { in dapm_power_widgets() 563 ret = w->event(w, in dapm_power_widgets() 567 } else if (event == SND_SOC_DAPM_STREAM_STOP) { in dapm_power_widgets() 568 ret = w->event(w, in dapm_power_widgets() [all …]
|
/sound/synth/emux/ |
D | emux_oss.c | 44 int cmd, unsigned char *event, int atomic, int hop); 46 int cmd, unsigned char *event, int atomic, int hop); 343 unsigned char *event, int atomic, int hop) in emuspec_control() argument 351 voice = event[3]; in emuspec_control() 357 p1 = *(unsigned short *) &event[4]; in emuspec_control() 358 p2 = *(short *) &event[6]; in emuspec_control() 409 port->drum_flags = *(unsigned int*)&event[4]; in emuspec_control() 438 unsigned char *event, int atomic, int hop) in gusspec_control() argument 450 voice = event[3]; in gusspec_control() 456 p1 = *(unsigned short *) &event[4]; in gusspec_control() [all …]
|
/sound/oss/ |
D | sys_timer.c | 122 def_tmr_event(int dev, unsigned char *event) in def_tmr_event() argument 124 unsigned char cmd = event[1]; in def_tmr_event() 125 unsigned long parm = *(int *) &event[4]; in def_tmr_event() 174 seq_copy_to_input(event, 8); in def_tmr_event() 284 .event = def_tmr_event,
|
D | sound_timer.c | 113 static int timer_event(int dev, unsigned char *event) in timer_event() argument 115 unsigned char cmd = event[1]; in timer_event() 116 unsigned long parm = *(int *) &event[4]; in timer_event() 166 seq_copy_to_input(event, 8); in timer_event() 275 .event = timer_event,
|
D | sound_calls.h | 58 void seq_input_event(unsigned char *event, int len); 59 void seq_copy_to_input (unsigned char *event, int len);
|
D | mpu401.c | 121 static void timer_ext_event(struct mpu_config *devc, int event, int parm); 1407 static int mpu_timer_event(int dev, unsigned char *event) in mpu_timer_event() argument 1409 unsigned char command = event[1]; in mpu_timer_event() 1410 unsigned long parm = *(unsigned int *) &event[4]; in mpu_timer_event() 1464 seq_copy_to_input(event, 8); in mpu_timer_event() 1624 .event = mpu_timer_event, 1648 static void timer_ext_event(struct mpu_config *devc, int event, int parm) in timer_ext_event() argument 1655 switch (event) in timer_ext_event()
|
/sound/core/ |
D | timer.c | 299 int keep_flag, int event); 377 static void snd_timer_notify1(struct snd_timer_instance *ti, int event) in snd_timer_notify1() argument 389 if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_START || in snd_timer_notify1() 390 event > SNDRV_TIMER_EVENT_PAUSE)) in snd_timer_notify1() 392 if (event == SNDRV_TIMER_EVENT_START || in snd_timer_notify1() 393 event == SNDRV_TIMER_EVENT_CONTINUE) in snd_timer_notify1() 407 ts->ccallback(ti, event + 100, &tstamp, resolution); in snd_timer_notify1() 474 int keep_flag, int event) in _snd_timer_stop() argument 513 if (event != SNDRV_TIMER_EVENT_RESOLUTION) in _snd_timer_stop() 514 snd_timer_notify1(timeri, event); in _snd_timer_stop() [all …]
|
/sound/soc/pxa/ |
D | corgi.c | 215 struct snd_kcontrol *k, int event) in corgi_amp_event() argument 217 gpio_set_value(CORGI_GPIO_APM_ON, SND_SOC_DAPM_EVENT_ON(event)); in corgi_amp_event() 222 struct snd_kcontrol *k, int event) in corgi_mic_event() argument 224 gpio_set_value(CORGI_GPIO_MIC_BIAS, SND_SOC_DAPM_EVENT_ON(event)); in corgi_mic_event()
|
D | spitz.c | 215 struct snd_kcontrol *k, int event) in spitz_mic_bias() argument 219 SND_SOC_DAPM_EVENT_ON(event)); in spitz_mic_bias() 223 SND_SOC_DAPM_EVENT_ON(event)); in spitz_mic_bias()
|
D | tosa.c | 138 struct snd_kcontrol *k, int event) in tosa_hp_event() argument 140 gpio_set_value(TOSA_GPIO_L_MUTE, SND_SOC_DAPM_EVENT_ON(event) ? 1 :0); in tosa_hp_event()
|
D | poodle.c | 194 struct snd_kcontrol *k, int event) in poodle_amp_event() argument 196 if (SND_SOC_DAPM_EVENT_ON(event)) in poodle_amp_event()
|
/sound/soc/omap/ |
D | n810.c | 193 struct snd_kcontrol *k, int event) in n810_spk_event() argument 195 if (SND_SOC_DAPM_EVENT_ON(event)) in n810_spk_event() 204 struct snd_kcontrol *k, int event) in n810_jack_event() argument 206 if (SND_SOC_DAPM_EVENT_ON(event)) in n810_jack_event()
|
D | omap3pandora.c | 114 struct snd_kcontrol *k, int event) in omap3pandora_hp_event() argument 116 if (SND_SOC_DAPM_EVENT_ON(event)) { in omap3pandora_hp_event()
|
/sound/pci/hda/ |
D | patch_sigmatel.c | 3864 struct sigmatel_event *event; in stac_add_event() local 3866 snd_array_init(&spec->events, sizeof(*event), 32); in stac_add_event() 3867 event = snd_array_new(&spec->events); in stac_add_event() 3868 if (!event) in stac_add_event() 3870 event->nid = nid; in stac_add_event() 3871 event->type = type; in stac_add_event() 3872 event->tag = spec->events.used; in stac_add_event() 3873 event->data = data; in stac_add_event() 3875 return event->tag; in stac_add_event() 3882 struct sigmatel_event *event = spec->events.list; in stac_get_event() local [all …]
|