Home
last modified time | relevance | path

Searched refs:halPort (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp236 void HidlUtils::audioPortFromHal(const struct audio_port& halPort, AudioPort* port) { in audioPortFromHal() argument
237 port->id = halPort.id; in audioPortFromHal()
238 port->role = AudioPortRole(halPort.role); in audioPortFromHal()
239 port->type = AudioPortType(halPort.type); in audioPortFromHal()
240 port->name.setToExternal(halPort.name, strlen(halPort.name)); in audioPortFromHal()
241 port->sampleRates.resize(halPort.num_sample_rates); in audioPortFromHal()
242 for (size_t i = 0; i < halPort.num_sample_rates; ++i) { in audioPortFromHal()
243 port->sampleRates[i] = halPort.sample_rates[i]; in audioPortFromHal()
245 port->channelMasks.resize(halPort.num_channel_masks); in audioPortFromHal()
246 for (size_t i = 0; i < halPort.num_channel_masks; ++i) { in audioPortFromHal()
[all …]
DHidlUtils.h62 static void audioPortFromHal(const struct audio_port& halPort, AudioPort* port);
63 static void audioPortToHal(const AudioPort& port, struct audio_port* halPort);
/hardware/interfaces/audio/core/all-versions/default/
DDevice.cpp299 audio_port halPort; in getAudioPort() local
300 HidlUtils::audioPortToHal(port, &halPort); in getAudioPort()
301 Result retval = analyzeStatus("get_audio_port", mDevice->get_audio_port(mDevice, &halPort)); in getAudioPort()
304 HidlUtils::audioPortFromHal(halPort, &resultPort); in getAudioPort()