Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 18 of 18) sorted by relevance

/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c30 size_t frame_size) { in audio_vbuffer_init() argument
34 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
36 size_t bytes = frame_count * frame_size; in audio_vbuffer_init()
94 &audio_vbuffer->data[audio_vbuffer->head * audio_vbuffer->frame_size], in audio_vbuffer_write()
95 &((uint8_t *)buffer)[frames_written * audio_vbuffer->frame_size], in audio_vbuffer_write()
96 frames * audio_vbuffer->frame_size); in audio_vbuffer_write()
125 &((uint8_t *)buffer)[frames_read * audio_vbuffer->frame_size], in audio_vbuffer_read()
126 &audio_vbuffer->data[audio_vbuffer->tail * audio_vbuffer->frame_size], in audio_vbuffer_read()
127 frames * audio_vbuffer->frame_size); in audio_vbuffer_read()
Daudio_vbuffer.h25 size_t frame_size; member
33 size_t frame_size);
/device/google/cuttlefish/tools/play_audio/
Dplay_audio.cpp62 auto frame_size = conn->RecvUInt32(); in RecvEncodedAudio() local
68 return {frame_size, std::move(encoded)}; in RecvEncodedAudio()
99 const auto& [frame_size, encoded] = RecvEncodedAudio(&conn); in main()
103 auto decoded = dec.Decode(encoded, frame_size, false); in main()
/device/linaro/hikey/hifi/xaf/hifi-dpf/plugins/cadence/mixer/
Dxa-mixer.c57 u32 frame_size; member
117 d->pcm_width = 16, d->channels = 2, d->frame_size = 512; in xa_mixer_preinit()
172 for (i = 0; i < d->frame_size; i++) in xa_mixer_do_execute_stereo_16bit()
201 TRACE(PROCESS, _b("produced: %u bytes (%u samples)"), d->produced, d->frame_size); in xa_mixer_do_execute_stereo_16bit()
259 … d->buffer_size = d->channels * d->frame_size * (d->pcm_width == 16 ? sizeof(s16) : sizeof(s32)); in xa_mixer_init()
370 *(WORD32 *)pv_value = d->frame_size; in xa_mixer_get_config_param()
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-mixer.c120 u32 frame_size; member
180 u32 frame_size; in xa_mixer_prepare_runtime() local
189 XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_FRAME_SIZE, &frame_size); in xa_mixer_prepare_runtime()
195 mixer->frame_duration = frame_size * factor; in xa_mixer_prepare_runtime()
531 … XA_API(base, XA_API_CMD_GET_CONFIG_PARAM, XA_MIXER_CONFIG_PARAM_FRAME_SIZE, &mixer->frame_size); in xa_mixer_memtab()
668 track->pts += mixer->frame_size; in xa_mixer_postprocess()
703 mixer->pts += mixer->frame_size; in xa_mixer_postprocess()
Dxa-class-audio-codec.c111 u32 frame_size; in xa_codec_prepare_runtime() local
130 frame_size = msg->output_length / codec->sample_size; in xa_codec_prepare_runtime()
133 … XF_CHK_ERR(frame_size * codec->sample_size == msg->output_length, XA_API_FATAL_INVALID_CMD_TYPE); in xa_codec_prepare_runtime()
/device/linaro/dragonboard/audio/
Daudio_hw.c75 size_t frame_size; member
83 size_t frame_size) { in audio_vbuffer_init() argument
87 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
89 size_t bytes = frame_count * frame_size; in audio_vbuffer_init()
135 memcpy(&audio_vbuffer->data[audio_vbuffer->head*audio_vbuffer->frame_size], in audio_vbuffer_write()
136 &((uint8_t*)buffer)[frames_written*audio_vbuffer->frame_size], in audio_vbuffer_write()
137 frames*audio_vbuffer->frame_size); in audio_vbuffer_write()
162 memcpy(&((uint8_t*)buffer)[frames_read*audio_vbuffer->frame_size], in audio_vbuffer_read()
163 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
164 frames*audio_vbuffer->frame_size); in audio_vbuffer_read()
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c78 size_t frame_size; member
86 size_t frame_size) { in audio_vbuffer_init() argument
90 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
92 size_t bytes = frame_count * frame_size; in audio_vbuffer_init()
138 memcpy(&audio_vbuffer->data[audio_vbuffer->head*audio_vbuffer->frame_size], in audio_vbuffer_write()
139 &((uint8_t*)buffer)[frames_written*audio_vbuffer->frame_size], in audio_vbuffer_write()
140 frames*audio_vbuffer->frame_size); in audio_vbuffer_write()
165 memcpy(&((uint8_t*)buffer)[frames_read*audio_vbuffer->frame_size], in audio_vbuffer_read()
166 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
167 frames*audio_vbuffer->frame_size); in audio_vbuffer_read()
/device/linaro/hikey/audio/
Daudio_hw.c179 static int xa_device_run(struct audio_stream_out *stream, const void *buffer, size_t frame_size, si… in xa_device_run() argument
417 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local
418 size_t out_frames = bytes / frame_size; in out_write()
445 ret = xa_device_run(stream, buffer,frame_size, out_frames, bytes); in out_write()
448 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()
/device/amlogic/yukawa/hal/audio/
Daudio_hw.c325 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local
326 size_t out_frames = bytes / frame_size; in out_write()
352 ret = pcm_write(out->pcm, buffer, out_frames * frame_size); in out_write()
359 info.bytes = out_frames * frame_size; in out_write()
619 size_t frame_size = audio_stream_in_frame_size(stream); in in_read() local
620 size_t in_frames = bytes / frame_size; in in_read()
695 ret = pcm_read(in->pcm, buffer, in_frames * frame_size); in in_read()
Daudio_aec.c582 size_t frame_size = aec->mic_frame_size_bytes; in process_aec() local
583 size_t in_frames = bytes / frame_size; in process_aec()
/device/google/bonito/sdm710/original-kernel-headers/sound/
Dcompress_offload.h131 __u32 frame_size; member
/device/google/bonito/sdm710/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/crosshatch/sdm845/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/crosshatch/sdm845/original-kernel-headers/sound/
Dcompress_offload.h131 __u32 frame_size; member
/device/google/coral-kernel/sm8150/kernel-headers/sound/
Dcompress_offload.h66 __u32 frame_size; member
/device/google/coral-kernel/sm8150/original-kernel-headers/sound/
Dcompress_offload.h133 __u32 frame_size; member
/device/linaro/poplar/audio/
Daudio_hw.c247 size_t frame_size = audio_stream_out_frame_size(stream); in out_write() local
248 size_t out_frames = bytes / frame_size; in out_write()
267 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()