Home
last modified time | relevance | path

Searched refs:channel_count (Results 1 – 17 of 17) sorted by relevance

/hardware/qcom/audio/hal/audio_extn/
Dusb.c71 unsigned int channel_count; member
458 usb_device_info->channel_count = channels_no; in usb_get_capability()
671 __func__, dev_info->bit_width, dev_info->channel_count); in usb_print_active_device()
714 unsigned int *channel_count) in usb_get_best_match_for_channels() argument
724 __func__, dev_info->channel_count, dev_info->bit_width, in usb_get_best_match_for_channels()
728 if (dev_info->channel_count== stream_ch) { in usb_get_best_match_for_channels()
729 *channel_count = dev_info->channel_count; in usb_get_best_match_for_channels()
731 __func__, dev_info->channel_count); in usb_get_best_match_for_channels()
734 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
739 else if (ABS_SUB(stream_ch, dev_info->channel_count) < in usb_get_best_match_for_channels()
[all …]
Daudio_extn.h112 uint32_t *channel_count);
/hardware/interfaces/bluetooth/audio/utils/aidl_session/
DBluetoothLeAudioCodecsProvider.h87 const uint8_t& device_cnt, const uint8_t& channel_count,
93 const uint8_t& channel_count, const std::vector<T>& capability);
DBluetoothLeAudioCodecsProvider.cpp451 const uint8_t& channel_count, const std::vector<T>& capability) { in ComposeBroadcastCapability() argument
454 .channelCountPerStream = channel_count, in ComposeBroadcastCapability()
461 const uint8_t& device_cnt, const uint8_t& channel_count, in ComposeUnicastCapability() argument
467 .channelCountPerDevice = channel_count, in ComposeUnicastCapability()
DBluetoothLeAudioAseConfigurationSettingProvider.cpp449 auto channel_count = std::bitset<32>(allocation.value().bitmask).count(); in populateAseQosConfiguration() local
450 qos.maxSdu = channel_count * octet.value().value * frameBlockValue; in populateAseQosConfiguration()
/hardware/qcom/audio/hal/
Dplatform_api.h52 size_t channel_count; member
108 int platform_set_hdmi_channels(void *platform, int channel_count);
Daudio_hw.c1350 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()
[all …]
Dplatform_info.c857 microphone.channel_count = idx; in process_mic_info()
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c451 unsigned int channel_count = 0; in populate_channel_mask_from_profile() local
453 (channel_count = profile->channel_counts[i]) != 0 && in populate_channel_mask_from_profile()
455 if (channel_count < channel_masks_size && in populate_channel_mask_from_profile()
456 channel_masks_map[channel_count] != AUDIO_CHANNEL_NONE) { in populate_channel_mask_from_profile()
457 channel_masks[num_channel_masks++] = channel_masks_map[channel_count]; in populate_channel_mask_from_profile()
462 if (channel_count < CHANNEL_INDEX_MASKS_SIZE && in populate_channel_mask_from_profile()
463 CHANNEL_INDEX_MASKS_MAP[channel_count] != AUDIO_CHANNEL_NONE) { in populate_channel_mask_from_profile()
464 channel_masks[num_channel_masks++] = CHANNEL_INDEX_MASKS_MAP[channel_count]; in populate_channel_mask_from_profile()
1599 unsigned channel_count = proxy_get_channel_count(&device_info->proxy); in adev_open_input_stream() local
1600 config->channel_mask = channel_count <= FCC_2 in adev_open_input_stream()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c3243 int channel_count = audio_channel_count_from_in_mask(channel_mask); in platform_get_input_snd_device() local
3246 __func__, out_device, in_device, channel_count, channel_mask); in platform_get_input_snd_device()
3375 if (my_data->fluence_in_voice_rec && channel_count == 1) { in platform_get_input_snd_device()
3480 channel_count == 2) { in platform_get_input_snd_device()
3483 channel_count == 1) { in platform_get_input_snd_device()
3488 my_data->source_mic_type, channel_count, channel_mask); in platform_get_input_snd_device()
3493 channel_count == 2) { in platform_get_input_snd_device()
3496 channel_count == 1) { in platform_get_input_snd_device()
3501 my_data->source_mic_type, channel_count); in platform_get_input_snd_device()
3537 channel_count == 2) { in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/hal/msm8960/
Dplatform.c935 int platform_set_hdmi_channels(void *platform, int channel_count) in platform_set_hdmi_channels() argument
942 switch (channel_count) { in platform_set_hdmi_channels()
976 int channel_count; in platform_edid_get_max_channels() local
1004 channel_count = (sad[0] & 0x7) + 1; in platform_edid_get_max_channels()
1005 if (channel_count > max_channels) in platform_edid_get_max_channels()
1006 max_channels = channel_count; in platform_edid_get_max_channels()
/hardware/qcom/audio/hal/msm8916/
Dplatform.c2200 int channel_count = audio_channel_count_from_in_mask(channel_mask); local
2285 channel_count == 2)
2292 if (channel_count == 2) {
2330 channel_count == 2)
2368 if (channel_count > 1)
2403 int platform_set_hdmi_channels(void *platform, int channel_count)
2410 switch (channel_count) {
2444 int channel_count; local
2481 channel_count = (sad[0] & 0x7) + 1;
2482 if (channel_count > max_channels)
[all …]
/hardware/interfaces/bluetooth/audio/aidl/default/
DLeAudioOffloadAudioProvider.cpp327 auto channel_count = std::bitset<32>(allocation.bitmask); in isMonoConfig() local
328 return (channel_count.count() <= 1); in isMonoConfig()
471 int channel_count = getCountFromBitmask(req_allocation_bitmask); in getValidConfigurationsFromAllocation() local
488 if (channel_count <= 1) { in getValidConfigurationsFromAllocation()
503 if (temp.size() == channel_count) return temp; in getValidConfigurationsFromAllocation()
/hardware/qcom/audio/visualizer/
Doffload_visualizer.c121 uint8_t channel_count; /* to avoid recomputing it every time a buffer is processed */ member
623 visu_ctxt->channel_count = audio_channel_count_from_out_mask(context->config.inputCfg.channels); in visualizer_init()
740 for (inIdx = 0 ; inIdx < inBuffer->frameCount * visu_ctxt->channel_count ; inIdx++) { in visualizer_process()
751 rms_squared_acc / (inBuffer->frameCount * visu_ctxt->channel_count); in visualizer_process()
/hardware/libhardware/modules/audio/
Daudio_hw.c347 size_t channel_count) in samples_per_milliseconds() argument
349 return milliseconds * sample_rate * channel_count / 1000; in samples_per_milliseconds()
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp378 uint32_t channel_count; in submix_audio_device_create_pipe_l() local
380 channel_count = audio_channel_count_from_out_mask(config->channel_mask); in submix_audio_device_create_pipe_l()
382 channel_count = audio_channel_count_from_in_mask(config->channel_mask); in submix_audio_device_create_pipe_l()
385 const uint32_t pipe_channel_count = channel_count; in submix_audio_device_create_pipe_l()
/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp235 int channel_count = 0; in setHDMIChannelCount() local
242 if (info.AudioBlocksArray[i].nChannels > channel_count && in setHDMIChannelCount()
244 channel_count = info.AudioBlocksArray[i].nChannels; in setHDMIChannelCount()
249 switch (channel_count) { in setHDMIChannelCount()