Lines Matching refs:bytes
2060 size_t bytes) in out_write() argument
2072 size_t in_frames = bytes / frame_size; in out_write()
2120 memset((void *)buffer, 0, bytes); in out_write()
2124 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
2127 bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size; in out_write()
2133 frames_rq = bytes / frame_size; in out_write()
2148 ALOGVV("%s: writing buffer (%zd bytes) to pcm device", __func__, bytes); in out_write()
2154 audio_bytes = bytes; in out_write()
2189 out->written += bytes / frame_size; in out_write()
2201 usleep(bytes * 1000000 / audio_stream_out_frame_size(stream) / in out_write()
2219 return bytes; in out_write()
2502 size_t bytes) in read_bytes_from_dsp() argument
2512 pcm_device->sound_trigger_handle, buffer, bytes); in read_bytes_from_dsp()
2518 size_t bytes) in in_read() argument
2526 size_t frames_rq = bytes / audio_stream_in_frame_size(stream); in in_read()
2551 bytes = read_bytes_from_dsp(in, buffer, bytes); in in_read()
2552 if (bytes > 0) in in_read()
2572 memset(buffer, 0, bytes); in in_read()
2580 usleep(bytes * 1000000 / audio_stream_in_frame_size(stream) / in in_read()
2583 return bytes; in in_read()