Home
last modified time | relevance | path

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

/frameworks/av/media/libaudiofoundation/
DDeviceDescriptorBase.cpp51 dstConfig->config_mask = AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
53 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig()
56 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig()
59 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig()
63 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
DAudioPort.cpp154 if (config->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in applyAudioPortConfig()
157 if (config->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in applyAudioPortConfig()
160 if (config->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in applyAudioPortConfig()
163 if (config->config_mask & AUDIO_PORT_CONFIG_GAIN) { in applyAudioPortConfig()
178 if (dstConfig->config_mask & configMask) { in updateField()
179 if ((srcConfig != nullptr) && (srcConfig->config_mask & configMask)) { in updateField()
205 if ((dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) && audioport != NULL) { in toAudioPortConfig()
207 if ((srcConfig != NULL) && (srcConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) in toAudioPortConfig()
215 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
217 dstConfig->config_mask &= ~AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
/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.cpp173 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
192 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
195 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
448 config.config_mask = AUDIO_PORT_CONFIG_GAIN; in setVolume()
DIOProfile.cpp60 .config_mask = AUDIO_PORT_CONFIG_ALL & ~AUDIO_PORT_CONFIG_GAIN, in isCompatibleProfile()
DDeviceDescriptor.cpp128 struct audio_port_config localBackupConfig = { .config_mask = config->config_mask }; in applyAudioPortConfig()
/frameworks/av/services/audioflinger/
DPatchPanel.cpp239 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
242 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
245 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
248 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS) { in createAudioPatch()
270 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
275 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
281 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
287 patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createAudioPatch()
469 audio_input_flags_t inputFlags = mAudioPatch.sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
483 audio_output_flags_t outputFlags = mAudioPatch.sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
DEffects.cpp3097 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) != 0) { in sampleRate()
3105 (mDevicePort.config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) != 0) { in channelMask()
DThreads.cpp1605 config->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
4197 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
8458 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
9400 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
9504 config->config_mask |= AUDIO_PORT_CONFIG_FLAGS; in toAudioPortConfig()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h133 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/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1359 const unsigned int config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE | in getBestMsdAudioProfileFor() local
1361 sinkConfig->config_mask |= config_mask; in getBestMsdAudioProfileFor()
1362 sourceConfig->config_mask |= config_mask; in getBestMsdAudioProfileFor()
3758 if (config->config_mask != AUDIO_PORT_CONFIG_GAIN) { in setAudioPortConfig()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp870 nAudioPortConfig->config_mask = env->GetIntField(jAudioPortConfig, in convertAudioPortConfigToNative()
873 nAudioPortConfig->config_mask = configMask; in convertAudioPortConfigToNative()