Lines Matching refs:port
26 void AudioPort::importAudioPort(const sp<AudioPort>& port, bool force __unused) in importAudioPort() argument
28 for (const auto& profileToImport : port->mProfiles) { in importAudioPort()
41 void AudioPort::toAudioPort(struct audio_port *port) const { in toAudioPort()
65 port->role = mRole; in toAudioPort()
66 port->type = mType; in toAudioPort()
67 strlcpy(port->name, mName.c_str(), AUDIO_PORT_MAX_NAME_LEN); in toAudioPort()
68 port->num_sample_rates = flatenedRates.size(); in toAudioPort()
69 port->num_channel_masks = flatenedChannels.size(); in toAudioPort()
70 port->num_formats = flatenedFormats.size(); in toAudioPort()
71 std::copy(flatenedRates.begin(), flatenedRates.end(), port->sample_rates); in toAudioPort()
72 std::copy(flatenedChannels.begin(), flatenedChannels.end(), port->channel_masks); in toAudioPort()
73 std::copy(flatenedFormats.begin(), flatenedFormats.end(), port->formats); in toAudioPort()
77 port->num_gains = std::min(mGains.size(), (size_t) AUDIO_PORT_MAX_GAINS); in toAudioPort()
78 for (size_t i = 0; i < port->num_gains; i++) { in toAudioPort()
79 port->gains[i] = mGains[i]->getGain(); in toAudioPort()