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.cpp437 void AudioPortConfig::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
440 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in toAudioPortConfig()
441 dstConfig->sample_rate = mSamplingRate; in toAudioPortConfig()
443 dstConfig->sample_rate = srcConfig->sample_rate; in toAudioPortConfig()
446 dstConfig->sample_rate = 0; in toAudioPortConfig()
448 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in toAudioPortConfig()
449 dstConfig->channel_mask = mChannelMask; in toAudioPortConfig()
451 dstConfig->channel_mask = srcConfig->channel_mask; in toAudioPortConfig()
454 dstConfig->channel_mask = AUDIO_CHANNEL_NONE; in toAudioPortConfig()
456 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in toAudioPortConfig()
[all …]
DDeviceDescriptor.cpp222 void DeviceDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
225 dstConfig->config_mask = AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
227 dstConfig->config_mask |= AUDIO_PORT_CONFIG_SAMPLE_RATE; in toAudioPortConfig()
230 dstConfig->config_mask |= AUDIO_PORT_CONFIG_CHANNEL_MASK; in toAudioPortConfig()
233 dstConfig->config_mask |= AUDIO_PORT_CONFIG_FORMAT; in toAudioPortConfig()
237 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
240 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
242 dstConfig->id = mId; in toAudioPortConfig()
243 dstConfig->role = audio_is_output_device(mDeviceType) ? in toAudioPortConfig()
245 dstConfig->type = AUDIO_PORT_TYPE_DEVICE; in toAudioPortConfig()
[all …]
DAudioInputDescriptor.cpp73 void AudioInputDescriptor::toAudioPortConfig(struct audio_port_config *dstConfig, in toAudioPortConfig() argument
78 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
81 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
84 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
86 dstConfig->id = mId; in toAudioPortConfig()
87 dstConfig->role = AUDIO_PORT_ROLE_SINK; in toAudioPortConfig()
88 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
89 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig()
90 dstConfig->ext.mix.handle = mIoHandle; in toAudioPortConfig()
91 dstConfig->ext.mix.usecase.source = inputSource(); in toAudioPortConfig()
DAudioOutputDescriptor.cpp161 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
164 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
167 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
169 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
171 dstConfig->id = mId; in toAudioPortConfig()
172 dstConfig->role = AUDIO_PORT_ROLE_SOURCE; in toAudioPortConfig()
173 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
174 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig()
175 dstConfig->ext.mix.usecase.stream = AUDIO_STREAM_DEFAULT; in toAudioPortConfig()
345 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioOutputDescriptor.h67 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
119 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
151 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DAudioInputDescriptor.h50 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DDeviceDescriptor.h45 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,
DAudioPort.h166 virtual void toAudioPortConfig(struct audio_port_config *dstConfig,