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()
DAudioInputDescriptor.cpp62 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
81 dstConfig->config_mask = AUDIO_PORT_CONFIG_ALL; in toAudioPortConfig()
83 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
DAudioOutputDescriptor.cpp187 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
205 dstConfig->config_mask = AUDIO_PORT_CONFIG_ALL; in toAudioPortConfig()
207 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
543 config.config_mask = AUDIO_PORT_CONFIG_GAIN; in setVolume()
DIOProfile.cpp60 .config_mask = AUDIO_PORT_CONFIG_ALL & ~AUDIO_PORT_CONFIG_GAIN, in isCompatibleProfile()
DDeviceDescriptor.cpp116 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
/frameworks/av/media/libaudiofoundation/
DAudioPort.cpp283 if (config->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in applyAudioPortConfig()
286 if (config->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in applyAudioPortConfig()
289 if (config->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in applyAudioPortConfig()
292 if (config->config_mask & AUDIO_PORT_CONFIG_GAIN) { in applyAudioPortConfig()
295 if (config->config_mask & AUDIO_PORT_CONFIG_FLAGS) { in applyAudioPortConfig()
310 if (dstConfig->config_mask & configMask) { in updateField()
311 if ((srcConfig != nullptr) && (srcConfig->config_mask & configMask)) { in updateField()
337 if ((dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) && audioport != NULL) { in toAudioPortConfig()
339 if ((srcConfig != NULL) && (srcConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) in toAudioPortConfig()
347 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
[all …]
DDeviceDescriptorBase.cpp60 dstConfig->config_mask = AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
62 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig()
65 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig()
68 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig()
72 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
/frameworks/av/services/audioflinger/
DPatchPanel.cpp264 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
267 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
270 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
273 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS) { in createAudioPatch()
296 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
301 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
307 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
313 patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createAudioPatch()
509 audio_input_flags_t inputFlags = mAudioPatch.sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
523 audio_output_flags_t outputFlags = mAudioPatch.sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
DEffects.cpp3406 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) != 0) { in sampleRate()
3414 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) != 0) { in channelMask()
DThreads.cpp1820 config->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
4717 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
9508 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
10499 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
10621 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
/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.cpp1988 legacy.config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in aidl2legacy_AudioPortConfig_audio_port_config()
1995 legacy.config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in aidl2legacy_AudioPortConfig_audio_port_config()
2000 legacy.config_mask |= AUDIO_PORT_CONFIG_FORMAT; in aidl2legacy_AudioPortConfig_audio_port_config()
2005 legacy.config_mask |= AUDIO_PORT_CONFIG_GAIN; in aidl2legacy_AudioPortConfig_audio_port_config()
2010 legacy.config_mask |= AUDIO_PORT_CONFIG_FLAGS; in aidl2legacy_AudioPortConfig_audio_port_config()
2026 if (legacy.config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in legacy2aidl_audio_port_config_AudioPortConfig()
2031 if (legacy.config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in legacy2aidl_audio_port_config_AudioPortConfig()
2035 if (legacy.config_mask & AUDIO_PORT_CONFIG_FORMAT) { in legacy2aidl_audio_port_config_AudioPortConfig()
2039 if (legacy.config_mask & AUDIO_PORT_CONFIG_GAIN) { in legacy2aidl_audio_port_config_AudioPortConfig()
2043 if (legacy.config_mask & AUDIO_PORT_CONFIG_FLAGS) { in legacy2aidl_audio_port_config_AudioPortConfig()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp981 nAudioPortConfig->config_mask = env->GetIntField(jAudioPortConfig, in convertAudioPortConfigToNative()
984 nAudioPortConfig->config_mask = configMask; in convertAudioPortConfigToNative()
1078 int gainIndex = (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) in convertAudioPortConfigFromNative()
1177 nMask = (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) in convertAudioPortConfigFromNative()
1190 (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) in convertAudioPortConfigFromNative()
1195 (nAudioPortConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) in convertAudioPortConfigFromNative()
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp697 patch.sources[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
709 patch.sinks[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1680 const unsigned int config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE | in getBestMsdConfig() local
1682 sinkConfig->config_mask |= config_mask; in getBestMsdConfig()
1683 sourceConfig->config_mask |= config_mask; in getBestMsdConfig()
4783 if (config->config_mask != AUDIO_PORT_CONFIG_GAIN) { in setAudioPortConfig()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp900 if ((port.active_config.config_mask & AUDIO_PORT_CONFIG_FLAGS) != 0) { in TEST_F()