Home
last modified time | relevance | path

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

1234

/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()
243 t.deferrable = (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03); in fcp_avc_transaction()
246 list_add_tail(&t.list, &transactions); in fcp_avc_transaction()
252 ret = snd_fw_transaction(t.unit, tcode, in fcp_avc_transaction()
[all …]
/sound/firewire/fireworks/
Dfireworks_transaction.c74 struct transaction_queue t; in snd_efw_transaction_run() local
78 t.unit = unit; in snd_efw_transaction_run()
79 t.buf = resp; in snd_efw_transaction_run()
80 t.size = resp_size; in snd_efw_transaction_run()
81 t.seqnum = be32_to_cpu(((struct snd_efw_transaction *)cmd)->seqnum) + 1; in snd_efw_transaction_run()
82 t.state = STATE_PENDING; in snd_efw_transaction_run()
83 init_waitqueue_head(&t.wait); in snd_efw_transaction_run()
86 list_add_tail(&t.list, &transaction_queues); in snd_efw_transaction_run()
91 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run()
95 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run()
[all …]
Dfireworks_pcm.c71 struct snd_interval t = { in hw_rule_rate() local
81 t.min = min(t.min, freq_table[i]); in hw_rule_rate()
82 t.max = max(t.max, freq_table[i]); in hw_rule_rate()
85 return snd_interval_refine(r, &t); in hw_rule_rate()
96 struct snd_interval t = { in hw_rule_channels() local
106 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
107 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
110 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/core/
Dhrtimer.c33 struct snd_timer *t = stime->timer; in snd_hrtimer_callback() local
38 spin_lock(&t->lock); in snd_hrtimer_callback()
39 if (!t->running) in snd_hrtimer_callback()
42 ticks = t->sticks; in snd_hrtimer_callback()
43 spin_unlock(&t->lock); in snd_hrtimer_callback()
52 spin_lock(&t->lock); in snd_hrtimer_callback()
53 if (t->running) { in snd_hrtimer_callback()
54 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback()
60 spin_unlock(&t->lock); in snd_hrtimer_callback()
64 static int snd_hrtimer_open(struct snd_timer *t) in snd_hrtimer_open() argument
[all …]
Dtimer_compat.c52 struct snd_timer *t; in snd_timer_user_info_compat() local
57 t = tu->timeri->timer; in snd_timer_user_info_compat()
58 if (!t) in snd_timer_user_info_compat()
61 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat()
62 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_info_compat()
64 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat()
65 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat()
66 info.resolution = t->hw.resolution; in snd_timer_user_info_compat()
Dtimer.c335 struct snd_timer_instance *t = in snd_timer_open() local
338 if (t->flags & SNDRV_TIMER_IFLG_EXCLUSIVE) { in snd_timer_open()
1146 static void snd_timer_s_function(struct timer_list *t) in snd_timer_s_function() argument
1148 struct snd_timer_system_private *priv = from_timer(priv, t, in snd_timer_s_function()
1646 struct snd_timer *t; in snd_timer_user_ginfo() local
1658 t = snd_timer_find(&tid); in snd_timer_user_ginfo()
1659 if (t != NULL) { in snd_timer_user_ginfo()
1660 ginfo->card = t->card ? t->card->number : -1; in snd_timer_user_ginfo()
1661 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_ginfo()
1663 strlcpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
[all …]
Dpcm_drm_eld.c58 struct snd_interval t = { .min = 1, .max = 2, .integer = 1, }; in eld_limit_channels() local
74 t.max = max(t.max, sad_max_channels(sad)); in eld_limit_channels()
77 return snd_interval_refine(c, &t); in eld_limit_channels()
Dpcm_lib.c792 struct snd_interval t; in snd_interval_ratnum() local
830 t.min = div_down(best_num, best_den); in snd_interval_ratnum()
831 t.openmin = !!(best_num % best_den); in snd_interval_ratnum()
871 t.max = div_up(best_num, best_den); in snd_interval_ratnum()
872 t.openmax = !!(best_num % best_den); in snd_interval_ratnum()
873 t.integer = 0; in snd_interval_ratnum()
874 err = snd_interval_refine(i, &t); in snd_interval_ratnum()
910 struct snd_interval t; in snd_interval_ratden() local
942 t.min = div_down(best_num, best_den); in snd_interval_ratden()
943 t.openmin = !!(best_num % best_den); in snd_interval_ratden()
[all …]
/sound/core/seq/
Dseq_timer.c60 struct snd_seq_timer *t = *tmr; in snd_seq_timer_delete() local
63 if (t == NULL) { in snd_seq_timer_delete()
67 t->running = 0; in snd_seq_timer_delete()
70 snd_seq_timer_stop(t); in snd_seq_timer_delete()
71 snd_seq_timer_reset(t); in snd_seq_timer_delete()
73 kfree(t); in snd_seq_timer_delete()
260 struct snd_timer_instance *t; in snd_seq_timer_open() local
275 t = snd_timer_instance_new(str); in snd_seq_timer_open()
276 if (!t) in snd_seq_timer_open()
278 t->callback = snd_seq_timer_interrupt; in snd_seq_timer_open()
[all …]
/sound/soc/codecs/
Drt5677-spi.c474 struct spi_transfer t[2]; in rt5677_spi_read() local
490 memset(t, 0, sizeof(t)); in rt5677_spi_read()
491 t[0].tx_buf = header; in rt5677_spi_read()
492 t[0].len = sizeof(header); in rt5677_spi_read()
493 t[0].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
494 t[1].rx_buf = body; in rt5677_spi_read()
495 t[1].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
496 spi_message_init_with_transfers(&m, t, ARRAY_SIZE(t)); in rt5677_spi_read()
498 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
500 len - offset, &t[1].len); in rt5677_spi_read()
[all …]
Dwm0010.c121 struct spi_transfer t; member
196 struct spi_transfer t; member
220 u32 *out32 = xfer->t.rx_buf; in wm0010_boot_xfer_complete()
232 for (i = 0; i < xfer->t.len / 4; i++) { in wm0010_boot_xfer_complete()
423 xfer->t.rx_buf = out; in wm0010_firmware_load()
430 xfer->t.tx_buf = img; in wm0010_firmware_load()
437 xfer->t.len = len; in wm0010_firmware_load()
438 xfer->t.bits_per_word = 8; in wm0010_firmware_load()
441 xfer->t.speed_hz = wm0010->sysclk / 6; in wm0010_firmware_load()
443 xfer->t.speed_hz = wm0010->max_spi_freq; in wm0010_firmware_load()
[all …]
Dtas2552.c187 unsigned int d, q, t; in tas2552_setup_pll() local
195 t = (pll_clk * 2) << p; in tas2552_setup_pll()
196 j = t / pll_clkin; in tas2552_setup_pll()
197 d = t % pll_clkin; in tas2552_setup_pll()
198 t = pll_clkin / 10000; in tas2552_setup_pll()
199 q = d / (t + 1); in tas2552_setup_pll()
200 d = q + ((9999 - pll_clkin % 10000) * (d / t - q)) / 10000; in tas2552_setup_pll()
/sound/firewire/digi00x/
Ddigi00x-pcm.c17 struct snd_interval t = { in hw_rule_rate() local
27 t.min = min(t.min, snd_dg00x_stream_rates[i]); in hw_rule_rate()
28 t.max = max(t.max, snd_dg00x_stream_rates[i]); in hw_rule_rate()
31 return snd_interval_refine(r, &t); in hw_rule_rate()
41 struct snd_interval t = { in hw_rule_channels() local
50 t.min = min(t.min, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
51 t.max = max(t.max, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
54 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/firewire/bebob/
Dbebob_pcm.c18 struct snd_interval t = { in hw_rule_rate() local
31 t.min = min(t.min, snd_bebob_rate_table[i]); in hw_rule_rate()
32 t.max = max(t.max, snd_bebob_rate_table[i]); in hw_rule_rate()
35 return snd_interval_refine(r, &t); in hw_rule_rate()
46 struct snd_interval t = { in hw_rule_channels() local
60 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
61 t.max = max(t.max, formations[i].pcm); in hw_rule_channels()
64 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/firewire/fireface/
Dff-pcm.c18 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
65 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
66 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
69 return snd_interval_refine(c, &t); in hw_rule_channels()
/sound/soc/au1x/
Dpsc-ac97.c213 int chans, t, stype = substream->stream; in au1xpsc_ac97_hw_params() local
255 t = 100; in au1xpsc_ac97_hw_params()
256 while ((__raw_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR) && --t) in au1xpsc_ac97_hw_params()
259 if (!t) in au1xpsc_ac97_hw_params()
271 t = 100; in au1xpsc_ac97_hw_params()
272 while ((!(__raw_readl(AC97_STAT(pscdata)) & PSC_AC97STAT_DR)) && --t) in au1xpsc_ac97_hw_params()
275 if (!t) in au1xpsc_ac97_hw_params()
/sound/pci/
Dens1370.c506 unsigned int t, r = 0; in snd_es1371_wait_src_ready() local
508 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_wait_src_ready()
604 unsigned int t, x, flag; in snd_es1371_codec_write() local
608 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
617 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
623 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_write()
646 unsigned int t, x, flag, fail = 0; in snd_es1371_codec_read() local
651 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
660 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
666 for (t = 0; t < POLL_COUNT; t++) { in snd_es1371_codec_read()
[all …]
/sound/drivers/
DKconfig55 If you don't have a sound card in your computer, you can include a
71 You don't need this driver if you only want your pc-speaker to beep.
72 You don't need this driver if you have a tablet piezo beeper
76 Say M if you don't.
86 You don't need this unless you're testing the hardware support
124 If you don't know what MIDI is, say N here.
135 the standard parallel port driver isn't used for the port.
162 make sure that the standard serial driver isn't used or
212 isn't recommended because many applications try to reopen
Daloop.c657 static void loopback_jiffies_timer_function(struct timer_list *t) in loopback_jiffies_timer_function() argument
659 struct loopback_pcm *dpcm = from_timer(dpcm, t, timer); in loopback_jiffies_timer_function()
949 struct snd_interval t; in rule_rate() local
952 t.min = cable->hw.rate_min; in rule_rate()
953 t.max = cable->hw.rate_max; in rule_rate()
955 t.openmin = t.openmax = 0; in rule_rate()
956 t.integer = 0; in rule_rate()
957 return snd_interval_refine(hw_param_interval(params, rule->var), &t); in rule_rate()
965 struct snd_interval t; in rule_channels() local
968 t.min = cable->hw.channels_min; in rule_channels()
[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/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.c419 struct channel_map_table *t = map_tables; in snd_hdac_chmap_to_spk_mask() local
421 for (; t->map; t++) { in snd_hdac_chmap_to_spk_mask()
422 if (t->map == c) in snd_hdac_chmap_to_spk_mask()
423 return t->spk_mask; in snd_hdac_chmap_to_spk_mask()
454 struct channel_map_table *t = map_tables; in snd_hdac_spk_to_chmap() local
456 for (; t->map; t++) { in snd_hdac_spk_to_chmap()
457 if (t->spk_mask == spk) in snd_hdac_spk_to_chmap()
458 return t->map; in snd_hdac_spk_to_chmap()
/sound/usb/
Dvalidate.c233 #define FIXED(p, t, s) { .protocol = (p), .type = (t), .size = sizeof(s) } argument
234 #define FUNC(p, t, f) { .protocol = (p), .type = (t), .func = (f) } argument
/sound/core/seq/oss/
Dseq_oss_readq.c227 rec.t.code = EV_TIMING; in snd_seq_oss_readq_put_timestamp()
228 rec.t.cmd = TMR_WAIT_ABS; in snd_seq_oss_readq_put_timestamp()
229 rec.t.time = curt; in snd_seq_oss_readq_put_timestamp()

1234