• Home
  • Raw
  • Download

Lines Matching refs:dstConfig

5361                                                  struct audio_port_config *dstConfig,  in toAudioPortConfig()  argument
5366 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
5369 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
5371 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
5373 dstConfig->id = mId; in toAudioPortConfig()
5374 dstConfig->role = AUDIO_PORT_ROLE_SOURCE; in toAudioPortConfig()
5375 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
5376 dstConfig->ext.mix.hw_module = mProfile->mModule->mHandle; in toAudioPortConfig()
5377 dstConfig->ext.mix.handle = mIoHandle; in toAudioPortConfig()
5378 dstConfig->ext.mix.usecase.stream = AUDIO_STREAM_DEFAULT; in toAudioPortConfig()
5444 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
5449 dstConfig->config_mask = AUDIO_PORT_CONFIG_SAMPLE_RATE|AUDIO_PORT_CONFIG_CHANNEL_MASK| in toAudioPortConfig()
5452 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
5455 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
5457 dstConfig->id = mId; in toAudioPortConfig()
5458 dstConfig->role = AUDIO_PORT_ROLE_SINK; in toAudioPortConfig()
5459 dstConfig->type = AUDIO_PORT_TYPE_MIX; in toAudioPortConfig()
5460 dstConfig->ext.mix.hw_module = mProfile->mModule->mHandle; in toAudioPortConfig()
5461 dstConfig->ext.mix.handle = mIoHandle; in toAudioPortConfig()
5462 dstConfig->ext.mix.usecase.source = mInputSource; in toAudioPortConfig()
6532 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
6535 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in toAudioPortConfig()
6536 dstConfig->sample_rate = mSamplingRate; in toAudioPortConfig()
6538 dstConfig->sample_rate = srcConfig->sample_rate; in toAudioPortConfig()
6541 dstConfig->sample_rate = 0; in toAudioPortConfig()
6543 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in toAudioPortConfig()
6544 dstConfig->channel_mask = mChannelMask; in toAudioPortConfig()
6546 dstConfig->channel_mask = srcConfig->channel_mask; in toAudioPortConfig()
6549 dstConfig->channel_mask = AUDIO_CHANNEL_NONE; in toAudioPortConfig()
6551 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_FORMAT) { in toAudioPortConfig()
6552 dstConfig->format = mFormat; in toAudioPortConfig()
6554 dstConfig->format = srcConfig->format; in toAudioPortConfig()
6557 dstConfig->format = AUDIO_FORMAT_INVALID; in toAudioPortConfig()
6559 if (dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) { in toAudioPortConfig()
6560 dstConfig->gain = mGain; in toAudioPortConfig()
6562 dstConfig->gain = srcConfig->gain; in toAudioPortConfig()
6565 dstConfig->gain.index = -1; in toAudioPortConfig()
6567 if (dstConfig->gain.index != -1) { in toAudioPortConfig()
6568 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
6570 dstConfig->config_mask &= ~AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
6885 struct audio_port_config *dstConfig, in toAudioPortConfig() argument
6888 dstConfig->config_mask = AUDIO_PORT_CONFIG_CHANNEL_MASK|AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
6890 dstConfig->config_mask |= srcConfig->config_mask; in toAudioPortConfig()
6893 AudioPortConfig::toAudioPortConfig(dstConfig, srcConfig); in toAudioPortConfig()
6895 dstConfig->id = mId; in toAudioPortConfig()
6896 dstConfig->role = audio_is_output_device(mDeviceType) ? in toAudioPortConfig()
6898 dstConfig->type = AUDIO_PORT_TYPE_DEVICE; in toAudioPortConfig()
6899 dstConfig->ext.device.type = mDeviceType; in toAudioPortConfig()
6900 dstConfig->ext.device.hw_module = mModule->mHandle; in toAudioPortConfig()
6901 strncpy(dstConfig->ext.device.address, mAddress.string(), AUDIO_DEVICE_MAX_ADDRESS_LEN); in toAudioPortConfig()