Lines Matching refs:hal_channel_count
98 unsigned hal_channel_count; /* channel count exposed to AudioFlinger. member
134 unsigned hal_channel_count; /* channel count exposed to AudioFlinger. member
731 const int num_req_channels = out->hal_channel_count; /* what we told AudioFlinger */ in out_write()
897 out->hal_channel_count = profile_get_default_channel_count(&device_info->profile); in adev_open_output_stream()
901 out->hal_channel_count = audio_channel_count_from_out_mask(config->channel_mask); in adev_open_output_stream()
905 if (out->hal_channel_count > FCC_LIMIT) { in adev_open_output_stream()
906 out->hal_channel_count = FCC_LIMIT; in adev_open_output_stream()
913 config->channel_mask = out->hal_channel_count <= FCC_2 in adev_open_output_stream()
915 ? audio_channel_out_mask_from_count(out->hal_channel_count) in adev_open_output_stream()
917 : audio_channel_mask_for_index_assignment_from_count(out->hal_channel_count); in adev_open_output_stream()
926 profile_get_closest_channel_count(&device_info->profile, out->hal_channel_count); in adev_open_output_stream()
1147 int num_req_channels = in->hal_channel_count; /* what we told AudioFlinger */ in in_read()
1378 in->hal_channel_count = profile_get_default_channel_count(&device_info->profile); in adev_open_input_stream()
1382 in->hal_channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_open_input_stream()
1386 if (in->hal_channel_count > FCC_LIMIT) { in adev_open_input_stream()
1387 in->hal_channel_count = FCC_LIMIT; in adev_open_input_stream()
1394 in->hal_channel_mask = in->hal_channel_count <= FCC_2 in adev_open_input_stream()
1396 ? audio_channel_in_mask_from_count(in->hal_channel_count) in adev_open_input_stream()
1398 : audio_channel_mask_for_index_assignment_from_count(in->hal_channel_count); in adev_open_input_stream()
1415 profile_get_closest_channel_count(&device_info->profile, in->hal_channel_count); in adev_open_input_stream()