Searched refs:audioPort (Results 1 – 1 of 1) sorted by relevance
327 void fillFakeAudioPortInfo(struct audio_port* audioPort);547 void SystemAudioPortTest::fillFakeAudioPortInfo(struct audio_port* audioPort) { in fillFakeAudioPortInfo() argument548 fillFakeAudioPortBaseInfo(audioPort); in fillFakeAudioPortInfo()550 audioPort->num_sample_rates = AUDIO_PORT_MAX_SAMPLING_RATES; in fillFakeAudioPortInfo()551 for (size_t i = 0; i < audioPort->num_sample_rates; ++i) { in fillFakeAudioPortInfo()553 audioPort->sample_rates[i] = (i + 1) * 1000; in fillFakeAudioPortInfo()555 audioPort->num_channel_masks = AUDIO_PORT_MAX_CHANNEL_MASKS; in fillFakeAudioPortInfo()556 auto channelMasks = audioPort->role == AUDIO_PORT_ROLE_SINK ? OUT_CHANNEL_MASKS in fillFakeAudioPortInfo()558 std::copy(channelMasks, channelMasks+audioPort->num_channel_masks, in fillFakeAudioPortInfo()559 std::begin(audioPort->channel_masks)); in fillFakeAudioPortInfo()[all …]