Home
last modified time | relevance | path

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

/sound/pci/ctxfi/
Dctpcm.c247 unsigned long position; in ct_pcm_playback_pointer() local
253 position = atc->pcm_playback_position(atc, apcm); in ct_pcm_playback_pointer()
254 position = bytes_to_frames(runtime, position); in ct_pcm_playback_pointer()
255 if (position >= runtime->buffer_size) in ct_pcm_playback_pointer()
256 position = 0; in ct_pcm_playback_pointer()
257 return position; in ct_pcm_playback_pointer()
353 unsigned long position; in ct_pcm_capture_pointer() local
359 position = atc->pcm_capture_position(atc, apcm); in ct_pcm_capture_pointer()
360 position = bytes_to_frames(runtime, position); in ct_pcm_capture_pointer()
361 if (position >= runtime->buffer_size) in ct_pcm_capture_pointer()
[all …]
Dcttimer.c38 unsigned int position; member
72 unsigned int position, dist, interval; in ct_systimer_callback() local
74 position = substream->ops->pointer(substream); in ct_systimer_callback()
75 dist = (position + buffer_size - ti->position) % buffer_size; in ct_systimer_callback()
77 position / period_size != ti->position / period_size) { in ct_systimer_callback()
79 ti->position = position; in ct_systimer_callback()
83 interval = ((period_size - (position % period_size)) in ct_systimer_callback()
205 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram()
207 ti->position = pos; in ct_xfitimer_reprogram()
361 ti->position = 0; in ct_timer_prepare()
Dctatc.h123 int (*output_switch_put)(struct ct_atc *atc, int position);
125 int (*mic_source_switch_put)(struct ct_atc *atc, int position);
Dcthardware.h81 int (*output_switch_put)(struct hw *hw, int position);
83 int (*mic_source_switch_put)(struct hw *hw, int position);
Dctatc.c433 int position; in atc_pcm_playback_position() local
437 position = src->ops->get_ca(src); in atc_pcm_playback_position()
439 if (position < apcm->vm_block->addr) { in atc_pcm_playback_position()
442 position, apcm->vm_block->addr, apcm->vm_block->size); in atc_pcm_playback_position()
443 position = apcm->vm_block->addr; in atc_pcm_playback_position()
450 return (position + size - max_cisz - apcm->vm_block->addr) % size; in atc_pcm_playback_position()
998 static int atc_output_switch_put(struct ct_atc *atc, int position) in atc_output_switch_put() argument
1002 return hw->output_switch_put(hw, position); in atc_output_switch_put()
1012 static int atc_mic_source_switch_put(struct ct_atc *atc, int position) in atc_mic_source_switch_put() argument
1016 return hw->mic_source_switch_put(hw, position); in atc_mic_source_switch_put()
Dcthw20k2.c1936 static int hw_output_switch_put(struct hw *hw, int position) in hw_output_switch_put() argument
1940 if (position == hw_output_switch_get(hw)) in hw_output_switch_put()
1949 switch (position) { in hw_output_switch_put()
1975 static int hw_mic_source_switch_put(struct hw *hw, int position) in hw_mic_source_switch_put() argument
1979 if (position == hw20k2->mic_source) in hw_mic_source_switch_put()
1982 switch (position) { in hw_mic_source_switch_put()
1996 hw20k2->mic_source = position; in hw_mic_source_switch_put()
/sound/soc/intel/avs/
Dcldma.c47 void *position; member
74 memcpy(cl->dmab_data.area + offset, cl->position, ss); in hda_cldma_fill()
77 cl->position += ss; in hda_cldma_fill()
81 memcpy(cl->dmab_data.area + offset, cl->position, size); in hda_cldma_fill()
82 cl->position += size; in hda_cldma_fill()
201 cl->position = data; in hda_cldma_set_data()
/sound/soc/fsl/
Dfsl_dma.c679 dma_addr_t position; in fsl_dma_pointer() local
687 position = in_be32(&dma_channel->sar); in fsl_dma_pointer()
689 position |= (u64)(in_be32(&dma_channel->satr) & in fsl_dma_pointer()
693 position = in_be32(&dma_channel->dar); in fsl_dma_pointer()
695 position |= (u64)(in_be32(&dma_channel->datr) & in fsl_dma_pointer()
707 if (!position) in fsl_dma_pointer()
710 if ((position < dma_private->dma_buf_phys) || in fsl_dma_pointer()
711 (position > dma_private->dma_buf_end)) { in fsl_dma_pointer()
716 frames = bytes_to_frames(runtime, position - dma_private->dma_buf_phys); in fsl_dma_pointer()
/sound/firewire/
Damdtp-am824.h36 unsigned int position);
39 unsigned int position);
Damdtp-am824.c126 unsigned int position) in amdtp_am824_set_pcm_position() argument
131 p->pcm_positions[index] = position; in amdtp_am824_set_pcm_position()
142 unsigned int position) in amdtp_am824_set_midi_position() argument
146 p->midi_position = position; in amdtp_am824_set_midi_position()
/sound/virtio/
Dvirtio_chmap.c192 u8 position = info->positions[ch]; in virtsnd_chmap_build_devs() local
194 if (position >= ARRAY_SIZE(g_v2a_position_map)) in virtsnd_chmap_build_devs()
197 chmap->map[ch] = g_v2a_position_map[position]; in virtsnd_chmap_build_devs()
/sound/core/seq/
Dseq_timer.h120 int snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position);
121 int snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position);
Dseq_timer.c208 snd_seq_tick_time_t position) in snd_seq_timer_set_position_tick() argument
216 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick()
224 snd_seq_real_time_t position) in snd_seq_timer_set_position_time() argument
231 snd_seq_sanity_real_time(&position); in snd_seq_timer_set_position_time()
233 tmr->cur_time = position; in snd_seq_timer_set_position_time()
/sound/drivers/vx/
Dvx_pcm.c664 pipe->position += update; in vx_update_pipe_position()
665 if (pipe->position >= (int)runtime->buffer_size) in vx_update_pipe_position()
666 pipe->position %= runtime->buffer_size; in vx_update_pipe_position()
776 return pipe->position; in vx_pcm_playback_pointer()
839 pipe->position = 0; in vx_pcm_prepare()
/sound/soc/sof/
DKconfig168 bool "SOF force to use IPC for position update on SKL+"
170 This option forces to handle stream position update IPCs and run PCM
173 On platforms (e.g. Intel SKL-) where position update IPC is the only
175 If you are trying to debug pointer update with position IPCs or where
/sound/pci/
Dintel8x0m.c148 unsigned int position; member
403 ichdev->position = 0; in snd_intel8x0m_setup_periods()
439 ichdev->position += step * ichdev->fragsize1; in snd_intel8x0m_update()
440 ichdev->position %= ichdev->size; in snd_intel8x0m_update()
553 ptr += ichdev->position; in snd_intel8x0m_pcm_pointer()
Dintel8x0.c318 unsigned int position; member
675 ichdev->position = 0; in snd_intel8x0_setup_periods()
719 ichdev->position += step * ichdev->fragsize1; in snd_intel8x0_update()
721 ichdev->position %= ichdev->size; in snd_intel8x0_update()
800 ichdev->last_pos = ichdev->position; in snd_intel8x0_pcm_trigger()
997 unsigned int position; in snd_intel8x0_pcm_pointer() local
1003 position = ichdev->position; in snd_intel8x0_pcm_pointer()
1026 ptr += position; in snd_intel8x0_pcm_pointer()
1029 pos_base = position / ichdev->fragsize1; in snd_intel8x0_pcm_pointer()
2703 pos += ichdev->position; in intel8x0_measure_ac97_clock()
/sound/pci/echoaudio/
Dechoaudio_dsp.h657 __le32 position[DSP_MAXPIPES]; member
Dechoaudio.h309 u32 position; /* ...the number of bytes tranferred member
Dechoaudio.c609 pipe->position = 0; in init_engine()
778 pipe->position = 0; in pcm_trigger()
840 pipe->position += step; in pcm_pointer()
841 pipe->position %= frames_to_bytes(runtime, runtime->buffer_size); /* wrap */ in pcm_pointer()
843 return bytes_to_frames(runtime, pipe->position); in pcm_pointer()
Dechoaudio_dsp.c1074 chip->comm_page->position[pipe_index] = 0; in allocate_pipes()
1085 pipe->dma_counter = (__le32 *)&chip->comm_page->position[pipe_index]; in allocate_pipes()
/sound/xen/
Dxen_snd_front_evtchnl.c119 event->op.cur_pos.position); in evtchnl_interrupt_evt()
/sound/pci/rme9652/
Dhdspm.c1479 int position; in hdspm_hw_pointer() local
1481 position = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_hw_pointer()
1486 position &= HDSPM_BufferPositionMask; in hdspm_hw_pointer()
1487 position /= 4; /* Bytes per sample */ in hdspm_hw_pointer()
1490 position = (position & HDSPM_BufferID) ? in hdspm_hw_pointer()
1494 return position; in hdspm_hw_pointer()
Dhdsp.c1022 int position; in hdsp_hw_pointer() local
1024 position = hdsp_read(hdsp, HDSP_statusRegister); in hdsp_hw_pointer()
1027 return (position & HDSP_BufferID) ? (hdsp->period_bytes / 4) : 0; in hdsp_hw_pointer()
1029 position &= HDSP_BufferPositionMask; in hdsp_hw_pointer()
1030 position /= 4; in hdsp_hw_pointer()
1031 position &= (hdsp->period_bytes/2) - 1; in hdsp_hw_pointer()
1032 return position; in hdsp_hw_pointer()
/sound/core/
DKconfig152 will help to identify source file and position containing