Lines Matching refs:dstConfig
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()
345 if ((dstConfig->config_mask & AUDIO_PORT_CONFIG_GAIN) && audioport != NULL) { in toAudioPortConfig()
346 dstConfig->gain = mGain; in toAudioPortConfig()
349 dstConfig->gain = srcConfig->gain; in toAudioPortConfig()
352 dstConfig->gain.index = -1; in toAudioPortConfig()
354 if (dstConfig->gain.index != -1) { in toAudioPortConfig()
355 dstConfig->config_mask |= AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
357 dstConfig->config_mask &= ~AUDIO_PORT_CONFIG_GAIN; in toAudioPortConfig()
361 dstConfig, srcConfig, AUDIO_PORT_CONFIG_FLAGS, { AUDIO_INPUT_FLAG_NONE }); in toAudioPortConfig()