Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 20 of 20) sorted by relevance

/sound/core/
Dhrtimer.c34 ktime_t delta; in snd_hrtimer_callback() local
46 delta = ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt)); in snd_hrtimer_callback()
47 if (delta > 0) in snd_hrtimer_callback()
48 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback()
Dpcm_lib.c253 snd_pcm_sframes_t hdelta, delta; in snd_pcm_update_hw_ptr0() local
307 delta = runtime->hw_ptr_interrupt + runtime->period_size; in snd_pcm_update_hw_ptr0()
308 if (delta > new_hw_ptr) { in snd_pcm_update_hw_ptr0()
333 delta = new_hw_ptr - old_hw_ptr; in snd_pcm_update_hw_ptr0()
334 if (delta < 0) in snd_pcm_update_hw_ptr0()
335 delta += runtime->boundary; in snd_pcm_update_hw_ptr0()
346 hdelta = jdelta - delta * HZ / runtime->rate; in snd_pcm_update_hw_ptr0()
349 delta += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
362 if (delta >= runtime->buffer_size + runtime->period_size) { in snd_pcm_update_hw_ptr0()
380 hdelta = delta; in snd_pcm_update_hw_ptr0()
[all …]
/sound/pci/au88x0/
Dau88x0_core.c1167 int page, p, pp, delta, i; in vortex_adbdma_bufshift() local
1173 delta = (page - dma->period_real) & 3; in vortex_adbdma_bufshift()
1175 delta = (page - dma->period_real); in vortex_adbdma_bufshift()
1176 if (delta < 0) in vortex_adbdma_bufshift()
1177 delta += dma->nr_periods; in vortex_adbdma_bufshift()
1179 if (delta == 0) in vortex_adbdma_bufshift()
1184 for (i = 0; i < delta; i++) { in vortex_adbdma_bufshift()
1203 dma->period_virt += delta; in vortex_adbdma_bufshift()
1207 if (delta != 1) in vortex_adbdma_bufshift()
1210 adbdma, dma->period_virt, dma->period_real, delta); in vortex_adbdma_bufshift()
[all …]
/sound/soc/ti/
DMakefile32 snd-soc-ams-delta-objs := ams-delta.o
42 obj-$(CONFIG_SND_SOC_OMAP_AMS_DELTA) += snd-soc-ams-delta.o
/sound/soc/sti/
Duniperif_player.c156 int rate_adjusted, rate_achieved, delta, ret; in uni_player_clk_set_rate() local
176 delta = -1; in uni_player_clk_set_rate()
179 delta = 1; in uni_player_clk_set_rate()
182 delta *= (int)div64_u64((uint64_t)rate * in uni_player_clk_set_rate()
184 rate_adjusted = rate + delta; in uni_player_clk_set_rate()
203 delta = rate_achieved - rate; in uni_player_clk_set_rate()
204 if (delta < 0) { in uni_player_clk_set_rate()
206 delta = -delta; in uni_player_clk_set_rate()
212 adjustment *= (int)div64_u64((uint64_t)delta * 1000000 + rate / 2, in uni_player_clk_set_rate()
/sound/drivers/
Ddummy.c244 unsigned long delta; in dummy_systimer_update() local
246 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
247 if (!delta) in dummy_systimer_update()
249 dpcm->base_time += delta; in dummy_systimer_update()
250 delta *= dpcm->rate; in dummy_systimer_update()
251 dpcm->frac_pos += delta; in dummy_systimer_update()
254 while (dpcm->frac_period_rest <= delta) { in dummy_systimer_update()
258 dpcm->frac_period_rest -= delta; in dummy_systimer_update()
416 u64 delta; in dummy_hrtimer_pointer() local
419 delta = ktime_us_delta(hrtimer_cb_get_time(&dpcm->timer), in dummy_hrtimer_pointer()
[all …]
Daloop.c437 unsigned int delta; in bytepos_delta() local
441 delta = byte_pos(dpcm, dpcm->irq_pos) - last_pos; in bytepos_delta()
442 if (delta >= dpcm->last_drift) in bytepos_delta()
443 delta -= dpcm->last_drift; in bytepos_delta()
449 return delta; in bytepos_delta()
453 unsigned int delta) in bytepos_finish() argument
455 dpcm->buf_pos += delta; in bytepos_finish()
/sound/pci/
Dsis7019.c349 u32 delta; in sis_rate_to_delta() local
360 delta = 0xeb3; in sis_rate_to_delta()
362 delta = 0x2ab; in sis_rate_to_delta()
364 delta = 0x1000; in sis_rate_to_delta()
366 delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff; in sis_rate_to_delta()
367 return delta; in sis_rate_to_delta()
520 u32 format, dma_addr, control, sso_eso, delta, reg; in sis_pcm_playback_prepare() local
555 delta = sis_rate_to_delta(runtime->rate); in sis_pcm_playback_prepare()
568 writel(delta << 16, wave_base + SIS_WAVE_GENERAL_ARTICULATION); in sis_pcm_playback_prepare()
724 u32 format, control, sso_eso, delta; in sis_prepare_timing_voice() local
[all …]
Dvia82xx.c795 int delta = res - viadev->lastpos; in calc_linear_pos() local
796 if (delta < 0) in calc_linear_pos()
797 delta += viadev->bufsize; in calc_linear_pos()
798 if ((unsigned int)delta > viadev->fragsize) in calc_linear_pos()
Dcmipci.c611 unsigned int delta, tolerance; in snd_cmipci_pll_rmn() local
626 delta = rate - xr; in snd_cmipci_pll_rmn()
628 delta = xr - rate; in snd_cmipci_pll_rmn()
634 if (delta < tolerance) { in snd_cmipci_pll_rmn()
635 tolerance = delta; in snd_cmipci_pll_rmn()
/sound/pci/ice1712/
DMakefile8 snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o
/sound/pci/trident/
Dtrident_main.c668 unsigned int delta; in snd_trident_convert_rate() local
675 delta = 0xeb3; in snd_trident_convert_rate()
677 delta = 0x2ab; in snd_trident_convert_rate()
679 delta = 0x1000; in snd_trident_convert_rate()
681 delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff; in snd_trident_convert_rate()
682 return delta; in snd_trident_convert_rate()
698 unsigned int delta; in snd_trident_convert_adc_rate() local
705 delta = 0x116a; in snd_trident_convert_adc_rate()
707 delta = 0x6000; in snd_trident_convert_adc_rate()
709 delta = 0x1000; in snd_trident_convert_adc_rate()
[all …]
/sound/isa/sb/
Demu8000_pcm.c186 int ptr, delta; in emu8k_pcm_timer_func() local
192 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func()
194 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func()
195 rec->period_pos += delta; in emu8k_pcm_timer_func()
/sound/pci/ali5451/
Dali5451.c1015 unsigned int delta; in snd_ali_convert_rate() local
1024 delta = 0x116a; in snd_ali_convert_rate()
1026 delta = 0x6000; in snd_ali_convert_rate()
1028 delta = 0x1000; in snd_ali_convert_rate()
1030 delta = ((48000 << 12) / rate) & 0x0000ffff; in snd_ali_convert_rate()
1033 delta = 0xeb3; in snd_ali_convert_rate()
1035 delta = 0x2ab; in snd_ali_convert_rate()
1037 delta = 0x1000; in snd_ali_convert_rate()
1039 delta = (((rate << 12) + rate) / 48000) & 0x0000ffff; in snd_ali_convert_rate()
1042 return delta; in snd_ali_convert_rate()
/sound/xen/
Dxen_snd_front_alsa.c580 snd_pcm_uframes_t delta, new_hw_ptr, cur_frame; in xen_snd_front_alsa_handle_cur_pos() local
584 delta = cur_frame - stream->be_cur_frame; in xen_snd_front_alsa_handle_cur_pos()
588 new_hw_ptr = (new_hw_ptr + delta) % substream->runtime->buffer_size; in xen_snd_front_alsa_handle_cur_pos()
591 stream->out_frames += delta; in xen_snd_front_alsa_handle_cur_pos()
/sound/pci/ymfpci/
Dymfpci_main.c293 u32 pos, delta; in snd_ymfpci_pcm_interrupt() local
303 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_interrupt()
305 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_interrupt()
306 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt()
349 u32 pos, delta; in snd_ymfpci_pcm_capture_interrupt() local
355 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_capture_interrupt()
357 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_capture_interrupt()
358 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt()
489 u32 delta = snd_ymfpci_calc_delta(runtime->rate); in snd_ymfpci_pcm_init_voice() local
543 bank->delta = in snd_ymfpci_pcm_init_voice()
[all …]
Dymfpci.h193 __le32 delta; member
/sound/pci/cs46xx/
Dcs46xx_dsp_scb_types.h948 delta,
999 delta,
/sound/pci/rme9652/
Drme9652.c360 snd_pcm_sframes_t delta; in rme9652_hw_pointer() local
371 delta = rme9652->prev_hw_offset - offset; in rme9652_hw_pointer()
372 delta &= 0xffff; in rme9652_hw_pointer()
373 if (delta <= (snd_pcm_sframes_t)rme9652->max_jitter * 4) in rme9652_hw_pointer()
/sound/pci/hda/
Dhda_codec.c2856 unsigned long delta = jiffies - codec->power_jiffies; in update_power_acct() local
2859 codec->power_on_acct += delta; in update_power_acct()
2861 codec->power_off_acct += delta; in update_power_acct()
2862 codec->power_jiffies += delta; in update_power_acct()