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
112 return pcm_cras->hw_ptr; in snd_pcm_cras_pointer()
157 pcm_cras->playback_sample_index = io->hw_ptr; in pcm_cras_process_cb()
162 pcm_cras->capture_sample_index = io->hw_ptr; in pcm_cras_process_cb()
180 snd_pcm_uframes_t remain = io->buffer_size - pcm_cras->hw_ptr; in pcm_cras_process_cb()
190 pcm_cras->hw_ptr, in pcm_cras_process_cb()
195 pcm_cras->hw_ptr, in pcm_cras_process_cb()
201 pcm_cras->hw_ptr += frames; in pcm_cras_process_cb()
202 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.h463 snd_pcm_uframes_t hw_ptr; /* hw ptr */ member
479 snd_pcm_uframes_t hw_ptr; /* RO: hw ptr (0...boundary-1) */ member