Home | History | Annotate | Download | only in usbaudio

Lines Matching refs:profile

87     alsa_device_profile * profile;      /* Points to the alsa_device_profile in the audio_device */
118 alsa_device_profile * profile; /* Points to the alsa_device_profile in the audio_device */
234 static char * device_get_parameters(alsa_device_profile * profile, const char * keys)
236 if (profile->card < 0 || profile->device < 0) {
246 char* rates_list = profile_get_sample_rate_strs(profile);
254 char* channels_list = profile_get_channel_count_strs(profile);
262 char * format_params = profile_get_format_strs(profile);
349 dprintf(fd, "Output Profile:\n");
350 profile_dump(out_stream->profile, fd);
376 /* Lock the device because that is where the profile lives */
379 if (!profile_is_cached_for(out->profile, card, device)) {
384 int saved_card = out->profile->card;
385 int saved_device = out->profile->device;
386 out->profile->card = card;
387 out->profile->device = device;
388 ret_value = profile_read_device_info(out->profile) ? 0 : -EINVAL;
390 out->profile->card = saved_card;
391 out->profile->device = saved_device;
408 char * params_str = device_get_parameters(out->profile, keys);
429 ALOGV("start_output_stream(card:%d device:%d)", out->profile->card, out->profile->device);
567 out->profile = &out->adev->out_profile;
574 parse_card_device_params(address, &(out->profile->card), &(out->profile->device));
576 profile_read_device_info(out->profile);
582 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile);
583 } else if (profile_is_sample_rate_valid(out->profile, config->sample_rate)) {
586 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile);
595 proxy_config.format = profile_get_default_format(out->profile);
599 if (profile_is_format_valid(out->profile, fmt)) {
602 proxy_config.format = profile_get_default_format(out->profile);
612 out->hal_channel_count = profile_get_default_channel_count(out->profile);
637 // Validate the "logical" channel count against support in the "actual" profile.
640 proxy_config.channels = profile_get_closest_channel_count(out->profile, out->hal_channel_count);
641 proxy_prepare(&out->proxy, out->profile, &proxy_config);
668 ALOGV("adev_close_output_stream(c:%d d:%d)", out->profile->card, out->profile->device);
757 dprintf(fd, "Input Profile:\n");
758 profile_dump(in_stream->profile, fd);
788 if (card >= 0 && device >= 0 && !profile_is_cached_for(in->profile, card, device)) {
793 int saved_card = in->profile->card;
794 int saved_device = in->profile->device;
795 in->profile->card = card;
796 in->profile->device = device;
797 ret_value = profile_read_device_info(in->profile) ? 0 : -EINVAL;
799 in->profile->card = saved_card;
800 in->profile->device = saved_device;
818 char * params_str = device_get_parameters(in->profile, keys);
844 ALOGV("start_input_stream(card:%d device:%d)", in->profile->card, in->profile->device);
870 alsa_device_profile * profile = in->profile;
972 in->profile = &in->adev->in_profile;
978 parse_card_device_params(address, &(in->profile->card), &(in->profile->device));
980 profile_read_device_info(in->profile);
984 config->sample_rate = profile_get_default_sample_rate(in->profile);
991 profile, config->sample_rate)) {
994 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(in->profile);
1001 proxy_config.format = profile_get_default_format(in->profile);
1005 if (profile_is_format_valid(in->profile, fmt)) {
1008 proxy_config.format = profile_get_default_format(in->profile);
1018 in->hal_channel_count = profile_get_default_channel_count(in->profile);
1051 // Validate the "logical" channel count against support in the "actual" profile.
1055 profile_get_closest_channel_count(in->profile, in->hal_channel_count);
1056 ret = proxy_prepare(&in->proxy, in->profile, &proxy_config);
1092 ALOGV("adev_close_input_stream(c:%d d:%d)", in->profile->card, in->profile->device);