Lines Matching refs:bytes
2980 size_t bytes) in out_write() argument
2992 size_t in_frames = bytes / frame_size; in out_write()
3053 ALOGVV("%s: writing buffer (%d bytes) to compress device", __func__, bytes); in out_write()
3068 ret = compress_write(out->compr, buffer, bytes); in out_write()
3069 … ALOGVV("%s: writing buffer (%d bytes) to compress device returned %d", __func__, bytes, ret); in out_write()
3070 if (ret >= 0 && ret < (ssize_t)bytes) { in out_write()
3106 memset((void *)buffer, 0, bytes); in out_write()
3110 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
3113 … bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size; in out_write()
3119 frames_rq = bytes / frame_size; in out_write()
3207 ALOGVV("%s: writing buffer (%d bytes) to pcm device", __func__, bytes); in out_write()
3213 pcm_device->status = pcm_write(pcm_device->pcm, (void *)buffer, bytes); in out_write()
3219 out->written += bytes / (out->config.channels * sizeof(short)); in out_write()
3232 usleep(bytes * 1000000 / audio_stream_out_frame_size(stream) / in out_write()
3250 return bytes; in out_write()
3667 size_t bytes) in read_bytes_from_dsp() argument
3676 return adev->sound_trigger_read_samples(pcm_device->sound_trigger_handle, buffer, bytes); in read_bytes_from_dsp()
3682 size_t bytes) in in_read() argument
3690 size_t frames_rq = bytes / audio_stream_in_frame_size(stream); in in_read()
3727 bytes = read_bytes_from_dsp(in, buffer, bytes); in in_read()
3728 if (bytes > 0) in in_read()
3748 memset(buffer, 0, bytes); in in_read()
3756 usleep(bytes * 1000000 / audio_stream_in_frame_size(stream) / in in_read()
3759 return bytes; in in_read()