Home
last modified time | relevance | path

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

12

/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.c266 int frames = audio_vbuffer_read(&out->buffer, buffer, buffer_frames); in out_write_worker() local
269 buffer, ext_pcm_frames_to_bytes(ext_pcm, frames)); in out_write_worker()
343 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write() local
364 size_t frames_written = frames; in out_write()
369 frames_written = audio_vbuffer_write(&out->buffer, buffer, frames); in out_write()
374 out->frames_written += frames; in out_write()
375 out->frames_rendered += frames; in out_write()
376 out->frames_total_buffered += frames; in out_write()
383 int frames_sleep = out->frames_total_buffered < out->buffer.frame_count ? 0 : frames; in out_write()
404 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.cpp42 uint64_t &frames) in TinyalsaSink()
47 , mFrames(frames) in TinyalsaSink()
63 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
69 frames = mFrames; in getPresentationPosition()
186 uint64_t &frames) { in create()
189 cfg, frames); in create()
213 NullSink(const AudioConfig &cfg, uint64_t &frames) in NullSink()
214 : mFrames(frames) in NullSink()
219 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
221 frames = mFrames; in getPresentationPosition()
[all …]
Ddevice_port_source.cpp45 const AudioConfig &cfg, uint64_t &frames) in TinyalsaSource()
50 , mFrames(frames) in TinyalsaSource()
66 Result getCapturePosition(uint64_t &frames, uint64_t &time) override { in getCapturePosition()
72 frames = mFrames; in getCapturePosition()
185 uint64_t &frames) { in create()
189 cfg, frames); in create()
216 uint64_t &frames, in GeneratedSource()
219 , mFrames(frames) in GeneratedSource()
225 Result getCapturePosition(uint64_t &frames, uint64_t &time) override { in getCapturePosition()
230 frames = mFrames; in getCapturePosition()
[all …]
Ddevice_port_sink.h34 virtual Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) = 0;
41 uint64_t &frames);
Ddevice_port_source.h34 virtual Result getCapturePosition(uint64_t &frames, uint64_t &time) = 0;
41 uint64_t &frames);
Dstream_in.cpp201 status.reply.capturePosition.frames, in doGetCapturePosition()
/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/linaro/dragonboard/audio/
Daudio_hw.c126 int frames = 0; in audio_vbuffer_write() local
128 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->head); in audio_vbuffer_write()
130 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
137 frames*audio_vbuffer->frame_size); in audio_vbuffer_write()
138 audio_vbuffer->live += frames; in audio_vbuffer_write()
139 frames_written += frames; in audio_vbuffer_write()
140 frame_count -= frames; in audio_vbuffer_write()
141 audio_vbuffer->head = (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write()
153 int frames = 0; in audio_vbuffer_read() local
156 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
[all …]
/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/hal/audio/
Daudio_hw.c68 static void timestamp_adjust(struct timespec* ts, ssize_t frames, uint32_t sampling_rate) { in timestamp_adjust() argument
72 long adj_nsec = (frames / (float) sampling_rate) * 1E9L; in timestamp_adjust()
95 ssize_t frames; in get_pcm_timestamp() local
97 frames = pcm_get_buffer_size(pcm) - info->available; in get_pcm_timestamp()
99 frames = -info->available; /* rewind timestamp */ in get_pcm_timestamp()
101 timestamp_adjust(&info->timestamp, frames, sample_rate); in get_pcm_timestamp()
385 uint64_t *frames, struct timespec *timestamp) in out_get_presentation_position() argument
387 if (stream == NULL || frames == NULL || timestamp == NULL) { in out_get_presentation_position()
392 *frames = out->frames_written; in out_get_presentation_position()
394 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/google/vrservices/vrcore/sepolicy/
Dvr_hwc.te2 # frames to VrCore.
/device/google/coral-kernel/sm8150/kernel-headers/sound/
Dasound.h395 snd_pcm_uframes_t frames; member
400 snd_pcm_uframes_t frames; member
/device/google/bonito/sdm710/kernel-headers/sound/
Dasound.h390 snd_pcm_uframes_t frames; member
395 snd_pcm_uframes_t frames; member
/device/google/crosshatch/sdm845/kernel-headers/sound/
Dasound.h390 snd_pcm_uframes_t frames; member
395 snd_pcm_uframes_t frames; member
/device/google/bonito/sdm710/original-kernel-headers/sound/
Dasound.h495 snd_pcm_uframes_t frames; member
501 snd_pcm_uframes_t frames; member
/device/google/coral-kernel/sm8150/original-kernel-headers/sound/
Dasound.h503 snd_pcm_uframes_t frames; member
509 snd_pcm_uframes_t frames; member
/device/linaro/poplar/audio/
Daudio_hw.c291 uint64_t *frames, struct timespec *timestamp) in out_get_presentation_position() argument
302 *frames = signed_frames; in out_get_presentation_position()
/device/google/crosshatch/sdm845/original-kernel-headers/sound/
Dasound.h495 snd_pcm_uframes_t frames; member
501 snd_pcm_uframes_t frames; member
/device/google/coral/
DWCNSS_qcom_cfg.ini288 # 1 = drop all broadcast frames, except ARP (default)
289 # 2 = drop all multicast frames, except ICMPv6
290 # 3 = drop all broadcast and multicast frames, except ARP and ICMPv6
/device/linaro/hikey/audio/
Daudio_hw.c475 uint64_t *frames, struct timespec *timestamp) in out_get_presentation_position() argument
486 *frames = signed_frames; in out_get_presentation_position()

12