Searched refs:dstConfig (Results 1 – 10 of 10) sorted by relevance
/frameworks/av/media/libaudiofoundation/ |
D | DeviceDescriptorBase.cpp | 57 void DeviceDescriptorBase::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument 60 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() 75 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig() 77 dstConfig->role = audio_is_output_device(mDeviceTypeAddr.mType) ? in toAudioPortConfig() 79 dstConfig->type = AUDIO_PORT_TYPE_DEVICE; in toAudioPortConfig() 80 dstConfig->ext.device.type = mDeviceTypeAddr.mType; in toAudioPortConfig() [all …]
|
D | AudioPort.cpp | 315 struct audio_port_config *dstConfig, const struct audio_port_config *srcConfig, in updateField() argument 318 if (dstConfig->config_mask & configMask) { in updateField() 320 dstConfig->*port_config_field = srcConfig->*port_config_field; in updateField() 322 dstConfig->*port_config_field = portConfigField; in updateField() 325 dstConfig->*port_config_field = defaultValue; in updateField() 332 struct audio_port_config *dstConfig, in toAudioPortConfig() argument 336 dstConfig, srcConfig, AUDIO_PORT_CONFIG_SAMPLE_RATE, 0u); in toAudioPortConfig() 338 dstConfig, srcConfig, AUDIO_PORT_CONFIG_CHANNEL_MASK, in toAudioPortConfig() 341 dstConfig, srcConfig, AUDIO_PORT_CONFIG_FORMAT, AUDIO_FORMAT_INVALID); in toAudioPortConfig() 342 dstConfig->id = mId; in toAudioPortConfig() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 130 void DeviceDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument 133 DeviceDescriptorBase::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig() 134 dstConfig->ext.device.hw_module = getModuleHandle(); in toAudioPortConfig() 137 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig() 138 dstConfig->format = mPreferredConfig->format; in toAudioPortConfig() 141 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig() 142 dstConfig->sample_rate = mPreferredConfig->sample_rate; in toAudioPortConfig() 145 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig() 146 dstConfig->channel_mask = mPreferredConfig->channel_mask; in toAudioPortConfig()
|
D | AudioInputDescriptor.cpp | 76 void AudioInputDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument 81 dstConfig->config_mask = AUDIO_PORT_CONFIG_ALL; in toAudioPortConfig() 83 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig() 86 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig() 88 dstConfig->role = AUDIO_PORT_ROLE_SINK; in toAudioPortConfig() 89 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig() 90 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig() 91 dstConfig->ext.mix.handle = mIoHandle; in toAudioPortConfig() 92 dstConfig->ext.mix.usecase.source = source(); in toAudioPortConfig()
|
D | AudioOutputDescriptor.cpp | 204 void AudioOutputDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument 207 dstConfig->config_mask = AUDIO_PORT_CONFIG_ALL; in toAudioPortConfig() 209 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig() 211 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig() 213 dstConfig->role = AUDIO_PORT_ROLE_SOURCE; in toAudioPortConfig() 214 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig() 215 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig() 216 dstConfig->ext.mix.usecase.stream = AUDIO_STREAM_DEFAULT; in toAudioPortConfig() 474 struct audio_port_config *dstConfig, in toAudioPortConfig() argument 479 AudioOutputDescriptor::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioOutputDescriptor.h | 273 virtual void toAudioPortConfig(struct audio_port_config *dstConfig, 407 virtual void toAudioPortConfig(struct audio_port_config *dstConfig, 523 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
|
D | AudioInputDescriptor.h | 71 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
|
D | DeviceDescriptor.h | 75 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
|
/frameworks/av/media/libaudiofoundation/include/media/ |
D | DeviceDescriptorBase.h | 58 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
|
D | AudioPort.h | 178 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
|