Home
last modified time | relevance | path

Searched refs:hw_ptr (Results 1 – 5 of 5) sorted by relevance

/external/adhd/cras/src/alsa_plugin/
Dpcm_cras.c31 unsigned int hw_ptr; member
110 return pcm_cras->hw_ptr; in snd_pcm_cras_pointer()
153 pcm_cras->playback_sample_index = io->hw_ptr; in pcm_cras_process_cb()
158 pcm_cras->capture_sample_index = io->hw_ptr; in pcm_cras_process_cb()
176 snd_pcm_uframes_t remain = io->buffer_size - pcm_cras->hw_ptr; in pcm_cras_process_cb()
185 pcm_cras->hw_ptr, frames, in pcm_cras_process_cb()
189 pcm_cras->hw_ptr, in pcm_cras_process_cb()
194 pcm_cras->hw_ptr += frames; in pcm_cras_process_cb()
195 pcm_cras->hw_ptr %= io->buffer_size; in pcm_cras_process_cb()
/external/tinyalsa/
Dpcm.c455 snd_pcm_uframes_t hw_ptr; in pcm_get_htimestamp() local
472 hw_ptr = pcm->mmap_status->hw_ptr; in pcm_get_htimestamp()
474 frames = hw_ptr - pcm->mmap_control->appl_ptr; in pcm_get_htimestamp()
476 frames = hw_ptr + pcm->buffer_size - pcm->mmap_control->appl_ptr; in pcm_get_htimestamp()
488 int pcm_mmap_get_hw_ptr(struct pcm* pcm, unsigned int *hw_ptr, struct timespec *tstamp) in pcm_mmap_get_hw_ptr() argument
493 if (pcm == NULL || hw_ptr == NULL || tstamp == NULL) in pcm_mmap_get_hw_ptr()
494 return oops(pcm, EINVAL, "pcm %p, hw_ptr %p, tstamp %p", pcm, hw_ptr, tstamp); in pcm_mmap_get_hw_ptr()
514 *hw_ptr = pcm->mmap_status->hw_ptr; in pcm_mmap_get_hw_ptr()
1090 avail = pcm->mmap_status->hw_ptr + pcm->buffer_size - pcm->mmap_control->appl_ptr; in pcm_mmap_playback_avail()
1102 int avail = pcm->mmap_status->hw_ptr - pcm->mmap_control->appl_ptr; in pcm_mmap_capture_avail()
[all …]
/external/autotest/client/site_tests/audio_AlsaAPI/
Dcontrol.drop8 PURPOSE = 'Test that simple ALSA API succeeds to drop playback and reset hw_ptr.'
18 Check ALSA API succeeds to drop playback and reset hw_ptr.
/external/tinyalsa/include/tinyalsa/
Dasoundlib.h248 int pcm_mmap_get_hw_ptr(struct pcm* pcm, unsigned int *hw_ptr, struct timespec *tstamp);
/external/kernel-headers/original/uapi/sound/
Dasound.h464 snd_pcm_uframes_t hw_ptr; /* hw ptr */ member
480 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member