Home
last modified time | relevance | path

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

123

/device/google/trout/hal/audio/6.0/
Daudio_vbuffer.c83 int frames = 0; in audio_vbuffer_write() local
85 frames = in audio_vbuffer_write()
88 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
96 frames * audio_vbuffer->frame_size); in audio_vbuffer_write()
97 audio_vbuffer->live += frames; in audio_vbuffer_write()
98 frames_written += frames; in audio_vbuffer_write()
99 frame_count -= frames; in audio_vbuffer_write()
101 (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write()
114 int frames = 0; in audio_vbuffer_read() local
117 frames = in audio_vbuffer_read()
[all …]
Daudio_hw.c370 int frames = audio_vbuffer_read(&out->buffer, buffer, buffer_frames); in out_write_worker() local
375 buffer, ext_pcm_frames_to_bytes(ext_pcm, frames)); in out_write_worker()
451 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write() local
472 size_t frames_written = frames; in out_write()
477 frames_written = audio_vbuffer_write(&out->buffer, buffer, frames); in out_write()
482 out->frames_written += frames; in out_write()
483 out->frames_rendered += frames; in out_write()
484 out->frames_total_buffered += frames; in out_write()
491 int frames_sleep = out->frames_total_buffered < out->buffer.frame_count ? 0 : frames; in out_write()
512 if (frames_written < frames) { in out_write()
[all …]
Dext_pcm.h51 unsigned int frames);
Dext_pcm.c189 unsigned int frames) { in ext_pcm_frames_to_bytes() argument
194 return pcm_frames_to_bytes(ext_pcm->pcm, frames); in ext_pcm_frames_to_bytes()
/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c83 int frames = 0; in audio_vbuffer_write() local
85 frames = in audio_vbuffer_write()
88 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
96 frames * audio_vbuffer->frame_size); in audio_vbuffer_write()
97 audio_vbuffer->live += frames; in audio_vbuffer_write()
98 frames_written += frames; in audio_vbuffer_write()
99 frame_count -= frames; in audio_vbuffer_write()
101 (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write()
114 int frames = 0; in audio_vbuffer_read() local
117 frames = in audio_vbuffer_read()
[all …]
Daudio_hw.c330 int frames = audio_vbuffer_read(&out->buffer, buffer, buffer_frames); in out_write_worker() local
335 buffer, ext_pcm_frames_to_bytes(ext_pcm, frames)); in out_write_worker()
411 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write() local
432 size_t frames_written = frames; in out_write()
437 frames_written = audio_vbuffer_write(&out->buffer, buffer, frames); in out_write()
442 out->frames_written += frames; in out_write()
443 out->frames_rendered += frames; in out_write()
444 out->frames_total_buffered += frames; in out_write()
451 int frames_sleep = out->frames_total_buffered < out->buffer.frame_count ? 0 : frames; in out_write()
472 if (frames_written < frames) { in out_write()
[all …]
Dext_pcm.h51 unsigned int frames);
Dext_pcm.c189 unsigned int frames) { in ext_pcm_frames_to_bytes() argument
194 return pcm_frames_to_bytes(ext_pcm->pcm, frames); in ext_pcm_frames_to_bytes()
/device/generic/goldfish/audio/
Ddevice_port_sink.cpp34 const AudioConfig &cfg, uint64_t &frames) in TinyalsaSink()
35 : mFrames(frames) in TinyalsaSink()
42 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
43 frames = mFrames; in getPresentationPosition()
64 uint64_t &frames) { in create()
65 auto src = std::make_unique<TinyalsaSink>(pcmCard, pcmDevice, cfg, frames); in create()
79 NullSink(const AudioConfig &cfg, uint64_t &frames) in NullSink()
80 : mFrames(frames) in NullSink()
85 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
87 frames = mFrames; in getPresentationPosition()
[all …]
Ddevice_port_source.cpp39 const AudioConfig &cfg, uint64_t &frames) in TinyalsaSource()
40 : mFrames(frames) in TinyalsaSource()
47 Result getCapturePosition(uint64_t &frames, uint64_t &time) override { in getCapturePosition()
48 frames = mFrames; in getCapturePosition()
69 uint64_t &frames) { in create()
70 auto src = std::make_unique<TinyalsaSource>(pcmCard, pcmDevice, cfg, frames); in create()
84 GeneratedSource(const AudioConfig &cfg, uint64_t &frames, G generator) in GeneratedSource()
85 : mFrames(frames) in GeneratedSource()
91 Result getCapturePosition(uint64_t &frames, uint64_t &time) override { in getCapturePosition()
96 frames = mFrames; in getCapturePosition()
[all …]
Ddevice_port_source.h33 virtual Result getCapturePosition(uint64_t &frames, uint64_t &time) = 0;
39 uint64_t &frames);
Ddevice_port_sink.h33 virtual Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) = 0;
39 uint64_t &frames);
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c324 unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames) in pcm_frames_to_bytes() argument
326 return frames * pcm->config.channels * in pcm_frames_to_bytes()
402 unsigned int frames) in pcm_areas_copy() argument
404 int size_bytes = pcm_frames_to_bytes(pcm, frames); in pcm_areas_copy()
425 unsigned int pcm_offset, frames, count = 0; in pcm_mmap_transfer_areas() local
428 frames = size; in pcm_mmap_transfer_areas()
429 pcm_mmap_begin(pcm, &pcm_areas, &pcm_offset, &frames); in pcm_mmap_transfer_areas()
430 pcm_areas_copy(pcm, pcm_offset, buf, offset, frames); in pcm_mmap_transfer_areas()
431 commit = pcm_mmap_commit(pcm, pcm_offset, frames); in pcm_mmap_transfer_areas()
433 oops(pcm, commit, "failed to commit %d frames\n", frames); in pcm_mmap_transfer_areas()
[all …]
Dasoundlib.h203 unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames);
236 unsigned int *frames);
237 int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c129 int frames = 0; in audio_vbuffer_write() local
131 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->head); in audio_vbuffer_write()
133 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
140 frames*audio_vbuffer->frame_size); in audio_vbuffer_write()
141 audio_vbuffer->live += frames; in audio_vbuffer_write()
142 frames_written += frames; in audio_vbuffer_write()
143 frame_count -= frames; in audio_vbuffer_write()
144 audio_vbuffer->head = (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write()
156 int frames = 0; in audio_vbuffer_read() local
159 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
[all …]
/device/amlogic/yukawa/audio/
Daudio_hw.c67 static void timestamp_adjust(struct timespec* ts, ssize_t frames, uint32_t sampling_rate) { in timestamp_adjust() argument
71 long adj_nsec = (frames / (float) sampling_rate) * 1E9L; in timestamp_adjust()
94 ssize_t frames; in get_pcm_timestamp() local
96 frames = pcm_get_buffer_size(pcm) - info->available; in get_pcm_timestamp()
98 frames = -info->available; /* rewind timestamp */ in get_pcm_timestamp()
100 timestamp_adjust(&info->timestamp, frames, sample_rate); in get_pcm_timestamp()
329 uint64_t *frames, struct timespec *timestamp) in out_get_presentation_position() argument
331 if (stream == NULL || frames == NULL || timestamp == NULL) { in out_get_presentation_position()
336 *frames = out->frames_written; in out_get_presentation_position()
338 ALOGV("%s: frames: %" PRIu64 ", timestamp (nsec): %" PRIu64, __func__, *frames, in out_get_presentation_position()
[all …]
Daudio_aec.c97 void get_reference_audio_in_place(struct aec_t *aec, size_t frames) { in get_reference_audio_in_place() argument
110 for (frame = 0; frame < frames; frame++) { in get_reference_audio_in_place()
374 const size_t frames = bytes / aec->mic_frame_size_bytes; in get_reference_samples() local
378 const size_t req_bytes = frames * sample_rate_ratio * aec->spk_frame_size_bytes; in get_reference_samples()
405 const size_t resampler_in_frames = frames * sample_rate_ratio; in get_reference_samples()
412 size_t out_frame_count = frames; in get_reference_samples()
429 for (frame = 0; frame < frames; frame++) { in get_reference_samples()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcgitb.py117 frames = []
169 frames.append('''
181 return head + ''.join(frames) + ''.join(exception) + '''
205 frames = []
243 frames.append('\n%s\n' % '\n'.join(rows))
251 return head + ''.join(frames) + ''.join(exception) + '''
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_sys_setprofile.py27 self.frames = []
42 frameno = self.frames.index(frame)
44 frameno = len(self.frames)
45 self.frames.append(frame)
52 self.frames = None
/device/google/vrservices/vrcore/sepolicy/
Dvr_hwc.te2 # frames to VrCore.
/device/google/barbet-kernel/sm7250/original-kernel-headers/sound/
Ddevdep_params.h66 uint64_t frames; member
/device/google/barbet-kernel/sm7250/kernel-headers/sound/
Ddevdep_params.h71 uint64_t frames; member
/device/google/redbull-kernel/sm7250/original-kernel-headers/sound/
Ddevdep_params.h66 uint64_t frames; member
/device/google/redbull-kernel/sm7250/kernel-headers/sound/
Ddevdep_params.h71 uint64_t frames; member
/device/google/atv/audio_proxy/
DStreamOutImpl.cpp111 &status.reply.presentationPosition.frames, in doGetPresentationPosition()
427 uint64_t frames = 0; in getPresentationPosition() local
429 Result result = mStream->getPresentationPosition(&frames, &ts); in getPresentationPosition()
430 _hidl_cb(result, frames, ts); in getPresentationPosition()

123