Home
last modified time | relevance | path

Searched refs:channel_mask (Results 1 – 25 of 29) sorted by relevance

12

/hardware/intel/common/libmix/mix_audio/src/
Dmixacpwma.c37 self->channel_mask = 0; in mix_acp_wma_init()
122 t->channel_mask = s->channel_mask; in mix_acp_wma_copy()
173 ret = (acp1->channel_mask == acp2->channel_mask) && in mix_acp_wma_equal()
Dmixacpwma.h102 guint32 channel_mask; member
171 #define MIX_ACP_WMA_CHANNEL_MASK(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->channel_mask)
Dsst_proxy.c82 p->channel_mask = MIX_ACP_WMA_CHANNEL_MASK(acp); in mix_sst_params_convert_wma()
349 MIX_ACP_WMA_CHANNEL_MASK(acp) = params->channel_mask; in mix_sst_params_to_wma()
Dintel_sst_ioctl.h128 __u32 channel_mask; /* Channel Mask */ member
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c134 uint32_t channel_mask; member
298 if(out->channel_mask > 2){ in out_get_buffer_size()
326 ALOGV("%s channel mask : %x",__func__,out->channel_mask); in out_get_channels()
327 return out->channel_mask; in out_get_channels()
695 out->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
702 if (config->channel_mask == 0){ in adev_open_output_stream()
705 if(config->channel_mask == 0) in adev_open_output_stream()
706 config->channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in adev_open_output_stream()
712 if (config->channel_mask == 0) in adev_open_output_stream()
713 config->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
[all …]
/hardware/qcom/audio/msm8909/post_proc/
Dvirtualizer.c103 bool virtualizer_is_configuration_supported(audio_channel_mask_t channel_mask, in virtualizer_is_configuration_supported() argument
105 uint32_t channelCount = audio_channel_count_from_out_mask(channel_mask); in virtualizer_is_configuration_supported()
212 void virtualizer_get_speaker_angles(audio_channel_mask_t channel_mask __unused, in virtualizer_get_speaker_angles()
304 const audio_channel_mask_t channel_mask = (audio_channel_mask_t) *param_tmp++; in virtualizer_get_parameter() local
306 uint32_t channel_cnt = audio_channel_count_from_out_mask(channel_mask); in virtualizer_get_parameter()
313 if(virtualizer_is_configuration_supported(channel_mask, device)) { in virtualizer_get_parameter()
315 virtualizer_get_speaker_angles(channel_mask, device, (int32_t *)value); in virtualizer_get_parameter()
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c561 } else if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_output_stream()
568 config->channel_mask = audio_channel_out_mask_from_count(proposed_channel_count); in adev_open_output_stream()
571 config->channel_mask = in adev_open_output_stream()
575 proposed_channel_count = audio_channel_count_from_out_mask(config->channel_mask); in adev_open_output_stream()
580 out->hal_channel_mask = config->channel_mask; in adev_open_output_stream()
871 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
949 } else if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_input_stream()
953 config->channel_mask = audio_channel_in_mask_from_count(proposed_channel_count); in adev_open_input_stream()
954 if (config->channel_mask == AUDIO_CHANNEL_INVALID) in adev_open_input_stream()
955 config->channel_mask = in adev_open_input_stream()
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp328 const uint32_t input_channels = audio_channel_count_from_in_mask(input_config->channel_mask); in audio_config_compare()
329 const uint32_t output_channels = audio_channel_count_from_out_mask(output_config->channel_mask); in audio_config_compare()
338 audio_channel_count_from_in_mask(input_config->channel_mask) != 1) { in audio_config_compare()
377 rsxadev->routes[route_idx].config.input_channel_mask = config->channel_mask; in audio_config_compare()
392 rsxadev->routes[route_idx].config.output_channel_mask = config->channel_mask; in audio_config_compare()
406 channel_count = audio_channel_count_from_out_mask(config->channel_mask); in audio_config_compare()
408 channel_count = audio_channel_count_from_in_mask(config->channel_mask); in audio_config_compare()
521 config->channel_mask = is_input_format ? get_supported_channel_in_mask(config->channel_mask) : in audio_config_compare()
522 get_supported_channel_out_mask(config->channel_mask); in audio_config_compare()
552 opening_input ? "in" : "out", config->channel_mask); in audio_config_compare()
[all …]
/hardware/bsp/intel/peripheral/audio/generic/
Daudio_hal.c670 } else if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_output_stream()
676 config->channel_mask = audio_channel_out_mask_from_count(proposed_channel_count); in adev_open_output_stream()
679 config->channel_mask = in adev_open_output_stream()
684 out->hal_channel_count = audio_channel_count_from_out_mask(config->channel_mask); in adev_open_output_stream()
687 out->hal_channel_mask = config->channel_mask; in adev_open_output_stream()
974 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
1048 } else if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_input_stream()
1052 config->channel_mask = audio_channel_in_mask_from_count(proposed_channel_count); in adev_open_input_stream()
1053 if (config->channel_mask == AUDIO_CHANNEL_INVALID) in adev_open_input_stream()
1054 config->channel_mask = in adev_open_input_stream()
[all …]
/hardware/qcom/audio/msm8909/hal/
Daudio_hw.c1323 audio_channel_count_from_out_mask(usecase->stream.out->channel_mask) > 2) { in allow_hdmi_channel_config()
1325 "no change in HDMI channels", __func__, usecase->stream.out->channel_mask); in allow_hdmi_channel_config()
1654 return out->channel_mask; in out_get_channels()
2312 return in->channel_mask; in in_get_channels()
2399 (audio_channel_count_from_in_mask(in->channel_mask) == 1)) { in in_set_parameters()
2497 audio_channel_count_from_in_mask(in->channel_mask) == 6) in in_read()
2616 stream_handle(%p)",__func__, config->sample_rate, config->channel_mask, in adev_open_output_stream()
2632 out->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
2654 if (config->channel_mask == 0) in adev_open_output_stream()
2655 config->channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in adev_open_output_stream()
[all …]
Daudio_hw.h170 audio_channel_mask_t channel_mask; member
208 audio_channel_mask_t channel_mask; member
/hardware/qcom/audio/hal/
Daudio_hw.h157 audio_channel_mask_t channel_mask; member
194 audio_channel_mask_t channel_mask; member
Daudio_hw.c1383 return out->channel_mask; in out_get_channels()
1945 return in->channel_mask; in in_get_channels()
2243 __func__, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
2255 out->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
2271 if (config->channel_mask == 0) in adev_open_output_stream()
2272 config->channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in adev_open_output_stream()
2276 out->channel_mask = config->channel_mask; in adev_open_output_stream()
2282 out->config.channels = audio_channel_count_from_out_mask(out->channel_mask); in adev_open_output_stream()
2301 if (config->offload_info.channel_mask) in adev_open_output_stream()
2302 out->channel_mask = config->offload_info.channel_mask; in adev_open_output_stream()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1988 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_input_snd_device() local
1989 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_input_snd_device()
1991 int channel_count = popcount(channel_mask); in platform_get_input_snd_device()
1994 __func__, out_device, in_device, channel_count, channel_mask); in platform_get_input_snd_device()
2092 } else if ((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) && in platform_get_input_snd_device()
2095 } else if (((int)channel_mask == AUDIO_CHANNEL_INDEX_MASK_3) && in platform_get_input_snd_device()
2098 } else if (((int)channel_mask == AUDIO_CHANNEL_INDEX_MASK_4) && in platform_get_input_snd_device()
2116 if (((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) || in platform_get_input_snd_device()
2117 (channel_mask == AUDIO_CHANNEL_IN_STEREO)) && in platform_get_input_snd_device()
2120 } else if (((int)channel_mask == AUDIO_CHANNEL_INDEX_MASK_3) && in platform_get_input_snd_device()
[all …]
/hardware/qcom/audio/msm8909/policy_hal/
DAudioPolicyManager.cpp407 offloadInfo.sample_rate, offloadInfo.channel_mask, in isOffloadSupported()
454 if ((popcount(offloadInfo.channel_mask) > 2) && in isOffloadSupported()
463 if ((popcount(offloadInfo.channel_mask) > 2) && in isOffloadSupported()
529 offloadInfo.channel_mask, in isOffloadSupported()
1316 config.channel_mask = mTestChannels; in getOutputForDevice()
1331 outputDesc->mChannelMask = config.channel_mask; in getOutputForDevice()
1593 defaultOffloadInfo.channel_mask = channelMask; in getOutputForDevice()
1609 config.channel_mask = channelMask; in getOutputForDevice()
1626 (channelMask != 0 && channelMask != config.channel_mask)) { in getOutputForDevice()
1641 outputDesc->mChannelMask = config.channel_mask; in getOutputForDevice()
/hardware/qcom/audio/msm8909/hal/audio_extn/
Da2dp.c68 config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in open_a2dp_output()
Dsoundtrigger.c166 in->channel_mask = audio_channel_in_mask_from_count(in->config.channels); in audio_extn_sound_trigger_check_and_get_session()
/hardware/qcom/audio/hal/msm8960/
Dplatform.c714 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_input_snd_device() local
715 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_input_snd_device()
782 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
787 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
/hardware/libhardware_legacy/audio/
Daudio_hw_hal.cpp485 audio_channel_count_from_in_mask(config->channel_mask)); in adev_get_input_buffer_size()
509 &config->channel_mask, in adev_open_output_stream()
575 &config->channel_mask, &config->sample_rate, in adev_open_input_stream()
/hardware/qcom/audio/legacy/alsa_sound/
Daudio_hw_hal.cpp510 uint8_t channelCount = popcount(config->channel_mask); in adev_get_input_buffer_size()
574 &config->channel_mask, in adev_open_output_stream()
641 &config->channel_mask, in adev_open_input_stream()
/hardware/qcom/audio/msm8909/hal/msm8960/
Dplatform.c754 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_input_snd_device() local
755 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_input_snd_device()
822 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
/hardware/qcom/audio/msm8909/hal/msm8916/
Dplatform.c1862 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_output_snd_device() local
1863 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_output_snd_device()
1864 int channel_count = popcount(channel_mask); in platform_get_output_snd_device()
2048 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_input_snd_device() local
2049 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_input_snd_device()
2051 int channel_count = popcount(channel_mask); in platform_get_input_snd_device()
2927 * popcount(info->channel_mask))/1000; in platform_get_pcm_offload_buffer_size()
2933 * popcount(info->channel_mask))/1000; in platform_get_pcm_offload_buffer_size()
/hardware/qcom/audio/msm8909/hal/msm8974/
Dplatform.c1740 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_output_snd_device() local
1741 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_output_snd_device()
1742 int channel_count = popcount(channel_mask); in platform_get_output_snd_device()
1907 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ? in platform_get_input_snd_device() local
1908 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask; in platform_get_input_snd_device()
1910 int channel_count = popcount(channel_mask); in platform_get_input_snd_device()
2724 * popcount(info->channel_mask))/1000; in platform_get_pcm_offload_buffer_size()
2730 * popcount(info->channel_mask))/1000; in platform_get_pcm_offload_buffer_size()
/hardware/qcom/audio/msm8909/hal/voice_extn/
Dcompress_voip.c648 out->channel_mask = AUDIO_CHANNEL_OUT_MONO; in voice_extn_compress_voip_open_output_stream()
803 if ((popcount(config->channel_mask) == 1) && in voice_extn_compress_voip_is_config_supported()
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c199 in->channel_mask = audio_channel_in_mask_from_count(in->config.channels); in audio_extn_sound_trigger_check_and_get_session()

12