Searched refs:portV7 (Results 1 – 2 of 2) sorted by relevance
724 const struct audio_port *port, struct audio_port_v7 *portV7) { in audio_populate_audio_port_v7() argument725 portV7->id = port->id; in audio_populate_audio_port_v7()726 portV7->role = port->role; in audio_populate_audio_port_v7()727 portV7->type = port->type; in audio_populate_audio_port_v7()728 strncpy(portV7->name, port->name, AUDIO_PORT_MAX_NAME_LEN); in audio_populate_audio_port_v7()729 portV7->name[AUDIO_PORT_MAX_NAME_LEN-1] = '\0'; in audio_populate_audio_port_v7()730 portV7->num_audio_profiles = in audio_populate_audio_port_v7()733 for (size_t i = 0; i < portV7->num_audio_profiles; ++i) { in audio_populate_audio_port_v7()734 portV7->audio_profiles[i].format = port->formats[i]; in audio_populate_audio_port_v7()735 portV7->audio_profiles[i].num_sample_rates = port->num_sample_rates; in audio_populate_audio_port_v7()[all …]
322 void fillFakeAudioPortV7Info(struct audio_port_v7* portV7, bool containsExtraAudioDescriptor);560 void SystemAudioPortTest::fillFakeAudioPortV7Info(struct audio_port_v7* portV7, in fillFakeAudioPortV7Info() argument562 fillFakeAudioPortBaseInfo(portV7); in fillFakeAudioPortV7Info()564 portV7->num_audio_profiles = fillFakeFormats(formats, AUDIO_PORT_MAX_FORMATS); in fillFakeAudioPortV7Info()565 for (size_t i = 0; i < portV7->num_audio_profiles; ++i) { in fillFakeAudioPortV7Info()566 portV7->audio_profiles[i].format = formats[i]; in fillFakeAudioPortV7Info()568 portV7->audio_profiles[i].num_sample_rates = AUDIO_PORT_MAX_SAMPLING_RATES; in fillFakeAudioPortV7Info()569 for (size_t j = 0; j < portV7->audio_profiles[i].num_sample_rates; ++j) { in fillFakeAudioPortV7Info()571 portV7->audio_profiles[i].sample_rates[j] = rand(); in fillFakeAudioPortV7Info()573 portV7->audio_profiles[i].num_channel_masks = AUDIO_PORT_MAX_CHANNEL_MASKS; in fillFakeAudioPortV7Info()[all …]