/sound/core/seq/ |
D | seq_memory.c | 58 static int get_var_len(const struct snd_seq_event *event) in get_var_len() argument 60 if ((event->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in get_var_len() 63 return event->data.ext.len & ~SNDRV_SEQ_EXT_MASK; in get_var_len() 66 int snd_seq_dump_var_event(const struct snd_seq_event *event, in snd_seq_dump_var_event() argument 72 len = get_var_len(event); in snd_seq_dump_var_event() 76 if (event->data.ext.len & SNDRV_SEQ_EXT_USRPTR) { in snd_seq_dump_var_event() 78 char __user *curptr = (char __force __user *)event->data.ext.ptr; in snd_seq_dump_var_event() 93 if (!(event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) in snd_seq_dump_var_event() 94 return func(private_data, event->data.ext.ptr, len); in snd_seq_dump_var_event() 96 cell = (struct snd_seq_event_cell *)event->data.ext.ptr; in snd_seq_dump_var_event() [all …]
|
D | seq_clientmgr.c | 67 struct snd_seq_event *event, 70 struct snd_seq_event *event, 442 if (snd_seq_ev_is_variable(&cell->event)) { in snd_seq_read() 444 tmpev = cell->event; in snd_seq_read() 452 err = snd_seq_expand_var_event(&cell->event, count, in snd_seq_read() 461 if (copy_to_user(buf, &cell->event, sizeof(struct snd_seq_event))) { in snd_seq_read() 499 static struct snd_seq_client *get_event_dest_client(struct snd_seq_event *event, in get_event_dest_client() argument 504 dest = snd_seq_client_use_ptr(event->dest.client); in get_event_dest_client() 510 ! test_bit(event->type, dest->event_filter)) in get_event_dest_client() 534 struct snd_seq_event *event, in bounce_error_event() argument [all …]
|
D | seq_prioq.c | 143 prior = (cell->event.flags & SNDRV_SEQ_PRIORITY_MASK); in snd_seq_prioq_cell_in() 151 if (compare_timestamp(&cell->event, &f->tail->event)) { in snd_seq_prioq_cell_in() 170 int rel = compare_timestamp_rel(&cell->event, &cur->event); in snd_seq_prioq_cell_in() 225 if (cell && current_time && !event_is_ready(&cell->event, current_time)) in snd_seq_prioq_cell_out() 255 if (cell->event.source.client == client || in prioq_match() 256 cell->event.dest.client == client) in prioq_match() 260 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in prioq_match() 262 if (cell->event.time.tick) in prioq_match() 266 if (cell->event.time.time.tv_sec || in prioq_match() 267 cell->event.time.time.tv_nsec) in prioq_match() [all …]
|
/sound/virtio/ |
D | virtio_card.c | 30 struct virtio_snd_event *event, bool notify, in virtsnd_event_send() argument 37 memset(event, 0, sizeof(*event)); in virtsnd_event_send() 39 sg_init_one(&sg, event, sizeof(*event)); in virtsnd_event_send() 41 if (virtqueue_add_sgs(vqueue, psgs, 0, 1, event, gfp) || !notify) in virtsnd_event_send() 56 struct virtio_snd_event *event) in virtsnd_event_dispatch() argument 58 switch (le32_to_cpu(event->hdr.code)) { in virtsnd_event_dispatch() 61 virtsnd_jack_event(snd, event); in virtsnd_event_dispatch() 65 virtsnd_pcm_event(snd, event); in virtsnd_event_dispatch() 83 struct virtio_snd_event *event; in virtsnd_event_notify_cb() local 90 while ((event = virtqueue_get_buf(vqueue, &length))) { in virtsnd_event_notify_cb() [all …]
|
/sound/soc/codecs/ |
D | mt6359.c | 729 int event) in mt_sgen_event() argument 734 dev_dbg(priv->dev, "%s(), event = 0x%x\n", __func__, event); in mt_sgen_event() 736 switch (event) { in mt_sgen_event() 955 int event) in mt_hp_event() argument 963 __func__, event, priv->dev_counter[device], mux); in mt_hp_event() 965 switch (event) { in mt_hp_event() 985 int event) in mt_rcv_event() argument 991 __func__, event, dapm_kcontrol_get_value(w->kcontrols[0])); in mt_rcv_event() 993 switch (event) { in mt_rcv_event() 1069 int event) in mt_lo_event() argument [all …]
|
D | mt6351.c | 580 int event) in mt_reg_set_clr_event() argument 584 switch (event) { in mt_reg_set_clr_event() 624 int event) in mt_ncp_event() argument 628 switch (event) { in mt_ncp_event() 648 int event) in mt_sgen_event() argument 652 switch (event) { in mt_sgen_event() 668 int event) in mt_aif_in_event() argument 674 __func__, event, priv->dl_rate); in mt_aif_in_event() 676 switch (event) { in mt_aif_in_event() 713 int event) in mt_hp_event() argument [all …]
|
D | lpass-rx-macro.c | 1893 struct snd_kcontrol *kcontrol, int event) in rx_macro_mclk_event() argument 1899 switch (event) { in rx_macro_mclk_event() 1907 dev_err(component->dev, "%s: invalid DAPM event %d\n", __func__, event); in rx_macro_mclk_event() 1951 int event, int interp_idx); 1954 int event) in rx_macro_enable_main_path() argument 1962 switch (event) { in rx_macro_enable_main_path() 1964 rx_macro_enable_interp_clk(component, event, w->shift); in rx_macro_enable_main_path() 1975 rx_macro_enable_interp_clk(component, event, w->shift); in rx_macro_enable_main_path() 1984 int comp, int event) in rx_macro_config_compander() argument 2002 if (SND_SOC_DAPM_EVENT_ON(event)) in rx_macro_config_compander() [all …]
|
D | mt6358.c | 862 int event) in mt_clksq_event() argument 867 dev_dbg(priv->dev, "%s(), event = 0x%x\n", __func__, event); in mt_clksq_event() 869 switch (event) { in mt_clksq_event() 885 int event) in mt_sgen_event() argument 890 dev_dbg(priv->dev, "%s(), event = 0x%x\n", __func__, event); in mt_sgen_event() 892 switch (event) { in mt_sgen_event() 924 int event) in mt_aif_in_event() argument 930 __func__, event, priv->dl_rate); in mt_aif_in_event() 932 switch (event) { in mt_aif_in_event() 1356 int event) in mt_hp_event() argument [all …]
|
D | wcd9335.c | 2565 int event) in __wcd9335_codec_enable_micbias() argument 2581 switch (event) { in __wcd9335_codec_enable_micbias() 2603 struct snd_kcontrol *kc, int event) in wcd9335_codec_enable_micbias() argument 2605 return __wcd9335_codec_enable_micbias(w, event); in wcd9335_codec_enable_micbias() 2644 struct snd_kcontrol *kc, int event) in wcd9335_codec_enable_adc() argument 2648 switch (event) { in wcd9335_codec_enable_adc() 2714 struct snd_kcontrol *kc, int event) in wcd9335_codec_enable_dec() argument 2762 switch (event) { in wcd9335_codec_enable_dec() 2901 struct snd_kcontrol *kc, int event) in wcd9335_codec_enable_dmic() argument 2948 switch (event) { in wcd9335_codec_enable_dmic() [all …]
|
D | lpass-wsa-macro.c | 1139 struct snd_kcontrol *kcontrol, int event) in wsa_macro_mclk_event() argument 1144 wsa_macro_mclk_enable(wsa, event == SND_SOC_DAPM_PRE_PMU); in wsa_macro_mclk_event() 1150 int event) in wsa_macro_enable_vi_feedback() argument 1164 switch (event) { in wsa_macro_enable_vi_feedback() 1213 struct snd_kcontrol *kcontrol, int event) in wsa_macro_enable_mix_path() argument 1232 switch (event) { in wsa_macro_enable_mix_path() 1248 u16 reg, int event) in wsa_macro_hd2_control() argument 1262 if (hd2_enable_reg && SND_SOC_DAPM_EVENT_ON(event)) { in wsa_macro_hd2_control() 1274 if (hd2_enable_reg && SND_SOC_DAPM_EVENT_OFF(event)) { in wsa_macro_hd2_control() 1287 int comp, int event) in wsa_macro_config_compander() argument [all …]
|
/sound/firewire/motu/ |
D | motu-hwdep.c | 24 union snd_firewire_event event; in hwdep_read() local 38 memset(&event, 0, sizeof(event)); in hwdep_read() 40 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 41 event.lock_status.status = (motu->dev_lock_count > 0); in hwdep_read() 44 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 46 event.motu_notification.type = SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION; in hwdep_read() 47 event.motu_notification.message = motu->msg; in hwdep_read() 50 count = min_t(long, count, sizeof(event.motu_notification)); in hwdep_read() 55 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/firewire/dice/ |
D | dice-hwdep.c | 16 union snd_firewire_event event; in hwdep_read() local 30 memset(&event, 0, sizeof(event)); in hwdep_read() 32 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 33 event.lock_status.status = dice->dev_lock_count > 0; in hwdep_read() 36 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 38 event.dice_notification.type = in hwdep_read() 40 event.dice_notification.notification = dice->notification_bits; in hwdep_read() 43 count = min_t(long, count, sizeof(event.dice_notification)); in hwdep_read() 48 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/firewire/digi00x/ |
D | digi00x-hwdep.c | 24 union snd_firewire_event event; in hwdep_read() local 38 memset(&event, 0, sizeof(event)); in hwdep_read() 40 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 41 event.lock_status.status = (dg00x->dev_lock_count > 0); in hwdep_read() 44 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 46 event.digi00x_message.type = in hwdep_read() 48 event.digi00x_message.message = dg00x->msg; in hwdep_read() 51 count = min_t(long, count, sizeof(event.digi00x_message)); in hwdep_read() 56 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/core/seq/oss/ |
D | seq_oss_rw.c | 155 struct snd_seq_event event; in insert_queue() local 162 memset(&event, 0, sizeof(event)); in insert_queue() 164 event.type = SNDRV_SEQ_EVENT_NOTEOFF; in insert_queue() 165 snd_seq_oss_fill_addr(dp, &event, dp->addr.client, dp->addr.port); in insert_queue() 167 if (snd_seq_oss_process_event(dp, rec, &event)) in insert_queue() 170 event.time.tick = snd_seq_oss_timer_cur_tick(dp->timer); in insert_queue() 172 snd_seq_oss_dispatch(dp, &event, 0, 0); in insert_queue() 174 rc = snd_seq_kernel_client_enqueue(dp->cseq, &event, opt, in insert_queue()
|
/sound/soc/pxa/ |
D | e800_wm9712.c | 21 struct snd_kcontrol *kcontrol, int event) in e800_spk_amp_event() argument 23 if (event & SND_SOC_DAPM_PRE_PMU) in e800_spk_amp_event() 25 else if (event & SND_SOC_DAPM_POST_PMD) in e800_spk_amp_event() 32 struct snd_kcontrol *kcontrol, int event) in e800_hp_amp_event() argument 34 if (event & SND_SOC_DAPM_PRE_PMU) in e800_hp_amp_event() 36 else if (event & SND_SOC_DAPM_POST_PMD) in e800_hp_amp_event()
|
D | e750_wm9705.c | 22 struct snd_kcontrol *kcontrol, int event) in e750_spk_amp_event() argument 24 if (event & SND_SOC_DAPM_PRE_PMU) in e750_spk_amp_event() 26 else if (event & SND_SOC_DAPM_POST_PMD) in e750_spk_amp_event() 33 struct snd_kcontrol *kcontrol, int event) in e750_hp_amp_event() argument 35 if (event & SND_SOC_DAPM_PRE_PMU) in e750_hp_amp_event() 37 else if (event & SND_SOC_DAPM_POST_PMD) in e750_hp_amp_event()
|
D | e740_wm9705.c | 34 struct snd_kcontrol *kcontrol, int event) in e740_mic_amp_event() argument 36 if (event & SND_SOC_DAPM_PRE_PMU) in e740_mic_amp_event() 38 else if (event & SND_SOC_DAPM_POST_PMD) in e740_mic_amp_event() 47 struct snd_kcontrol *kcontrol, int event) in e740_output_amp_event() argument 49 if (event & SND_SOC_DAPM_PRE_PMU) in e740_output_amp_event() 51 else if (event & SND_SOC_DAPM_POST_PMD) in e740_output_amp_event()
|
/sound/firewire/fireface/ |
D | ff-hwdep.c | 23 union snd_firewire_event event; in hwdep_read() local 37 memset(&event, 0, sizeof(event)); in hwdep_read() 38 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 39 event.lock_status.status = (ff->dev_lock_count > 0); in hwdep_read() 42 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 46 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/firewire/oxfw/ |
D | oxfw-hwdep.c | 23 union snd_firewire_event event; in hwdep_read() local 37 memset(&event, 0, sizeof(event)); in hwdep_read() 38 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 39 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read() 42 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 46 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/firewire/bebob/ |
D | bebob_hwdep.c | 24 union snd_firewire_event event; in hwdep_read() local 38 memset(&event, 0, sizeof(event)); in hwdep_read() 39 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read() 40 event.lock_status.type = SNDRV_FIREWIRE_EVENT_LOCK_STATUS; in hwdep_read() 41 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read() 46 if (copy_to_user(buf, &event, count)) in hwdep_read()
|
/sound/synth/emux/ |
D | emux_oss.c | 30 int cmd, unsigned char *event, int atomic, int hop); 32 int cmd, unsigned char *event, int atomic, int hop); 321 unsigned char *event, int atomic, int hop) in emuspec_control() argument 329 voice = event[3]; in emuspec_control() 335 p1 = *(unsigned short *) &event[4]; in emuspec_control() 336 p2 = *(short *) &event[6]; in emuspec_control() 387 port->drum_flags = *(unsigned int*)&event[4]; in emuspec_control() 416 unsigned char *event, int atomic, int hop) in gusspec_control() argument 427 voice = event[3]; in gusspec_control() 433 p1 = *(unsigned short *) &event[4]; in gusspec_control() [all …]
|
/sound/soc/mediatek/mt8195/ |
D | mt8195-dai-adda.c | 194 int event) in mtk_adda_mtkaif_cfg_event() argument 200 __func__, w->name, event); in mtk_adda_mtkaif_cfg_event() 202 switch (event) { in mtk_adda_mtkaif_cfg_event() 215 int event) in mtk_adda_dl_event() argument 221 __func__, w->name, event); in mtk_adda_dl_event() 223 switch (event) { in mtk_adda_dl_event() 265 int event) in mtk_adda_ul_event() argument 273 __func__, w->name, event); in mtk_adda_ul_event() 275 switch (event) { in mtk_adda_ul_event() 292 int event) in mtk_adda6_ul_event() argument [all …]
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.h | 592 .event = wevent, .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ 600 .event = wevent, .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ 608 .event = wevent, .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ 616 .event = wevent, .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ 624 .event = wevent, .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ 633 .event = wevent, .event_flags = wflags, \ 641 .event = wevent, .event_flags = wflags, \ 649 .event = wevent, .event_flags = wflags, \ 655 #define SST_PATH_INPUT(name, task_id, loc_id, event) \ argument 656 SST_PATH(name, task_id, loc_id, event, SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD) [all …]
|
/sound/soc/samsung/ |
D | midas_wm1811.c | 141 struct snd_kcontrol *kcontrol, int event) in midas_ext_spkmode() argument 146 switch (event) { in midas_ext_spkmode() 163 struct snd_kcontrol *kcontrol, int event) in midas_mic_bias() argument 168 switch (event) { in midas_mic_bias() 179 struct snd_kcontrol *kcontrol, int event) in midas_submic_bias() argument 184 switch (event) { in midas_submic_bias() 195 struct snd_kcontrol *kcontrol, int event) in midas_fm_set() argument 203 switch (event) { in midas_fm_set() 216 struct snd_kcontrol *kcontrol, int event) in midas_line_set() argument 224 switch (event) { in midas_line_set()
|
/sound/soc/mediatek/mt8192/ |
D | mt8192-dai-adda.c | 299 int event) in mtk_adda_ul_event() argument 307 __func__, w->name, event, mtkaif_dmic); in mtk_adda_ul_event() 309 switch (event) { in mtk_adda_ul_event() 340 int event) in mtk_adda_ch34_ul_event() argument 350 __func__, w->name, event, mtkaif_dmic, mtkaif_adda6_only); in mtk_adda_ch34_ul_event() 352 switch (event) { in mtk_adda_ch34_ul_event() 406 int event) in mtk_adda_pad_top_event() argument 412 switch (event) { in mtk_adda_pad_top_event() 428 int event) in mtk_adda_mtkaif_cfg_event() argument 436 switch (event) { in mtk_adda_mtkaif_cfg_event() [all …]
|