Home
last modified time | relevance | path

Searched refs:config_mask (Results 1 – 16 of 16) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp67 auto config_mask = config->config_mask; in checkExactAudioProfile() local
68 if (config_mask & AUDIO_PORT_CONFIG_GAIN) { in checkExactAudioProfile()
69 config_mask &= ~AUDIO_PORT_CONFIG_GAIN; in checkExactAudioProfile()
75 if (config_mask != 0) { in checkExactAudioProfile()
281 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_FLAGS) { in toPolicyAudioPortConfig()
282 if ((srcConfig != nullptr) && (srcConfig->config_mask & AUDIO_PORT_CONFIG_FLAGS)) { in toPolicyAudioPortConfig()
DAudioInputDescriptor.cpp59 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
79 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
82 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
DAudioOutputDescriptor.cpp185 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
204 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
207 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
476 config.config_mask = AUDIO_PORT_CONFIG_GAIN; in setVolume()
DIOProfile.cpp60 .config_mask = AUDIO_PORT_CONFIG_ALL & ~AUDIO_PORT_CONFIG_GAIN, in isCompatibleProfile()
DDeviceDescriptor.cpp138 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
/frameworks/av/media/libaudiofoundation/
DDeviceDescriptorBase.cpp56 dstConfig->config_mask = AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
58 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig()
61 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig()
64 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig()
68 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
DAudioPort.cpp241 if (config->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in applyAudioPortConfig()
244 if (config->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in applyAudioPortConfig()
247 if (config->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in applyAudioPortConfig()
250 if (config->config_mask & AUDIO_PORT_CONFIG_GAIN) { in applyAudioPortConfig()
265 if (dstConfig->config_mask & configMask) { in updateField()
266 if ((srcConfig != nullptr) && (srcConfig->config_mask & configMask)) { in updateField()
292 if ((dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) && audioport != NULL) { in toAudioPortConfig()
294 if ((srcConfig != NULL) && (srcConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) in toAudioPortConfig()
302 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
304 dstConfig->config_mask &= ~AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
/frameworks/av/services/audioflinger/
DPatchPanel.cpp263 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
266 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
269 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
272 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS) { in createAudioPatch()
294 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
299 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
305 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
311 patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createAudioPatch()
500 audio_input_flags_t inputFlags = mAudioPatch.sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
514 audio_output_flags_t outputFlags = mAudioPatch.sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
DEffects.cpp3234 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) != 0) { in sampleRate()
3242 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) != 0) { in channelMask()
DThreads.cpp1703 config->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
4443 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
9024 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
10015 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
10136 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h147 if (config->config_mask & AUDIO_PORT_CONFIG_FLAGS) { in applyPolicyAudioPortConfig()
/frameworks/av/media/libaudiofoundation/tests/
Daudiofoundation_parcelable_test.cpp37 .config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE | AUDIO_PORT_CONFIG_CHANNEL_MASK |
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp1051 legacy.config_mask = VALUE_OR_RETURN(aidl2legacy_int32_t_config_mask(aidl.configMask)); in aidl2legacy_AudioPortConfig_audio_port_config()
1080 aidl.configMask = VALUE_OR_RETURN(legacy2aidl_config_mask_int32_t(legacy.config_mask)); in legacy2aidl_audio_port_config_AudioPortConfig()
1081 if (legacy.config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in legacy2aidl_audio_port_config_AudioPortConfig()
1084 if (legacy.config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in legacy2aidl_audio_port_config_AudioPortConfig()
1088 if (legacy.config_mask & AUDIO_PORT_CONFIG_FORMAT) { in legacy2aidl_audio_port_config_AudioPortConfig()
1091 if (legacy.config_mask & AUDIO_PORT_CONFIG_GAIN) { in legacy2aidl_audio_port_config_AudioPortConfig()
1095 if (legacy.config_mask & AUDIO_PORT_CONFIG_FLAGS) { in legacy2aidl_audio_port_config_AudioPortConfig()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp953 nAudioPortConfig->config_mask = env->GetIntField(jAudioPortConfig, in convertAudioPortConfigToNative()
956 nAudioPortConfig->config_mask = configMask; in convertAudioPortConfigToNative()
1050 int gainIndex = (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) in convertAudioPortConfigFromNative()
1149 nMask = (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) in convertAudioPortConfigFromNative()
1162 (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) in convertAudioPortConfigFromNative()
1167 (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) in convertAudioPortConfigFromNative()
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp686 patch.sources[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
698 patch.sinks[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1478 const unsigned int config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE | in getBestMsdConfig() local
1480 sinkConfig->config_mask |= config_mask; in getBestMsdConfig()
1481 sourceConfig->config_mask |= config_mask; in getBestMsdConfig()
4205 if (config->config_mask != AUDIO_PORT_CONFIG_GAIN) { in setAudioPortConfig()