Lines Matching refs:in
219 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; in in_get_sample_rate() local
221 ALOGV("in_get_sample_rate: %u", in->sample_rate); in in_get_sample_rate()
222 return in->sample_rate; in in_get_sample_rate()
227 struct stub_stream_in *in = (struct stub_stream_in *)stream; in in_set_sample_rate() local
230 in->sample_rate = rate; in in_set_sample_rate()
236 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; in in_get_buffer_size() local
237 size_t buffer_size = in->frame_count * in in_get_buffer_size()
238 audio_stream_in_frame_size(&in->stream); in in_get_buffer_size()
246 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; in in_get_channels() local
248 ALOGV("in_get_channels: %x", in->channel_mask); in in_get_channels()
249 return in->channel_mask; in in_get_channels()
254 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; in in_get_format() local
256 ALOGV("in_get_format: %d", in->format); in in_get_format()
257 return in->format; in in_get_format()
262 struct stub_stream_in *in = (struct stub_stream_in *)stream; in in_set_format() local
265 in->format = format; in in_set_format()
271 struct stub_stream_in *in = (struct stub_stream_in *)stream; in in_standby() local
272 in->last_read_time_us = 0; in in_standby()
303 struct stub_stream_in *in = (struct stub_stream_in *)stream; in in_read() local
309 const bool standby = in->last_read_time_us == 0; in in_read()
311 0 : now - in->last_read_time_us; in in_read()
319 in->last_read_time_us = now + sleep_time; in in_read()
511 struct stub_stream_in *in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in)); in adev_open_input_stream() local
512 if (!in) in adev_open_input_stream()
515 in->stream.common.get_sample_rate = in_get_sample_rate; in adev_open_input_stream()
516 in->stream.common.set_sample_rate = in_set_sample_rate; in adev_open_input_stream()
517 in->stream.common.get_buffer_size = in_get_buffer_size; in adev_open_input_stream()
518 in->stream.common.get_channels = in_get_channels; in adev_open_input_stream()
519 in->stream.common.get_format = in_get_format; in adev_open_input_stream()
520 in->stream.common.set_format = in_set_format; in adev_open_input_stream()
521 in->stream.common.standby = in_standby; in adev_open_input_stream()
522 in->stream.common.dump = in_dump; in adev_open_input_stream()
523 in->stream.common.set_parameters = in_set_parameters; in adev_open_input_stream()
524 in->stream.common.get_parameters = in_get_parameters; in adev_open_input_stream()
525 in->stream.common.add_audio_effect = in_add_audio_effect; in adev_open_input_stream()
526 in->stream.common.remove_audio_effect = in_remove_audio_effect; in adev_open_input_stream()
527 in->stream.set_gain = in_set_gain; in adev_open_input_stream()
528 in->stream.read = in_read; in adev_open_input_stream()
529 in->stream.get_input_frames_lost = in_get_input_frames_lost; in adev_open_input_stream()
530 in->sample_rate = config->sample_rate; in adev_open_input_stream()
531 if (in->sample_rate == 0) in adev_open_input_stream()
532 in->sample_rate = STUB_DEFAULT_SAMPLE_RATE; in adev_open_input_stream()
533 in->channel_mask = config->channel_mask; in adev_open_input_stream()
534 if (in->channel_mask == AUDIO_CHANNEL_NONE) in adev_open_input_stream()
535 in->channel_mask = STUB_INPUT_DEFAULT_CHANNEL_MASK; in adev_open_input_stream()
536 in->format = config->format; in adev_open_input_stream()
537 if (in->format == AUDIO_FORMAT_DEFAULT) in adev_open_input_stream()
538 in->format = STUB_DEFAULT_AUDIO_FORMAT; in adev_open_input_stream()
539 in->frame_count = samples_per_milliseconds( in adev_open_input_stream()
540 STUB_INPUT_BUFFER_MILLISECONDS, in->sample_rate, 1); in adev_open_input_stream()
543 "frames: %zu", in->sample_rate, in->channel_mask, in->format, in adev_open_input_stream()
544 in->frame_count); in adev_open_input_stream()
545 *stream_in = &in->stream; in adev_open_input_stream()
550 struct audio_stream_in *in) in adev_close_input_stream() argument