Lines Matching defs:dstConfig

6044                                                  struct audio_port_config *dstConfig,
6049 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK|
6052 dstConfig->config_mask |= srcConfig->config_mask;
6054 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig);
6056 dstConfig->id = mId;
6057 dstConfig->role = AUDIO_PORT_ROLE_SOURCE;
6058 dstConfig->type = AUDIO_PORT_TYPE_MIX;
6059 dstConfig->ext.mix.hw_module = mProfile->mModule->mHandle;
6060 dstConfig->ext.mix.handle = mIoHandle;
6061 dstConfig->ext.mix.usecase.stream = AUDIO_STREAM_DEFAULT;
6127 struct audio_port_config *dstConfig,
6132 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK|
6135 dstConfig->config_mask |= srcConfig->config_mask;
6138 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig);
6140 dstConfig->id = mId;
6141 dstConfig->role = AUDIO_PORT_ROLE_SINK;
6142 dstConfig->type = AUDIO_PORT_TYPE_MIX;
6143 dstConfig->ext.mix.hw_module = mProfile->mModule->mHandle;
6144 dstConfig->ext.mix.handle = mIoHandle;
6145 dstConfig->ext.mix.usecase.source = mInputSource;
7314 struct audio_port_config *dstConfig,
7317 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) {
7318 dstConfig->sample_rate = mSamplingRate;
7320 dstConfig->sample_rate = srcConfig->sample_rate;
7323 dstConfig->sample_rate = 0;
7325 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) {
7326 dstConfig->channel_mask = mChannelMask;
7328 dstConfig->channel_mask = srcConfig->channel_mask;
7331 dstConfig->channel_mask = AUDIO_CHANNEL_NONE;
7333 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) {
7334 dstConfig->format = mFormat;
7336 dstConfig->format = srcConfig->format;
7339 dstConfig->format = AUDIO_FORMAT_INVALID;
7341 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) {
7342 dstConfig->gain = mGain;
7344 dstConfig->gain = srcConfig->gain;
7347 dstConfig->gain.index = -1;
7349 if (dstConfig->gain.index != -1) {
7350 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN;
7352 dstConfig->config_mask &= ~AUDIO_PORT_CONFIG_GAIN;
7681 struct audio_port_config *dstConfig,
7684 dstConfig->config_mask = AUDIO_PORT_CONFIG_CHANNEL_MASK|AUDIO_PORT_CONFIG_GAIN;
7686 dstConfig->config_mask |= srcConfig->config_mask;
7689 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig);
7691 dstConfig->id = mId;
7692 dstConfig->role = audio_is_output_device(mDeviceType) ?
7694 dstConfig->type = AUDIO_PORT_TYPE_DEVICE;
7695 dstConfig->ext.device.type = mDeviceType;
7696 dstConfig->ext.device.hw_module = mModule->mHandle;
7697 strncpy(dstConfig->ext.device.address, mAddress.string(), AUDIO_DEVICE_MAX_ADDRESS_LEN);