Home
last modified time | relevance | path

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

123

/sound/firewire/
Dfcp.c234 struct fcp_transaction t; in fcp_avc_transaction() local
237 t.unit = unit; in fcp_avc_transaction()
238 t.response_buffer = response; in fcp_avc_transaction()
239 t.response_size = response_size; in fcp_avc_transaction()
240 t.response_match_bytes = response_match_bytes; in fcp_avc_transaction()
241 t.state = STATE_PENDING; in fcp_avc_transaction()
242 init_waitqueue_head(&t.wait); in fcp_avc_transaction()
245 t.deferrable = true; in fcp_avc_transaction()
248 list_add_tail(&t.list, &transactions); in fcp_avc_transaction()
254 ret = snd_fw_transaction(t.unit, tcode, in fcp_avc_transaction()
[all …]
/sound/firewire/fireworks/
Dfireworks_transaction.c75 struct transaction_queue t; in snd_efw_transaction_run() local
79 t.unit = unit; in snd_efw_transaction_run()
80 t.buf = resp; in snd_efw_transaction_run()
81 t.size = resp_size; in snd_efw_transaction_run()
82 t.seqnum = be32_to_cpu(((struct snd_efw_transaction *)cmd)->seqnum) + 1; in snd_efw_transaction_run()
83 t.state = STATE_PENDING; in snd_efw_transaction_run()
84 init_waitqueue_head(&t.wait); in snd_efw_transaction_run()
87 list_add_tail(&t.list, &transaction_queues); in snd_efw_transaction_run()
92 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run()
96 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run()
[all …]
Dfireworks_pcm.c72 struct snd_interval t = { in hw_rule_rate() local
82 t.min = min(t.min, freq_table[i]); in hw_rule_rate()
83 t.max = max(t.max, freq_table[i]); in hw_rule_rate()
86 return snd_interval_refine(r, &t); in hw_rule_rate()
97 struct snd_interval t = { in hw_rule_channels() local
107 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
108 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
111 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/core/
Dhrtimer.c47 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() local
52 spin_lock(&t->lock); in snd_hrtimer_callback()
53 if (!t->running) in snd_hrtimer_callback()
56 ticks = t->sticks; in snd_hrtimer_callback()
57 spin_unlock(&t->lock); in snd_hrtimer_callback()
66 spin_lock(&t->lock); in snd_hrtimer_callback()
67 if (t->running) { in snd_hrtimer_callback()
68 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback()
74 spin_unlock(&t->lock); in snd_hrtimer_callback()
78 static int snd_hrtimer_open(struct snd_timer *t) in snd_hrtimer_open() argument
[all …]
Dtimer_compat.c66 struct snd_timer *t; in snd_timer_user_info_compat() local
71 t = tu->timeri->timer; in snd_timer_user_info_compat()
72 if (!t) in snd_timer_user_info_compat()
75 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat()
76 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_info_compat()
78 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat()
79 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat()
80 info.resolution = t->hw.resolution; in snd_timer_user_info_compat()
Dtimer.c309 struct snd_timer_instance *t = in snd_timer_open() local
312 if (t->flags & SNDRV_TIMER_IFLG_EXCLUSIVE) { in snd_timer_open()
1589 struct snd_timer *t; in snd_timer_user_ginfo() local
1601 t = snd_timer_find(&tid); in snd_timer_user_ginfo()
1602 if (t != NULL) { in snd_timer_user_ginfo()
1603 ginfo->card = t->card ? t->card->number : -1; in snd_timer_user_ginfo()
1604 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_ginfo()
1606 strlcpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
1607 strlcpy(ginfo->name, t->name, sizeof(ginfo->name)); in snd_timer_user_ginfo()
1608 ginfo->resolution = t->hw.resolution; in snd_timer_user_ginfo()
[all …]
Dpcm_drm_eld.c61 struct snd_interval t = { .min = 1, .max = 2, .integer = 1, }; in eld_limit_channels() local
77 t.max = max(t.max, sad_max_channels(sad)); in eld_limit_channels()
80 return snd_interval_refine(c, &t); in eld_limit_channels()
Dpcm_lib.c798 struct snd_interval t; in snd_interval_ratnum() local
836 t.min = div_down(best_num, best_den); in snd_interval_ratnum()
837 t.openmin = !!(best_num % best_den); in snd_interval_ratnum()
877 t.max = div_up(best_num, best_den); in snd_interval_ratnum()
878 t.openmax = !!(best_num % best_den); in snd_interval_ratnum()
879 t.integer = 0; in snd_interval_ratnum()
880 err = snd_interval_refine(i, &t); in snd_interval_ratnum()
916 struct snd_interval t; in snd_interval_ratden() local
948 t.min = div_down(best_num, best_den); in snd_interval_ratden()
949 t.openmin = !!(best_num % best_den); in snd_interval_ratden()
[all …]
/sound/soc/codecs/
Drt5677-spi.c116 struct spi_transfer t[2]; in rt5677_spi_read() local
132 memset(t, 0, sizeof(t)); in rt5677_spi_read()
133 t[0].tx_buf = header; in rt5677_spi_read()
134 t[0].len = sizeof(header); in rt5677_spi_read()
135 t[0].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
136 t[1].rx_buf = body; in rt5677_spi_read()
137 t[1].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
138 spi_message_init_with_transfers(&m, t, ARRAY_SIZE(t)); in rt5677_spi_read()
140 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
142 len - offset, &t[1].len); in rt5677_spi_read()
[all …]
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()
427 xfer->t.rx_buf = out; in wm0010_firmware_load()
434 xfer->t.tx_buf = img; in wm0010_firmware_load()
441 xfer->t.len = len; in wm0010_firmware_load()
442 xfer->t.bits_per_word = 8; in wm0010_firmware_load()
445 xfer->t.speed_hz = wm0010->sysclk / 6; in wm0010_firmware_load()
447 xfer->t.speed_hz = wm0010->max_spi_freq; in wm0010_firmware_load()
[all …]
Dtas2552.c195 unsigned int d, q, t; in tas2552_setup_pll() local
203 t = (pll_clk * 2) << p; in tas2552_setup_pll()
204 j = t / pll_clkin; in tas2552_setup_pll()
205 d = t % pll_clkin; in tas2552_setup_pll()
206 t = pll_clkin / 10000; in tas2552_setup_pll()
207 q = d / (t + 1); in tas2552_setup_pll()
208 d = q + ((9999 - pll_clkin % 10000) * (d / t - q)) / 10000; in tas2552_setup_pll()
/sound/core/seq/
Dseq_timer.c75 struct snd_seq_timer *t = *tmr; in snd_seq_timer_delete() local
78 if (t == NULL) { in snd_seq_timer_delete()
82 t->running = 0; in snd_seq_timer_delete()
85 snd_seq_timer_stop(t); in snd_seq_timer_delete()
86 snd_seq_timer_reset(t); in snd_seq_timer_delete()
88 kfree(t); in snd_seq_timer_delete()
272 struct snd_timer_instance *t; in snd_seq_timer_open() local
287 err = snd_timer_open(&t, str, &tmr->alsa_id, q->queue); in snd_seq_timer_open()
297 err = snd_timer_open(&t, str, &tid, q->queue); in snd_seq_timer_open()
304 t->callback = snd_seq_timer_interrupt; in snd_seq_timer_open()
[all …]
/sound/firewire/digi00x/
Ddigi00x-pcm.c18 struct snd_interval t = { in hw_rule_rate() local
28 t.min = min(t.min, snd_dg00x_stream_rates[i]); in hw_rule_rate()
29 t.max = max(t.max, snd_dg00x_stream_rates[i]); in hw_rule_rate()
32 return snd_interval_refine(r, &t); in hw_rule_rate()
42 struct snd_interval t = { in hw_rule_channels() local
51 t.min = min(t.min, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
52 t.max = max(t.max, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
55 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/firewire/fireface/
Dff-pcm.c24 struct snd_interval t = { in hw_rule_rate() local
34 t.min = min(t.min, amdtp_rate_table[i]); in hw_rule_rate()
35 t.max = max(t.max, amdtp_rate_table[i]); in hw_rule_rate()
38 return snd_interval_refine(r, &t); in hw_rule_rate()
49 struct snd_interval t = { in hw_rule_channels() local
59 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
60 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
63 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/firewire/bebob/
Dbebob_pcm.c19 struct snd_interval t = { in hw_rule_rate() local
32 t.min = min(t.min, snd_bebob_rate_table[i]); in hw_rule_rate()
33 t.max = max(t.max, snd_bebob_rate_table[i]); in hw_rule_rate()
36 return snd_interval_refine(r, &t); in hw_rule_rate()
47 struct snd_interval t = { in hw_rule_channels() local
61 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
62 t.max = max(t.max, formations[i].pcm); in hw_rule_channels()
65 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/soc/au1x/
Dpsc-ac97.c217 int chans, t, stype = substream->stream; in au1xpsc_ac97_hw_params() local
259 t = 100; in au1xpsc_ac97_hw_params()
260 while ((__raw_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR) && --t) in au1xpsc_ac97_hw_params()
263 if (!t) in au1xpsc_ac97_hw_params()
275 t = 100; in au1xpsc_ac97_hw_params()
276 while ((!(__raw_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR)) && --t) in au1xpsc_ac97_hw_params()
279 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()
/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/soc/sti/
Dsti_uniperif.c167 struct snd_interval t; in sti_uniperiph_fix_tdm_chan() local
169 t.min = uni->tdm_slot.avail_slots; in sti_uniperiph_fix_tdm_chan()
170 t.max = uni->tdm_slot.avail_slots; in sti_uniperiph_fix_tdm_chan()
171 t.openmin = 0; in sti_uniperiph_fix_tdm_chan()
172 t.openmax = 0; in sti_uniperiph_fix_tdm_chan()
173 t.integer = 0; in sti_uniperiph_fix_tdm_chan()
175 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in sti_uniperiph_fix_tdm_chan()
/sound/drivers/
DKconfig54 If you don't have a sound card in your computer, you can include a
70 You don't need this driver if you only want your pc-speaker to beep.
71 You don't need this driver if you have a tablet piezo beeper
75 Say M if you don't.
85 You don't need this unless you're testing the hardware support
122 If you don't know what MIDI is, say N here.
133 the standard parallel port driver isn't used for the port.
160 make sure that the standard serial driver isn't used or
222 isn't recommended because many applications try to reopen
Daloop.c635 struct snd_interval t; in rule_rate() local
638 t.min = cable->hw.rate_min; in rule_rate()
639 t.max = cable->hw.rate_max; in rule_rate()
641 t.openmin = t.openmax = 0; in rule_rate()
642 t.integer = 0; in rule_rate()
643 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
651 struct snd_interval t; in rule_channels() local
654 t.min = cable->hw.channels_min; in rule_channels()
655 t.max = cable->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()
/sound/firewire/oxfw/
Doxfw-pcm.c18 struct snd_interval t = { in hw_rule_rate() local
34 t.min = min(t.min, formation.rate); in hw_rule_rate()
35 t.max = max(t.max, formation.rate); in hw_rule_rate()
38 return snd_interval_refine(r, &t); in hw_rule_rate()
/sound/hda/
Dhdmi_chmap.c418 struct channel_map_table *t = map_tables; in snd_hdac_chmap_to_spk_mask() local
420 for (; t->map; t++) { in snd_hdac_chmap_to_spk_mask()
421 if (t->map == c) in snd_hdac_chmap_to_spk_mask()
422 return t->spk_mask; in snd_hdac_chmap_to_spk_mask()
453 struct channel_map_table *t = map_tables; in snd_hdac_spk_to_chmap() local
455 for (; t->map; t++) { in snd_hdac_spk_to_chmap()
456 if (t->spk_mask == spk) in snd_hdac_spk_to_chmap()
457 return t->map; in snd_hdac_spk_to_chmap()
/sound/core/seq/oss/
Dseq_oss_readq.c240 rec.t.code = EV_TIMING; in snd_seq_oss_readq_put_timestamp()
241 rec.t.cmd = TMR_WAIT_ABS; in snd_seq_oss_readq_put_timestamp()
242 rec.t.time = curt; in snd_seq_oss_readq_put_timestamp()

123