Home
last modified time | relevance | path

Searched refs:sample_rates (Results 1 – 6 of 6) sorted by relevance

/system/media/alsa_utils/
Dalsa_device_profile.c67 profile->sample_rates[0] = 0; in profile_reset()
147 return profile_is_valid(profile) ? profile->sample_rates[0] : DEFAULT_SAMPLE_RATE; in profile_get_default_sample_rate()
155 return profile->sample_rates[0]; in profile_get_highest_sample_rate()
162 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_is_sample_rate_valid()
163 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid()
279 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates()
283 profile->sample_rates[num_entries++] = std_sample_rates[index]; in profile_enum_sample_rates()
286 profile->sample_rates[num_entries] = 0; /* terminate */ in profile_enum_sample_rates()
491 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_get_sample_rate_strs()
492 snprintf(numBuffer, sizeof(numBuffer), "%u", profile->sample_rates[index]); in profile_get_sample_rate_strs()
[all …]
Dalsa_device_proxy.c117 int max_rate_index = proxy_scan_rates(proxy, profile->sample_rates); in proxy_prepare()
119 if (proxy->alsa_config.rate > profile->sample_rates[max_rate_index]) { in proxy_prepare()
121 proxy->alsa_config.rate, profile->sample_rates[max_rate_index]); in proxy_prepare()
122 proxy->alsa_config.rate = profile->sample_rates[max_rate_index]; in proxy_prepare()
293 int proxy_scan_rates(alsa_device_proxy * proxy, const unsigned sample_rates[]) { in proxy_scan_rates() argument
304 while (sample_rates[rate_index] != 0) { in proxy_scan_rates()
305 alsa_config.rate = sample_rates[rate_index]; in proxy_scan_rates()
/system/media/alsa_utils/include/
Dalsa_device_proxy.h59 int proxy_scan_rates(alsa_device_proxy * proxy, const unsigned sample_rates[]);
Dalsa_device_profile.h47 unsigned sample_rates[MAX_PROFILE_SAMPLE_RATES]; member
/system/media/audio/include/system/
Daudio.h652 unsigned int sample_rates[AUDIO_PORT_MAX_SAMPLING_RATES]; member
687 unsigned int sample_rates[AUDIO_PORT_MAX_SAMPLING_RATES]; member
736 memcpy(portV7->audio_profiles[i].sample_rates, port->sample_rates, in audio_populate_audio_port_v7()
772 if (port->sample_rates[k] == portV7->audio_profiles[i].sample_rates[j]) { in audio_populate_audio_port()
781 port->sample_rates[port->num_sample_rates++] = in audio_populate_audio_port()
782 portV7->audio_profiles[i].sample_rates[j]; in audio_populate_audio_port()
997 profiles[i].sample_rates, profiles[i].sample_rates + profiles[i].num_sample_rates); in getAudioProfileMap()
1047 lhs->sample_rates, lhs->num_sample_rates, in audio_ports_are_equal()
1048 rhs->sample_rates, rhs->num_sample_rates) && in audio_ports_are_equal()
/system/media/tests/
Dsystemaudio_tests.cpp549 audioPort->sample_rates[i] = (i + 1) * 1000; in fillFakeAudioPortInfo()
571 portV7->audio_profiles[i].sample_rates[j] = rand(); in fillFakeAudioPortV7Info()
712 testAudioPortCapabilityArraysEquivalent(lhs.sample_rates, lhs.num_sample_rates, in TEST_P()
728 testAudioPortCapabilityArraysEquivalent(firstProfile.sample_rates, in TEST_P()