Home
last modified time | relevance | path

Searched refs:portV7 (Results 1 – 2 of 2) sorted by relevance

/system/media/audio/include/system/
Daudio.h829 const struct audio_port *port, struct audio_port_v7 *portV7) { in audio_populate_audio_port_v7() argument
830 portV7->id = port->id; in audio_populate_audio_port_v7()
831 portV7->role = port->role; in audio_populate_audio_port_v7()
832 portV7->type = port->type; in audio_populate_audio_port_v7()
833 strncpy(portV7->name, port->name, AUDIO_PORT_MAX_NAME_LEN); in audio_populate_audio_port_v7()
834 portV7->name[AUDIO_PORT_MAX_NAME_LEN-1] = '\0'; in audio_populate_audio_port_v7()
835 portV7->num_audio_profiles = in audio_populate_audio_port_v7()
838 for (size_t i = 0; i < portV7->num_audio_profiles; ++i) { in audio_populate_audio_port_v7()
839 portV7->audio_profiles[i].format = port->formats[i]; in audio_populate_audio_port_v7()
840 portV7->audio_profiles[i].num_sample_rates = port->num_sample_rates; in audio_populate_audio_port_v7()
[all …]
/system/media/tests/
Dsystemaudio_tests.cpp328 void fillFakeAudioPortV7Info(struct audio_port_v7* portV7, bool containsExtraAudioDescriptor);
564 void SystemAudioPortTest::fillFakeAudioPortV7Info(struct audio_port_v7* portV7, in fillFakeAudioPortV7Info() argument
566 fillFakeAudioPortBaseInfo(portV7); in fillFakeAudioPortV7Info()
568 portV7->num_audio_profiles = fillFakeFormats(formats, AUDIO_PORT_MAX_FORMATS); in fillFakeAudioPortV7Info()
569 for (size_t i = 0; i < portV7->num_audio_profiles; ++i) { in fillFakeAudioPortV7Info()
570 portV7->audio_profiles[i].format = formats[i]; in fillFakeAudioPortV7Info()
572 portV7->audio_profiles[i].num_sample_rates = AUDIO_PORT_MAX_SAMPLING_RATES; in fillFakeAudioPortV7Info()
573 for (size_t j = 0; j < portV7->audio_profiles[i].num_sample_rates; ++j) { in fillFakeAudioPortV7Info()
575 portV7->audio_profiles[i].sample_rates[j] = rand(); in fillFakeAudioPortV7Info()
577 portV7->audio_profiles[i].num_channel_masks = AUDIO_PORT_MAX_CHANNEL_MASKS; in fillFakeAudioPortV7Info()
[all …]