Lines Matching refs:channel_mask
281 return out->req_config.channel_mask; in out_get_channels()
697 …utput_parameters(uint32_t *sample_rate, audio_format_t *format, audio_channel_mask_t *channel_mask) in refine_output_parameters() argument
708 int channel_count = popcount(*channel_mask); in refine_output_parameters()
710 *channel_mask = AUDIO_CHANNEL_IN_STEREO; in refine_output_parameters()
737 …input_parameters(uint32_t *sample_rate, audio_format_t *format, audio_channel_mask_t *channel_mask) in refine_input_parameters() argument
749 int channel_count = popcount(*channel_mask); in refine_input_parameters()
751 *channel_mask = AUDIO_CHANNEL_IN_STEREO; in refine_input_parameters()
779 audio_channel_mask_t channel_mask) in check_input_parameters() argument
781 return refine_input_parameters(&sample_rate, &format, &channel_mask); in check_input_parameters()
785 audio_channel_mask_t channel_mask) in get_input_buffer_size() argument
788 int channel_count = popcount(channel_mask); in get_input_buffer_size()
789 if (check_input_parameters(sample_rate, format, channel_mask) != 0) in get_input_buffer_size()
806 in->req_config.channel_mask); in in_get_buffer_size()
814 return in->req_config.channel_mask; in in_get_channels()
1106 if (popcount(in->req_config.channel_mask) == 1 && in in_read()
1199 if (refine_output_parameters(&config->sample_rate, &config->format, &config->channel_mask)) { in adev_open_output_stream()
1201 config->format, config->channel_mask, config->sample_rate); in adev_open_output_stream()
1381 return get_input_buffer_size(config->sample_rate, config->format, config->channel_mask); in adev_get_input_buffer_size()
1439 if (refine_input_parameters(&config->sample_rate, &config->format, &config->channel_mask)) { in adev_open_input_stream()
1441 config->format, config->channel_mask, config->sample_rate); in adev_open_input_stream()