Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 56) sorted by relevance

123

/sound/firewire/
Dfcp.c74 struct fcp_transaction t; in fcp_avc_transaction() local
77 t.unit = unit; in fcp_avc_transaction()
78 t.response_buffer = response; in fcp_avc_transaction()
79 t.response_size = response_size; in fcp_avc_transaction()
80 t.response_match_bytes = response_match_bytes; in fcp_avc_transaction()
81 t.state = STATE_PENDING; in fcp_avc_transaction()
82 init_waitqueue_head(&t.wait); in fcp_avc_transaction()
85 list_add_tail(&t.list, &transactions); in fcp_avc_transaction()
91 ret = snd_fw_transaction(t.unit, tcode, in fcp_avc_transaction()
97 wait_event_timeout(t.wait, t.state != STATE_PENDING, in fcp_avc_transaction()
[all …]
/sound/core/
Dhrtimer.c47 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() local
53 oruns = hrtimer_forward_now(hrt, ns_to_ktime(t->sticks * resolution)); in snd_hrtimer_callback()
54 snd_timer_interrupt(stime->timer, t->sticks * oruns); in snd_hrtimer_callback()
61 static int snd_hrtimer_open(struct snd_timer *t) in snd_hrtimer_open() argument
69 stime->timer = t; in snd_hrtimer_open()
72 t->private_data = stime; in snd_hrtimer_open()
76 static int snd_hrtimer_close(struct snd_timer *t) in snd_hrtimer_close() argument
78 struct snd_hrtimer *stime = t->private_data; in snd_hrtimer_close()
83 t->private_data = NULL; in snd_hrtimer_close()
88 static int snd_hrtimer_start(struct snd_timer *t) in snd_hrtimer_start() argument
[all …]
Drtctimer.c40 static int rtctimer_open(struct snd_timer *t);
41 static int rtctimer_close(struct snd_timer *t);
42 static int rtctimer_start(struct snd_timer *t);
43 static int rtctimer_stop(struct snd_timer *t);
67 rtctimer_open(struct snd_timer *t) in rtctimer_open() argument
74 t->private_data = &rtc_task; in rtctimer_open()
79 rtctimer_close(struct snd_timer *t) in rtctimer_close() argument
81 rtc_task_t *rtc = t->private_data; in rtctimer_close()
85 t->private_data = NULL; in rtctimer_close()
Dtimer_compat.c40 struct snd_timer *t; in snd_timer_user_info_compat() local
45 t = tu->timeri->timer; in snd_timer_user_info_compat()
46 if (snd_BUG_ON(!t)) in snd_timer_user_info_compat()
49 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat()
50 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_info_compat()
52 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat()
53 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat()
54 info.resolution = t->hw.resolution; in snd_timer_user_info_compat()
Dtimer.c1421 struct snd_timer *t; in snd_timer_user_ginfo() local
1433 t = snd_timer_find(&tid); in snd_timer_user_ginfo()
1434 if (t != NULL) { in snd_timer_user_ginfo()
1435 ginfo->card = t->card ? t->card->number : -1; in snd_timer_user_ginfo()
1436 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_ginfo()
1438 strlcpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
1439 strlcpy(ginfo->name, t->name, sizeof(ginfo->name)); in snd_timer_user_ginfo()
1440 ginfo->resolution = t->hw.resolution; in snd_timer_user_ginfo()
1441 if (t->hw.resolution_min > 0) { in snd_timer_user_ginfo()
1442 ginfo->resolution_min = t->hw.resolution_min; in snd_timer_user_ginfo()
[all …]
Dpcm_native.c1526 long t = runtime->period_size * 2 / runtime->rate; in snd_pcm_drain() local
1527 tout = max(t, tout); in snd_pcm_drain()
1711 struct snd_interval t; in snd_pcm_hw_rule_mul() local
1713 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_mul()
1714 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_mul()
1720 struct snd_interval t; in snd_pcm_hw_rule_div() local
1722 hw_param_interval_c(params, rule->deps[1]), &t); in snd_pcm_hw_rule_div()
1723 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in snd_pcm_hw_rule_div()
1729 struct snd_interval t; in snd_pcm_hw_rule_muldivk() local
1732 (unsigned long) rule->private, &t); in snd_pcm_hw_rule_muldivk()
[all …]
Dpcm_lib.c879 struct snd_interval t; in snd_interval_ratnum() local
917 t.min = div_down(best_num, best_den); in snd_interval_ratnum()
918 t.openmin = !!(best_num % best_den); in snd_interval_ratnum()
958 t.max = div_up(best_num, best_den); in snd_interval_ratnum()
959 t.openmax = !!(best_num % best_den); in snd_interval_ratnum()
960 t.integer = 0; in snd_interval_ratnum()
961 err = snd_interval_refine(i, &t); in snd_interval_ratnum()
997 struct snd_interval t; in snd_interval_ratden() local
1029 t.min = div_down(best_num, best_den); in snd_interval_ratden()
1030 t.openmin = !!(best_num % best_den); in snd_interval_ratden()
[all …]
/sound/core/seq/
Dseq_timer.c77 struct snd_seq_timer *t = *tmr; in snd_seq_timer_delete() local
80 if (t == NULL) { in snd_seq_timer_delete()
84 t->running = 0; in snd_seq_timer_delete()
87 snd_seq_timer_stop(t); in snd_seq_timer_delete()
88 snd_seq_timer_reset(t); in snd_seq_timer_delete()
90 kfree(t); in snd_seq_timer_delete()
266 struct snd_timer_instance *t; in snd_seq_timer_open() local
281 err = snd_timer_open(&t, str, &tmr->alsa_id, q->queue); in snd_seq_timer_open()
291 err = snd_timer_open(&t, str, &tid, q->queue); in snd_seq_timer_open()
298 t->callback = snd_seq_timer_interrupt; in snd_seq_timer_open()
[all …]
/sound/soc/codecs/
Dwm0010.c124 struct spi_transfer t; member
199 struct spi_transfer t; member
223 u32 *out32 = xfer->t.rx_buf; in wm0010_boot_xfer_complete()
235 for (i = 0; i < xfer->t.len / 4; i++) { in wm0010_boot_xfer_complete()
443 xfer->t.tx_buf = img; in wm0010_firmware_load()
444 xfer->t.rx_buf = out; in wm0010_firmware_load()
445 xfer->t.len = len; in wm0010_firmware_load()
446 xfer->t.bits_per_word = 8; in wm0010_firmware_load()
449 xfer->t.speed_hz = wm0010->sysclk / 6; in wm0010_firmware_load()
451 xfer->t.speed_hz = wm0010->max_spi_freq; in wm0010_firmware_load()
[all …]
Dmax98095.c1942 const char **t; in max98095_handle_eq_pdata() local
1974 t = krealloc(max98095->eq_texts, in max98095_handle_eq_pdata()
1977 if (t == NULL) in max98095_handle_eq_pdata()
1981 t[max98095->eq_textcnt] = cfg[i].name; in max98095_handle_eq_pdata()
1983 max98095->eq_texts = t; in max98095_handle_eq_pdata()
2096 const char **t; in max98095_handle_bq_pdata() local
2129 t = krealloc(max98095->bq_texts, in max98095_handle_bq_pdata()
2132 if (t == NULL) in max98095_handle_bq_pdata()
2136 t[max98095->bq_textcnt] = cfg[i].name; in max98095_handle_bq_pdata()
2138 max98095->bq_texts = t; in max98095_handle_bq_pdata()
/sound/soc/au1x/
Dpsc-ac97.c218 int chans, t, stype = substream->stream; in au1xpsc_ac97_hw_params() local
260 t = 100; in au1xpsc_ac97_hw_params()
261 while ((au_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR) && --t) in au1xpsc_ac97_hw_params()
264 if (!t) in au1xpsc_ac97_hw_params()
276 t = 100; in au1xpsc_ac97_hw_params()
277 while ((!(au_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR)) && --t) in au1xpsc_ac97_hw_params()
280 if (!t) in au1xpsc_ac97_hw_params()
/sound/oss/
Dsound_timer.c306 void sound_timer_init(struct sound_lowlev_timer *t, char *name) in sound_timer_init() argument
312 if (t->priority <= tmr->priority) in sound_timer_init()
314 tmr = t; in sound_timer_init()
318 tmr = t; in sound_timer_init()
DCHANGELOG1 Note these changes relate to Hannu's code and don't include the changes
55 chip don't necessarily work yet. There are problems in detecting the
58 However please don't complain if you have problems with it. C930 support
139 - Removed MAD16+CS4231 hack made in previous version since it didn't
147 SB DMA of MAD16 so that it doesn't conflict with codec's DMA channels.
217 since TB doesn't allow me to release that code.
271 GUS MAX, but it doesn't work yet.
/sound/pci/
Dens1370.c520 unsigned int t, r = 0; in snd_es1371_wait_src_ready() local
522 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_wait_src_ready()
618 unsigned int t, x, flag; in snd_es1371_codec_write() local
622 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
631 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
637 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
660 unsigned int t, x, flag, fail = 0; in snd_es1371_codec_read() local
665 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
674 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
680 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
[all …]
/sound/drivers/
DKconfig41 If you don't have a sound card in your computer, you can include a
57 You don't need this driver if you only want your pc-speaker to beep.
58 You don't need this driver if you have a tablet piezo beeper
62 Say M if you don't.
72 You don't need this unless you're testing the hardware support
107 If you don't know what MIDI is, say N here.
118 the standard parallel port driver isn't used for the port.
145 make sure that the standard serial driver isn't used or
207 isn't recommended because many applications try to reopen
Daloop.c640 struct snd_interval t; in rule_rate() local
642 t.min = hw->rate_min; in rule_rate()
643 t.max = hw->rate_max; in rule_rate()
644 t.openmin = t.openmax = 0; in rule_rate()
645 t.integer = 0; in rule_rate()
646 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
653 struct snd_interval t; in rule_channels() local
655 t.min = hw->channels_min; in rule_channels()
656 t.max = hw->channels_max; in rule_channels()
657 t.openmin = t.openmax = 0; in rule_channels()
[all …]
/sound/core/oss/
Dmulaw.c122 int t; in ulaw2linear() local
131 t = ((u_val & QUANT_MASK) << 3) + BIAS; in ulaw2linear()
132 t <<= ((unsigned)u_val & SEG_MASK) >> SEG_SHIFT; in ulaw2linear()
134 return ((u_val & SIGN_BIT) ? (BIAS - t) : (t - BIAS)); in ulaw2linear()
Dpcm_oss.c133 struct snd_interval t; in snd_interval_refine_set() local
134 t.empty = 0; in snd_interval_refine_set()
135 t.min = t.max = val; in snd_interval_refine_set()
136 t.openmin = t.openmax = 0; in snd_interval_refine_set()
137 t.integer = 1; in snd_interval_refine_set()
138 return snd_interval_refine(i, &t); in snd_interval_refine_set()
497 struct snd_interval t; in _snd_pcm_hw_param_set() local
498 t.openmin = 1; in _snd_pcm_hw_param_set()
499 t.openmax = 1; in _snd_pcm_hw_param_set()
500 t.empty = 0; in _snd_pcm_hw_param_set()
[all …]
/sound/core/seq/oss/
Dseq_oss_readq.c214 rec.t.code = EV_TIMING; in snd_seq_oss_readq_put_timestamp()
215 rec.t.cmd = TMR_WAIT_ABS; in snd_seq_oss_readq_put_timestamp()
216 rec.t.time = curt; in snd_seq_oss_readq_put_timestamp()
Dseq_oss_timer.c88 abstime_t parm = ev->t.time; in snd_seq_oss_process_timer_event()
90 if (ev->t.code == EV_TIMING) { in snd_seq_oss_process_timer_event()
91 switch (ev->t.cmd) { in snd_seq_oss_process_timer_event()
Dseq_oss_writeq.c115 rec->t.code = SEQ_SYNCTIMER; in snd_seq_oss_writeq_sync()
116 rec->t.time = time; in snd_seq_oss_writeq_sync()
Dseq_oss_event.c237 switch (q->t.cmd) { in timing_event()
245 tmp.echo = (q->t.time << 8) | SEQ_ECHO; in timing_event()
261 return snd_seq_oss_timer_tempo(dp->timer, q->t.time); in timing_event()
447 snd_seq_oss_writeq_wakeup(dp->writeq, rec->t.time); in snd_seq_oss_event_input()
/sound/pci/hda/
Dpatch_hdmi.c639 struct channel_map_table *t = map_tables; in to_spk_mask() local
640 for (; t->map; t++) { in to_spk_mask()
641 if (t->map == c) in to_spk_mask()
642 return t->spk_mask; in to_spk_mask()
650 struct channel_map_table *t = map_tables; in to_cea_slot() local
651 for (; t->map; t++) { in to_cea_slot()
652 if (t->map == c) in to_cea_slot()
653 return t->cea_slot; in to_cea_slot()
661 struct channel_map_table *t = map_tables; in from_cea_slot() local
662 for (; t->map; t++) { in from_cea_slot()
[all …]
/sound/synth/emux/
Dsoundfont.c856 int r, p, t; in calc_gus_envelope_time() local
859 t = end - start; in calc_gus_envelope_time()
860 if (t < 0) t = -t; in calc_gus_envelope_time()
862 t = t << (13 - r); in calc_gus_envelope_time()
864 t = t >> (r - 13); in calc_gus_envelope_time()
865 return (t * 10) / (p * 441); in calc_gus_envelope_time()
/sound/usb/
Dmixer_quirks.c141 struct std_mono_table *t) in snd_create_std_mono_table() argument
145 while (t->name != NULL) { in snd_create_std_mono_table()
146 err = snd_create_std_mono_ctl(mixer, t->unitid, t->control, in snd_create_std_mono_table()
147 t->cmask, t->val_type, t->name, t->tlv_callback); in snd_create_std_mono_table()
150 t++; in snd_create_std_mono_table()

123