Home
last modified time | relevance | path

Searched refs:dstConfig (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPort.cpp439 void AudioPortConfig::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
442 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in toAudioPortConfig()
443 dstConfig->sample_rate = mSamplingRate; in toAudioPortConfig()
445 dstConfig->sample_rate = srcConfig->sample_rate; in toAudioPortConfig()
448 dstConfig->sample_rate = 0; in toAudioPortConfig()
450 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in toAudioPortConfig()
451 dstConfig->channel_mask = mChannelMask; in toAudioPortConfig()
453 dstConfig->channel_mask = srcConfig->channel_mask; in toAudioPortConfig()
456 dstConfig->channel_mask = AUDIO_CHANNEL_NONE; in toAudioPortConfig()
458 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in toAudioPortConfig()
[all …]
DDeviceDescriptor.cpp219 void DeviceDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
222 dstConfig->config_mask = AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
224 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig()
227 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig()
230 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig()
234 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
237 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
239 dstConfig->id = mId; in toAudioPortConfig()
240 dstConfig->role = audio_is_output_device(mDeviceType) ? in toAudioPortConfig()
242 dstConfig->type = AUDIO_PORT_TYPE_DEVICE; in toAudioPortConfig()
[all …]
DAudioInputDescriptor.cpp68 void AudioInputDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
73 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
76 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
79 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
81 dstConfig->id = mId; in toAudioPortConfig()
82 dstConfig->role = AUDIO_PORT_ROLE_SINK; in toAudioPortConfig()
83 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
84 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig()
85 dstConfig->ext.mix.handle = mIoHandle; in toAudioPortConfig()
86 dstConfig->ext.mix.usecase.source = inputSource(); in toAudioPortConfig()
DAudioOutputDescriptor.cpp162 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
165 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
168 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
170 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
172 dstConfig->id = mId; in toAudioPortConfig()
173 dstConfig->role = AUDIO_PORT_ROLE_SOURCE; in toAudioPortConfig()
174 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
175 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig()
176 dstConfig->ext.mix.usecase.stream = AUDIO_STREAM_DEFAULT; in toAudioPortConfig()
344 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioOutputDescriptor.h69 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
119 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
169 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DDeviceDescriptor.h45 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DAudioInputDescriptor.h50 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DAudioPort.h161 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,