Lines Matching refs:channel_count
1350 int channel_count; in read_usb_sup_channel_masks() local
1360 for (channel_count = FCC_2; in read_usb_sup_channel_masks()
1361 channel_count <= channels && num_masks < max_masks; in read_usb_sup_channel_masks()
1362 ++channel_count) { in read_usb_sup_channel_masks()
1364 audio_channel_mask_for_index_assignment_from_count(channel_count); in read_usb_sup_channel_masks()
1368 channel_count = MIN_CHANNEL_COUNT; in read_usb_sup_channel_masks()
1371 for ( ; channel_count <= channels && num_masks < max_masks; channel_count++) { in read_usb_sup_channel_masks()
1373 if (channel_count <= FCC_2) { in read_usb_sup_channel_masks()
1374 mask = audio_channel_in_mask_from_count(channel_count); in read_usb_sup_channel_masks()
1378 audio_channel_mask_for_index_assignment_from_count(channel_count); in read_usb_sup_channel_masks()
2662 int channel_count, bool is_usb_hifi) in check_input_parameters() argument
2673 if ((channel_count < MIN_CHANNEL_COUNT) || (channel_count > max_channel_count)) { in check_input_parameters()
2675 channel_count, MIN_CHANNEL_COUNT, max_channel_count); in check_input_parameters()
2746 int channel_count, in get_stream_buffer_size() argument
2760 const size_t frame_size = channel_count * audio_bytes_per_sample(format); in get_stream_buffer_size()
3621 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write() local
3625 LOG_ALWAYS_FATAL_IF(out->config.channels != 1 || channel_count != 2 || in out_write()
3666 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write() local
3668 size_t frame_size = channel_count * bytes_per_sample; in out_write()
5917 int channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_get_input_buffer_size() local
5920 if (check_input_parameters(config->sample_rate, config->format, channel_count, in adev_get_input_buffer_size()
5926 channel_count, in adev_get_input_buffer_size()
5978 int channel_count; in adev_open_input_stream() local
6003 channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_open_input_stream()
6005 if (check_input_parameters(config->sample_rate, config->format, channel_count, false) != 0) in adev_open_input_stream()
6080 channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_open_input_stream()
6140 channel_count, in adev_open_input_stream()
6161 channel_count, in adev_open_input_stream()
6188 channel_count == 1) { in adev_open_input_stream()
6195 channel_count, false /*is_low_latency*/); in adev_open_input_stream()
6206 channel_count, in adev_open_input_stream()
6216 in->config.channels = channel_count; in adev_open_input_stream()