Home
last modified time | relevance | path

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

/hardware/libhardware/modules/audio/
Daudio_hw.c52 audio_channel_mask_t channel_mask; member
61 audio_channel_mask_t channel_mask; member
97 ALOGV("out_get_channels: %x", out->channel_mask); in out_get_channels()
98 return out->channel_mask; in out_get_channels()
248 ALOGV("in_get_channels: %x", in->channel_mask); in in_get_channels()
249 return in->channel_mask; in in_get_channels()
388 out->channel_mask = config->channel_mask; in adev_open_output_stream()
389 if (out->channel_mask == AUDIO_CHANNEL_NONE) in adev_open_output_stream()
390 out->channel_mask = STUB_OUTPUT_DEFAULT_CHANNEL_MASK; in adev_open_output_stream()
399 " frames: %zu", out->sample_rate, out->channel_mask, out->format, in adev_open_output_stream()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp33 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioConfigFromHal()
42 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioConfigToHal()
52 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioGainConfigFromHal()
63 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioGainConfigToHal()
73 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
84 halGain->channel_mask = static_cast<audio_channel_mask_t>(gain.channelMask); in audioGainToHal()
112 offload->channelMask = EnumBitfield<AudioChannelMask>(halOffload.channel_mask); in audioOffloadInfoFromHal()
128 halOffload->channel_mask = static_cast<audio_channel_mask_t>(offload.channelMask); in audioOffloadInfoToHal()
147 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioPortConfigFromHal()
185 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioPortConfigToHal()
/hardware/qcom/audio/hal/
Daudio_hw.c2696 static void register_channel_mask(audio_channel_mask_t channel_mask, in register_channel_mask() argument
2698 ALOGE_IF(!register_uint(channel_mask, supported_channel_masks, MAX_SUPPORTED_CHANNEL_MASKS), in register_channel_mask()
2699 "%s: stream can not declare supporting its channel_mask %x", __func__, channel_mask); in register_channel_mask()
2773 return out->channel_mask; in out_get_channels()
3533 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write()
3578 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write()
4098 return in->channel_mask; in in_get_channels()
4823 audio_channel_count_from_in_mask(in->channel_mask), in in_get_active_microphones()
4942 __func__, config->format, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
4965 audio_channel_mask_t req_channel_mask = config->channel_mask; in adev_open_output_stream()
[all …]
Daudio_hw.h225 audio_channel_mask_t channel_mask; member
285 audio_channel_mask_t channel_mask; member
/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()
529 config->channel_mask = is_input_format ? get_supported_channel_in_mask(config->channel_mask) : in audio_config_compare()
530 get_supported_channel_out_mask(config->channel_mask); in audio_config_compare()
560 opening_input ? "in" : "out", config->channel_mask); in audio_config_compare()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c603 if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_output_stream()
609 out->hal_channel_count = audio_channel_count_from_out_mask(config->channel_mask); in adev_open_output_stream()
621 config->channel_mask = out->hal_channel_count <= FCC_2 in adev_open_output_stream()
628 out->hal_channel_mask = config->channel_mask; in adev_open_output_stream()
955 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
1078 if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_input_stream()
1084 in->hal_channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_open_input_stream()
1103 if (in->hal_channel_mask != config->channel_mask && in adev_open_input_stream()
1104 config->channel_mask != AUDIO_CHANNEL_NONE) { in adev_open_input_stream()
1105 config->channel_mask = in->hal_channel_mask; in adev_open_input_stream()
[all …]
/hardware/libhardware/modules/audio_remote_submix/tests/
Dremote_submix_tests.cpp110 configIn.channel_mask = mono ? AUDIO_CHANNEL_IN_MONO : AUDIO_CHANNEL_IN_STEREO; in OpenInputStream()
123 configOut.channel_mask = mono ? AUDIO_CHANNEL_OUT_MONO : AUDIO_CHANNEL_OUT_STEREO; in OpenOutputStream()
/hardware/qcom/audio/hal/msm8974/
Dplatform.c3218 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; in platform_get_input_snd_device() local
3219 int channel_count = audio_channel_count_from_in_mask(channel_mask); in platform_get_input_snd_device()
3222 __func__, out_device, in_device, channel_count, channel_mask); in platform_get_input_snd_device()
3373 } else if ((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) && in platform_get_input_snd_device()
3376 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_3) && in platform_get_input_snd_device()
3379 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_4) && in platform_get_input_snd_device()
3403 if (((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) || in platform_get_input_snd_device()
3404 (channel_mask == AUDIO_CHANNEL_IN_STEREO)) && in platform_get_input_snd_device()
3407 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_3) && in platform_get_input_snd_device()
3410 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_4) && in platform_get_input_snd_device()
[all …]
/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/hal/msm8960/
Dplatform.c760 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; in platform_get_input_snd_device() local
826 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
831 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
/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/interfaces/audio/core/all-versions/default/
DDevice.cpp163 halConfig.channel_mask, deviceAddressToHal(device).c_str()); in openOutputStreamImpl()
189 halConfig.channel_mask, deviceAddressToHal(device).c_str(), in openInputStreamImpl()
/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c280 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in sound_trigger_keyphrase_event_alloc()
302 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in sound_trigger_generic_event_alloc()
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c349 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/voice_extn/
Dvoice_extn.c592 out->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in voice_extn_check_and_set_incall_music_usecase()
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.cpp467 (audio::common::V2_0::AudioChannelMask)halEvent->audio_config.channel_mask; in convertRecognitionEventFromHal()
/hardware/qcom/audio/hal/msm8916/
Dplatform.c2176 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; local
2177 int channel_count = audio_channel_count_from_in_mask(channel_mask);
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp491 (audio::common::V2_0::AudioChannelMask)halEvent->audio_config.channel_mask; in convertRecognitionEventFromHal()
/hardware/knowles/athletico/sound_trigger_hal/
Dsound_trigger_hw_iaxxx.c490 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in stdev_keyphrase_event_alloc()
523 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in stdev_generic_event_alloc()
/hardware/interfaces/audio/common/4.0/
Dtypes.hal754 * popcount(channel_mask).
/hardware/interfaces/audio/common/2.0/
Dtypes.hal793 * popcount(channel_mask).
/hardware/interfaces/audio/common/6.0/
Dtypes.hal889 * popcount(channel_mask).
/hardware/interfaces/audio/common/5.0/
Dtypes.hal883 * popcount(channel_mask).