/sound/core/ |
D | hrtimer.c | 34 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()
|
D | pcm_lib.c | 264 snd_pcm_sframes_t hdelta, delta; in snd_pcm_update_hw_ptr0() local 318 delta = runtime->hw_ptr_interrupt + runtime->period_size; in snd_pcm_update_hw_ptr0() 319 if (delta > new_hw_ptr) { in snd_pcm_update_hw_ptr0() 344 delta = new_hw_ptr - old_hw_ptr; in snd_pcm_update_hw_ptr0() 345 if (delta < 0) in snd_pcm_update_hw_ptr0() 346 delta += runtime->boundary; in snd_pcm_update_hw_ptr0() 357 hdelta = jdelta - delta * HZ / runtime->rate; in snd_pcm_update_hw_ptr0() 360 delta += runtime->buffer_size; in snd_pcm_update_hw_ptr0() 373 if (delta >= runtime->buffer_size + runtime->period_size) { in snd_pcm_update_hw_ptr0() 391 hdelta = delta; in snd_pcm_update_hw_ptr0() [all …]
|
/sound/pci/au88x0/ |
D | au88x0_core.c | 1167 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/sti/ |
D | uniperif_player.c | 156 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/ |
D | dummy.c | 251 unsigned long delta; in dummy_systimer_update() local 253 delta = jiffies - dpcm->base_time; in dummy_systimer_update() 254 if (!delta) in dummy_systimer_update() 256 dpcm->base_time += delta; in dummy_systimer_update() 257 delta *= dpcm->rate; in dummy_systimer_update() 258 dpcm->frac_pos += delta; in dummy_systimer_update() 261 while (dpcm->frac_period_rest <= delta) { in dummy_systimer_update() 265 dpcm->frac_period_rest -= delta; in dummy_systimer_update() 423 u64 delta; in dummy_hrtimer_pointer() local 426 delta = ktime_us_delta(hrtimer_cb_get_time(&dpcm->timer), in dummy_hrtimer_pointer() [all …]
|
D | aloop.c | 578 unsigned int delta; in bytepos_delta() local 582 delta = byte_pos(dpcm, dpcm->irq_pos) - last_pos; in bytepos_delta() 583 if (delta >= dpcm->last_drift) in bytepos_delta() 584 delta -= dpcm->last_drift; in bytepos_delta() 590 return delta; in bytepos_delta() 594 unsigned int delta) in bytepos_finish() argument 596 dpcm->buf_pos += delta; in bytepos_finish()
|
/sound/soc/ti/ |
D | Makefile | 34 snd-soc-ams-delta-objs := ams-delta.o 45 obj-$(CONFIG_SND_SOC_OMAP_AMS_DELTA) += snd-soc-ams-delta.o
|
/sound/pci/ |
D | sis7019.c | 348 u32 delta; in sis_rate_to_delta() local 359 delta = 0xeb3; in sis_rate_to_delta() 361 delta = 0x2ab; in sis_rate_to_delta() 363 delta = 0x1000; in sis_rate_to_delta() 365 delta = DIV_ROUND_CLOSEST(rate << 12, 48000) & 0x0000ffff; in sis_rate_to_delta() 366 return delta; in sis_rate_to_delta() 507 u32 format, dma_addr, control, sso_eso, delta, reg; in sis_pcm_playback_prepare() local 542 delta = sis_rate_to_delta(runtime->rate); in sis_pcm_playback_prepare() 555 writel(delta << 16, wave_base + SIS_WAVE_GENERAL_ARTICULATION); in sis_pcm_playback_prepare() 706 u32 format, control, sso_eso, delta; in sis_prepare_timing_voice() local [all …]
|
D | via82xx.c | 797 int delta = res - viadev->lastpos; in calc_linear_pos() local 798 if (delta < 0) in calc_linear_pos() 799 delta += viadev->bufsize; in calc_linear_pos() 800 if ((unsigned int)delta > viadev->fragsize) in calc_linear_pos()
|
D | cmipci.c | 606 unsigned int delta, tolerance; in snd_cmipci_pll_rmn() local 621 delta = rate - xr; in snd_cmipci_pll_rmn() 623 delta = xr - rate; in snd_cmipci_pll_rmn() 629 if (delta < tolerance) { in snd_cmipci_pll_rmn() 630 tolerance = delta; in snd_cmipci_pll_rmn()
|
/sound/pci/trident/ |
D | trident_main.c | 668 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 = DIV_ROUND_CLOSEST(rate << 12, 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/pci/ice1712/ |
D | Makefile | 8 snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o
|
/sound/soc/rockchip/ |
D | rockchip_i2s_tdm.c | 574 int delta, ret; in rockchip_i2s_tdm_clk_set_rate() local 580 delta = -1; in rockchip_i2s_tdm_clk_set_rate() 582 delta = 1; in rockchip_i2s_tdm_clk_set_rate() 584 delta *= (int)div64_u64((u64)rate * (u64)abs(ppm) + 500000, in rockchip_i2s_tdm_clk_set_rate() 587 rate_target = rate + delta; in rockchip_i2s_tdm_clk_set_rate() 610 unsigned int div, delta; in rockchip_i2s_tdm_calibrate_mclk() local 658 delta = abs(mclk_root_freq % mclk_parent_freq - mclk_parent_freq); in rockchip_i2s_tdm_calibrate_mclk() 659 ppm = div64_u64((uint64_t)delta * 1000000, (uint64_t)mclk_root_freq); in rockchip_i2s_tdm_calibrate_mclk()
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 186 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/ |
D | ali5451.c | 1014 unsigned int delta; in snd_ali_convert_rate() local 1023 delta = 0x116a; in snd_ali_convert_rate() 1025 delta = 0x6000; in snd_ali_convert_rate() 1027 delta = 0x1000; in snd_ali_convert_rate() 1029 delta = ((48000 << 12) / rate) & 0x0000ffff; in snd_ali_convert_rate() 1032 delta = 0xeb3; in snd_ali_convert_rate() 1034 delta = 0x2ab; in snd_ali_convert_rate() 1036 delta = 0x1000; in snd_ali_convert_rate() 1038 delta = (((rate << 12) + rate) / 48000) & 0x0000ffff; in snd_ali_convert_rate() 1041 return delta; in snd_ali_convert_rate()
|
/sound/xen/ |
D | xen_snd_front_alsa.c | 580 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/ |
D | ymfpci_main.c | 293 u32 pos, delta; in snd_ymfpci_pcm_interrupt() local 304 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_interrupt() 306 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_interrupt() 307 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt() 350 u32 pos, delta; in snd_ymfpci_pcm_capture_interrupt() local 356 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_capture_interrupt() 358 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_capture_interrupt() 359 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt() 490 u32 delta = snd_ymfpci_calc_delta(runtime->rate); in snd_ymfpci_pcm_init_voice() local 544 bank->delta = in snd_ymfpci_pcm_init_voice() [all …]
|
D | ymfpci.h | 193 __le32 delta; member
|
/sound/pci/cs46xx/ |
D | cs46xx_dsp_scb_types.h | 948 delta, 999 delta,
|
/sound/pci/rme9652/ |
D | rme9652.c | 350 snd_pcm_sframes_t delta; in rme9652_hw_pointer() local 361 delta = rme9652->prev_hw_offset - offset; in rme9652_hw_pointer() 362 delta &= 0xffff; in rme9652_hw_pointer() 363 if (delta <= (snd_pcm_sframes_t)rme9652->max_jitter * 4) in rme9652_hw_pointer()
|
/sound/pci/hda/ |
D | hda_codec.c | 2867 unsigned long delta = jiffies - codec->power_jiffies; in update_power_acct() local 2870 codec->power_on_acct += delta; in update_power_acct() 2872 codec->power_off_acct += delta; in update_power_acct() 2873 codec->power_jiffies += delta; in update_power_acct()
|