Home
last modified time | relevance | path

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

12

/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()
43 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioConfigToHal()
54 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioGainConfigFromHal()
66 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioGainConfigToHal()
77 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
89 halGain->channel_mask = static_cast<audio_channel_mask_t>(gain.channelMask); in audioGainToHal()
121 offload->channelMask = EnumBitfield<AudioChannelMask>(halOffload.channel_mask); in audioOffloadInfoFromHal()
157 halOffload->channel_mask = static_cast<audio_channel_mask_t>(offload.channelMask); in audioOffloadInfoToHal()
185 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioPortConfigFromHal()
224 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioPortConfigToHal()
/hardware/qcom/audio/hal/
Daudio_hw.c2718 static void register_channel_mask(audio_channel_mask_t channel_mask, in register_channel_mask() argument
2720 ALOGE_IF(!register_uint(channel_mask, supported_channel_masks, MAX_SUPPORTED_CHANNEL_MASKS), in register_channel_mask()
2721 "%s: stream can not declare supporting its channel_mask %x", __func__, channel_mask); in register_channel_mask()
2793 return out->channel_mask; in out_get_channels()
3621 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write()
3666 size_t channel_count = audio_channel_count_from_out_mask(out->channel_mask); in out_write()
4186 return in->channel_mask; in in_get_channels()
4912 audio_channel_count_from_in_mask(in->channel_mask), in in_get_active_microphones()
5055 __func__, config->format, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
5078 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
287 audio_channel_mask_t channel_mask; member
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp135 audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &configBase->channelMask), in audioConfigBaseFromHal()
145 CONVERT_CHECKED(audioChannelMaskToHal(configBase.channelMask, &halConfigBase->channel_mask), in audioConfigBaseToHal()
171 CONVERT_CHECKED(audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &value), in audioConfigBaseOptionalFromHal()
198 audioChannelMaskToHal(configBase.channelMask.value(), &halConfigBase->channel_mask), in audioConfigBaseOptionalToHal()
372 audio_config_base_t halConfigBase = {halConfig.sample_rate, halConfig.channel_mask, in audioConfigFromHal()
391 halConfig->channel_mask = halConfigBase.channel_mask; in audioConfigToHal()
407 CONVERT_CHECKED(audioChannelMaskFromHal(halConfig.channel_mask, isInput, &config->channelMask), in audioGainConfigFromHal()
414 config->values.resize(__builtin_popcount(halConfig.channel_mask)); in audioGainConfigFromHal()
428 CONVERT_CHECKED(audioChannelMaskToHal(config.channelMask, &halConfig->channel_mask), result); in audioGainConfigToHal()
439 size_t channelCount = __builtin_popcount(halConfig->channel_mask); in audioGainConfigToHal()
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp320 const uint32_t input_channels = audio_channel_count_from_in_mask(input_config->channel_mask); in audio_config_compare()
321 const uint32_t output_channels = audio_channel_count_from_out_mask(output_config->channel_mask); in audio_config_compare()
364 rsxadev->routes[route_idx].config.input_channel_mask = config->channel_mask; in submix_audio_device_create_pipe_l()
369 rsxadev->routes[route_idx].config.output_channel_mask = config->channel_mask; in submix_audio_device_create_pipe_l()
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()
491 config->channel_mask = is_input_format ? get_supported_channel_in_mask(config->channel_mask) : in submix_sanitize_config()
492 get_supported_channel_out_mask(config->channel_mask); in submix_sanitize_config()
522 opening_input ? "in" : "out", config->channel_mask); in submix_open_validate_l()
530 pipe_config.channel_mask = in submix_open_validate_l()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c936 config->channel_mask == AUDIO_CHANNEL_NONE)) { in adev_open_output_stream()
939 config->sample_rate, config->channel_mask); in adev_open_output_stream()
1034 if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_output_stream()
1040 out->hal_channel_count = audio_channel_count_from_out_mask(config->channel_mask); in adev_open_output_stream()
1052 config->channel_mask = out->hal_channel_count <= FCC_2 in adev_open_output_stream()
1059 out->hal_channel_mask = config->channel_mask; in adev_open_output_stream()
1068 __func__, config->channel_mask); in adev_open_output_stream()
1415 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
1545 if (config->channel_mask == AUDIO_CHANNEL_NONE) { in adev_open_input_stream()
1551 in->hal_channel_count = audio_channel_count_from_in_mask(config->channel_mask); in adev_open_input_stream()
[all …]
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp164 halInvalidChannelMask.channel_mask = kInvalidHalChannelMask; in TEST()
196 EXPECT_EQ(halBaseDefault.channel_mask, halBaseDefaultBack.channel_mask); in TEST()
221 halInvalidChannelMask.channel_mask = kInvalidHalChannelMask; in TEST()
294 EXPECT_EQ(halBaseDefault.channel_mask, halBaseDefaultUnspecBack.channel_mask); in TEST()
315 EXPECT_EQ(halBaseDefault.channel_mask, halBaseDefaultSpecBack.channel_mask); in TEST()
778 halInvalid.channel_mask = kInvalidHalChannelMask; in TEST()
808 halInvalidChannelMask.channel_mask = kInvalidHalChannelMask; in TEST()
931 halInvalid.channel_mask = kInvalidHalChannelMask; in TEST()
/hardware/libhardware_legacy/audio/
Daudio_hw_hal.cpp485 audio_channel_count_from_in_mask(config->channel_mask)); in adev_get_input_buffer_size()
507 uint32_t raw_channel_mask = config->channel_mask; in adev_open_output_stream()
516 config->channel_mask = (audio_channel_mask_t)raw_channel_mask; in adev_open_output_stream()
576 uint32_t raw_channel_mask = config->channel_mask; in adev_open_input_stream()
584 config->channel_mask = (audio_channel_mask_t)raw_channel_mask; in adev_open_input_stream()
/hardware/interfaces/audio/core/all-versions/default/util/
DCoreUtils.cpp202 HidlUtils::audioChannelMaskFromHal(halTrackMetadata.channel_mask, true /*isInput*/, in sinkMetadataFromHalV7()
258 &halTrackMetadata.channel_mask), in sinkMetadataToHalV7()
317 HidlUtils::audioChannelMaskFromHal(halTrackMetadata.channel_mask, false /*isInput*/, in sourceMetadataFromHalV7()
368 &halTrackMetadata.channel_mask), in sourceMetadataToHalV7()
/hardware/qcom/audio/hal/msm8974/
Dplatform.c3242 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; in platform_get_input_snd_device() local
3243 int channel_count = audio_channel_count_from_in_mask(channel_mask); in platform_get_input_snd_device()
3246 __func__, out_device, in_device, channel_count, channel_mask); in platform_get_input_snd_device()
3397 } else if (((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) || in platform_get_input_snd_device()
3398 (channel_mask == AUDIO_CHANNEL_IN_STEREO) || in platform_get_input_snd_device()
3399 (channel_mask == AUDIO_CHANNEL_INDEX_MASK_2)) && in platform_get_input_snd_device()
3402 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_3) && in platform_get_input_snd_device()
3405 } else if ((channel_mask == AUDIO_CHANNEL_INDEX_MASK_4) && in platform_get_input_snd_device()
3429 if (((channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) || in platform_get_input_snd_device()
3430 (channel_mask == AUDIO_CHANNEL_IN_STEREO) || in platform_get_input_snd_device()
[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/msm8960/
Dplatform.c778 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; in platform_get_input_snd_device() local
844 if (channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) in platform_get_input_snd_device()
849 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/effect/all-versions/default/util/
DEffectUtils.cpp118 halConfig->channels = halConfigBase.channel_mask; in effectBufferConfigToHal()
/hardware/interfaces/audio/core/all-versions/default/
DDevice.cpp179 halConfig.channel_mask, halDeviceAddress); in openOutputStreamCore()
217 halConfig.channel_mask, halDeviceAddress, halSource); in openInputStreamCore()
DStream.cpp302 static_cast<int>(halConfigBase.channel_mask)); in setAudioProperties()
/hardware/interfaces/audio/core/all-versions/default/util/tests/
Dcoreutils_tests.cpp288 {.channel_mask = kInvalidHalChannelMask}}; in TEST()
450 {.channel_mask = kInvalidHalChannelMask}}; in TEST()
/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c278 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in sound_trigger_keyphrase_event_alloc()
298 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.c2199 audio_channel_mask_t channel_mask = (in == NULL) ? AUDIO_CHANNEL_IN_MONO : in->channel_mask; local
2200 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/google/gfxstream/guest/mesa/include/drm-uapi/
Di915_drm.h1922 __u32 channel_mask; member

12