Lines Matching refs:common
281 * the most common rate, but group 2 is required for SCO.
306 if (out_get_sample_rate(&out->stream.common) != out->pcm_config->rate) {
307 ret = create_resampler(out_get_sample_rate(&out->stream.common),
314 out_get_sample_rate(&out->stream.common) + 1;
349 * the most common rate, but group 2 is required for SCO.
374 if (in_get_sample_rate(&in->stream.common) != in->pcm_config->rate) {
379 in_get_sample_rate(&in->stream.common),
466 frames_wr * audio_stream_frame_size(&in->stream.common)),
476 frames_wr * audio_stream_frame_size(&in->stream.common),
478 buf.frame_count * audio_stream_frame_size(&in->stream.common));
617 size_t frame_size = audio_stream_frame_size(&out->stream.common);
664 if (popcount(out_get_channels(&stream->common)) >
677 if (out_get_sample_rate(&stream->common) != out->pcm_config->rate) {
759 usleep(bytes * 1000000 / audio_stream_frame_size(&stream->common) /
760 out_get_sample_rate(&stream->common));
931 size_t frames_rq = bytes / audio_stream_frame_size(&stream->common);
984 usleep(bytes * 1000000 / audio_stream_frame_size(&stream->common) /
985 in_get_sample_rate(&stream->common));
1024 out->stream.common.get_sample_rate = out_get_sample_rate;
1025 out->stream.common.set_sample_rate = out_set_sample_rate;
1026 out->stream.common.get_buffer_size = out_get_buffer_size;
1027 out->stream.common.get_channels = out_get_channels;
1028 out->stream.common.get_format = out_get_format;
1029 out->stream.common.set_format = out_set_format;
1030 out->stream.common.standby = out_standby;
1031 out->stream.common.dump = out_dump;
1032 out->stream.common.set_parameters = out_set_parameters;
1033 out->stream.common.get_parameters = out_get_parameters;
1034 out->stream.common.add_audio_effect = out_add_audio_effect;
1035 out->stream.common.remove_audio_effect = out_remove_audio_effect;
1045 common);
1046 config->channel_mask = out_get_channels(&out->stream.common);
1047 config->sample_rate = out_get_sample_rate(&out->stream.common);
1064 out_standby(&stream->common);
1200 in->stream.common.get_sample_rate = in_get_sample_rate;
1201 in->stream.common.set_sample_rate = in_set_sample_rate;
1202 in->stream.common.get_buffer_size = in_get_buffer_size;
1203 in->stream.common.get_channels = in_get_channels;
1204 in->stream.common.get_format = in_get_format;
1205 in->stream.common.set_format = in_set_format;
1206 in->stream.common.standby = in_standby;
1207 in->stream.common.dump = in_dump;
1208 in->stream.common.set_parameters = in_set_parameters;
1209 in->stream.common.get_parameters = in_get_parameters;
1210 in->stream.common.add_audio_effect = in_add_audio_effect;
1211 in->stream.common.remove_audio_effect = in_remove_audio_effect;
1230 in_standby(&stream->common);
1262 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG;
1263 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
1264 adev->hw_device.common.module = (struct hw_module_t *) module;
1265 adev->hw_device.common.close = adev_close;
1287 *device = &adev->hw_device.common;
1297 .common = {