Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 42) sorted by relevance

12

/sound/firewire/
Dlib.c87 u64 now, delay; in snd_fw_schedule_registration() local
90 delay = fw_parent_device(unit)->card->reset_jiffies in snd_fw_schedule_registration()
93 if (time_after64(delay, now)) in snd_fw_schedule_registration()
94 delay -= now; in snd_fw_schedule_registration()
96 delay = 0; in snd_fw_schedule_registration()
98 mod_delayed_work(system_wq, dwork, delay); in snd_fw_schedule_registration()
Diso-resources.c82 s64 delay = (card->reset_jiffies + HZ) - get_jiffies_64(); in wait_isoch_resource_delay_after_bus_reset() local
83 if (delay <= 0) in wait_isoch_resource_delay_after_bus_reset()
85 if (schedule_timeout_interruptible(delay) > 0) in wait_isoch_resource_delay_after_bus_reset()
/sound/pci/hda/
Dhda_controller_trace.h37 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay),
39 TP_ARGS(chip, dev, pos, delay),
45 __field( unsigned int, delay )
52 __entry->delay = delay;
55 TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay)
Dhda_intel.c623 int delay; in azx_get_delay_from_lpib() local
626 delay = pos - lpib_pos; in azx_get_delay_from_lpib()
628 delay = lpib_pos - pos; in azx_get_delay_from_lpib()
629 if (delay < 0) { in azx_get_delay_from_lpib()
630 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib()
631 delay = 0; in azx_get_delay_from_lpib()
633 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib()
636 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib()
639 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib()
640 delay = 0; in azx_get_delay_from_lpib()
[all …]
Dhda_controller.c299 int delay = 0; in azx_get_position() local
314 delay += chip->get_delay[stream](chip, azx_dev, pos); in azx_get_position()
316 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position()
318 substream->runtime->delay = delay; in azx_get_position()
321 trace_azx_get_position(chip, azx_dev, pos, delay); in azx_get_position()
/sound/pci/emu10k1/
Dtimer.c22 unsigned int delay; in snd_emu10k1_timer_start() local
25 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
26 if (delay < 5 ) /* minimum time is 5 ticks */ in snd_emu10k1_timer_start()
27 delay = 5; in snd_emu10k1_timer_start()
30 outw(delay & TIMER_RATE_MASK, emu->port + TIMER); in snd_emu10k1_timer_start()
/sound/soc/codecs/
Dtlv320dac33.c648 unsigned int delay; in dac33_prefill_handler() local
665 delay = SAMPLES_TO_US(dac33->burst_rate, in dac33_prefill_handler()
667 usleep_range(delay, delay + 500); in dac33_prefill_handler()
1145 snd_pcm_sframes_t delay = 0; in dac33_dai_delay() local
1173 delay = dac33->alarm_threshold - samples_out; in dac33_dai_delay()
1175 delay = 0; in dac33_dai_delay()
1195 delay = samples; in dac33_dai_delay()
1197 delay = 0; in dac33_dai_delay()
1213 delay = samples > dac33->fifo_size ? in dac33_dai_delay()
1216 delay = 0; in dac33_dai_delay()
[all …]
Dtas2552.c330 int delay = 0; in tas2552_prepare() local
334 delay += (tas2552->tdm_delay + 1); in tas2552_prepare()
336 delay += tas2552->tdm_delay; in tas2552_prepare()
339 snd_soc_component_write(component, TAS2552_SER_CTRL_2, delay); in tas2552_prepare()
Dtlv320aic3x.c1201 int delay = 0; in aic3x_prepare() local
1209 delay += (aic3x->tdm_delay*width + 1); in aic3x_prepare()
1211 delay += aic3x->tdm_delay*width; in aic3x_prepare()
1214 snd_soc_component_write(component, AIC3X_ASD_INTF_CTRLC, delay); in aic3x_prepare()
/sound/soc/
Dsoc-dai.c349 int delay = 0; in snd_soc_dai_delay() local
351 if (dai->driver->ops->delay) in snd_soc_dai_delay()
352 delay = dai->driver->ops->delay(substream, dai); in snd_soc_dai_delay()
354 return delay; in snd_soc_dai_delay()
/sound/core/
Dpcm_compat.c15 snd_pcm_sframes_t delay; in snd_pcm_ioctl_delay_compat() local
18 err = snd_pcm_delay(substream, &delay); in snd_pcm_ioctl_delay_compat()
21 if (put_user(delay, src)) in snd_pcm_ioctl_delay_compat()
177 s32 delay; member
217 put_user(status.delay, &src->delay) || in snd_pcm_status_user_compat()
240 s32 delay; member
281 put_user(status.delay, &src->delay) || in snd_pcm_status_user_x32()
Dpcm_native.c905 snd_pcm_uframes_t delay; in snd_pcm_calc_delay() local
908 delay = snd_pcm_playback_hw_avail(substream->runtime); in snd_pcm_calc_delay()
910 delay = snd_pcm_capture_avail(substream->runtime); in snd_pcm_calc_delay()
911 return delay + substream->runtime->delay; in snd_pcm_calc_delay()
966 status->delay = snd_pcm_running(substream) ? in snd_pcm_status()
2802 snd_pcm_sframes_t *delay) in snd_pcm_delay() argument
2813 *delay = n; in snd_pcm_delay()
3017 snd_pcm_sframes_t delay; in snd_pcm_common_ioctl() local
3021 err = snd_pcm_delay(substream, &delay); in snd_pcm_common_ioctl()
3024 if (put_user(delay, res)) in snd_pcm_common_ioctl()
/sound/firewire/motu/
Damdtp-motu.c63 unsigned int delay; in amdtp_motu_set_parameters() local
105 delay = 0x2e00; in amdtp_motu_set_parameters()
108 delay += 8000 * 3072 * s->syt_interval / rate; in amdtp_motu_set_parameters()
111 p->next_cycles = delay / 3072; in amdtp_motu_set_parameters()
114 p->next_ticks = delay % 3072; in amdtp_motu_set_parameters()
/sound/soc/samsung/
Ds3c-i2s-v2.c531 snd_pcm_sframes_t delay; in s3c2412_i2s_delay() local
534 delay = S3C2412_IISFIC_TXCOUNT(reg); in s3c2412_i2s_delay()
536 delay = S3C2412_IISFIC_RXCOUNT(reg); in s3c2412_i2s_delay()
538 return delay; in s3c2412_i2s_delay()
727 if (!ops->delay) in s3c_i2sv2_register_component()
728 ops->delay = s3c2412_i2s_delay; in s3c_i2sv2_register_component()
Di2s.c1012 snd_pcm_sframes_t delay; in i2s_delay() local
1017 delay = FIC_RXCOUNT(reg); in i2s_delay()
1019 delay = FICS_TXCOUNT(readl(priv->addr + I2SFICS)); in i2s_delay()
1021 delay = (reg >> priv->variant_regs->ftx0cnt_off) & 0x7f; in i2s_delay()
1023 return delay; in i2s_delay()
1115 .delay = i2s_delay,
/sound/core/oss/
Dpcm_oss.c1204 …t snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay) in snd_pcm_oss_capture_position_fixup() argument
1211 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, delay); in snd_pcm_oss_capture_position_fixup()
1215 if (*delay <= (snd_pcm_sframes_t)runtime->buffer_size) in snd_pcm_oss_capture_position_fixup()
1219 frames = (*delay - runtime->buffer_size) + runtime->period_size - 1; in snd_pcm_oss_capture_position_fixup()
1261 snd_pcm_sframes_t delay; in snd_pcm_oss_read3() local
1280 ret = snd_pcm_oss_capture_position_fixup(substream, &delay); in snd_pcm_oss_read3()
2155 snd_pcm_sframes_t delay; in snd_pcm_oss_get_odelay() local
2166 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay); in snd_pcm_oss_get_odelay()
2168 delay = 0; /* hack for broken OSS applications */ in snd_pcm_oss_get_odelay()
2171 return snd_pcm_oss_bytes(substream, delay); in snd_pcm_oss_get_odelay()
[all …]
/sound/soc/ux500/
Dux500_msp_dai.h66 int ux500_msp_dai_set_data_delay(struct snd_soc_dai *dai, int delay);
/sound/soc/mxs/
Dmxs-saif.c522 u32 delay; in mxs_saif_trigger() local
606 delay = USEC_PER_SEC / master_saif->cur_rate; in mxs_saif_trigger()
611 udelay(delay); in mxs_saif_trigger()
618 udelay(delay); in mxs_saif_trigger()
/sound/pci/au88x0/
Dau88x0_wt.h51 delay, /* b W All 4 values are written at once with same value. */
/sound/pci/
Dazt3328.c801 int chan_sel, int delay in snd_azf3328_mixer_write_volume_gradually() argument
845 if (delay) in snd_azf3328_mixer_write_volume_gradually()
846 mdelay(delay); in snd_azf3328_mixer_write_volume_gradually()
2177 unsigned int delay; in snd_azf3328_timer_start() local
2180 delay = ((timer->sticks * seqtimer_scaling) - 1) & TIMER_VALUE_MASK; in snd_azf3328_timer_start()
2181 if (delay < 49) { in snd_azf3328_timer_start()
2186 dev_dbg(chip->card->dev, "delay was too low (%d)!\n", delay); in snd_azf3328_timer_start()
2187 delay = 49; /* minimum time is 49 ticks */ in snd_azf3328_timer_start()
2189 dev_dbg(chip->card->dev, "setting timer countdown value %d\n", delay); in snd_azf3328_timer_start()
2190 delay |= TIMER_COUNTDOWN_ENABLE | TIMER_IRQ_ENABLE; in snd_azf3328_timer_start()
[all …]
/sound/ppc/
DKconfig49 int "Startup delay time in ms"
/sound/usb/
Dpcm.c75 substream->runtime->delay = snd_usb_pcm_delay(subs, in snd_usb_pcm_pointer()
1111 runtime->delay = 0; in snd_usb_pcm_prepare()
1620 runtime->delay = subs->last_delay = 0; in retire_capture_urb()
1834 runtime->delay = subs->last_delay; in prepare_playback_urb()
1835 runtime->delay += frames; in prepare_playback_urb()
1836 subs->last_delay = runtime->delay; in prepare_playback_urb()
1885 runtime->delay = subs->last_delay; in retire_playback_urb()
/sound/soc/ti/
Domap-mcbsp.c908 snd_pcm_sframes_t delay; in omap_mcbsp_dai_delay() local
924 delay = fifo_use / substream->runtime->channels; in omap_mcbsp_dai_delay()
926 return delay; in omap_mcbsp_dai_delay()
1278 .delay = omap_mcbsp_dai_delay,
/sound/soc/amd/
Dacp-pcm-dma.c1020 u32 period_bytes, delay; in acp_dma_pointer() local
1043 delay = do_div(bytescount, period_bytes); in acp_dma_pointer()
1044 runtime->delay = bytes_to_frames(runtime, delay); in acp_dma_pointer()
/sound/usb/misc/
Dua101.c192 ua->playback.substream->runtime->delay -= in playback_urb_complete()
307 ua->playback.substream->runtime->delay += frames; in playback_tasklet()
660 substream->runtime->delay = substream->runtime->hw.fifo_size; in capture_pcm_open()
815 substream->runtime->delay = 0; in playback_pcm_prepare()

12