Lines Matching refs:dev_info
659 struct usb_device_config *dev_info; in usb_print_active_device() local
669 dev_info = node_to_item(node_j, struct usb_device_config, list); in usb_print_active_device()
671 __func__, dev_info->bit_width, dev_info->channel_count); in usb_print_active_device()
672 for (i = 0; i < dev_info->rate_size; i++) in usb_print_active_device()
673 ALOGI("%s: rate %d", __func__, dev_info->rates[i]); in usb_print_active_device()
684 struct usb_device_config *dev_info; in usb_get_best_bit_width() local
688 dev_info = node_to_item(node_i, struct usb_device_config, list); in usb_get_best_bit_width()
691 __func__, dev_info->bit_width, in usb_get_best_bit_width()
695 __func__, dev_info->bit_width); in usb_get_best_bit_width()
696 candidate = dev_info->bit_width; in usb_get_best_bit_width()
697 } else if (dev_info->bit_width > candidate) { in usb_get_best_bit_width()
698 candidate = dev_info->bit_width; in usb_get_best_bit_width()
700 __func__, dev_info->bit_width); in usb_get_best_bit_width()
717 struct usb_device_config *dev_info; in usb_get_best_match_for_channels() local
721 dev_info = node_to_item(node_i, struct usb_device_config, list); in usb_get_best_match_for_channels()
724 __func__, dev_info->channel_count, dev_info->bit_width, in usb_get_best_match_for_channels()
726 if (dev_info->bit_width != bit_width) in usb_get_best_match_for_channels()
728 if (dev_info->channel_count== stream_ch) { in usb_get_best_match_for_channels()
729 *channel_count = dev_info->channel_count; in usb_get_best_match_for_channels()
731 __func__, dev_info->channel_count); in usb_get_best_match_for_channels()
734 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
739 else if (ABS_SUB(stream_ch, dev_info->channel_count) < in usb_get_best_match_for_channels()
741 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
742 } else if ((ABS_SUB(stream_ch, dev_info->channel_count) == in usb_get_best_match_for_channels()
744 (dev_info->channel_count > candidate)) { in usb_get_best_match_for_channels()
745 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
810 struct usb_device_config *dev_info; in usb_get_best_match_for_sample_rate() local
820 dev_info = node_to_item(node_i, struct usb_device_config, list); in usb_get_best_match_for_sample_rate()
823 __func__, dev_info->channel_count, dev_info->bit_width, in usb_get_best_match_for_sample_rate()
825 if ((dev_info->bit_width != bit_width) || in usb_get_best_match_for_sample_rate()
826 (dev_info->channel_count != channel_count) || in usb_get_best_match_for_sample_rate()
827 (do_service_interval_check && (dev_info->service_interval_us != in usb_get_best_match_for_sample_rate()
832 for (i = 0; i < dev_info->rate_size; i++) { in usb_get_best_match_for_sample_rate()
835 __func__, dev_info->channel_count, in usb_get_best_match_for_sample_rate()
836 dev_info->bit_width, dev_info->rates[i], in usb_get_best_match_for_sample_rate()
838 if (stream_sample_rate == dev_info->rates[i]) { in usb_get_best_match_for_sample_rate()
839 *sr = dev_info->rates[i]; in usb_get_best_match_for_sample_rate()
841 __func__, dev_info->rates[i]); in usb_get_best_match_for_sample_rate()
844 candidate = dev_info->rates[i]; in usb_get_best_match_for_sample_rate()
853 dev_info->rates[i], in usb_get_best_match_for_sample_rate()
859 dev_info->rates[i], in usb_get_best_match_for_sample_rate()
1009 struct usb_device_config *dev_info; in audio_extn_usb_get_max_channels() local
1020 dev_info = node_to_item(node_j, struct usb_device_config, list); in audio_extn_usb_get_max_channels()
1021 max_ch = _MAX(max_ch, dev_info->channel_count); in audio_extn_usb_get_max_channels()
1031 struct usb_device_config *dev_info; in audio_extn_usb_get_max_bit_width() local
1042 dev_info = node_to_item(node_j, struct usb_device_config, list); in audio_extn_usb_get_max_bit_width()
1043 max_bw = _MAX(max_bw, dev_info->bit_width); in audio_extn_usb_get_max_bit_width()
1055 struct usb_device_config *dev_info; in audio_extn_usb_sup_sample_rates() local
1168 struct usb_device_config *dev_info; in audio_extn_usb_remove_device() local
1191 dev_info = node_to_item(node_j, struct usb_device_config, list); in audio_extn_usb_remove_device()
1193 __func__, dev_info->bit_width, dev_info->channel_count); in audio_extn_usb_remove_device()
1194 for (i = 0; i < dev_info->rate_size; i++) in audio_extn_usb_remove_device()
1195 ALOGV("%s: rate %d", __func__, dev_info->rates[i]); in audio_extn_usb_remove_device()
1231 struct usb_device_config *dev_info; in audio_extn_usb_find_service_interval() local
1238 dev_info = node_to_item(node_j, struct usb_device_config, list); in audio_extn_usb_find_service_interval()
1239 if ((playback && (dev_info->type == USB_PLAYBACK)) || in audio_extn_usb_find_service_interval()
1240 (!playback && (dev_info->type == USB_CAPTURE))) { in audio_extn_usb_find_service_interval()
1242 _MIN(interval_us, dev_info->service_interval_us) : in audio_extn_usb_find_service_interval()
1243 _MAX(interval_us, dev_info->service_interval_us); in audio_extn_usb_find_service_interval()
1258 struct usb_device_config *dev_info; in audio_extn_usb_altset_for_service_interval() local
1268 dev_info = node_to_item(node_j, struct usb_device_config, list); in audio_extn_usb_altset_for_service_interval()
1269 if ((playback && dev_info->type == USB_PLAYBACK) || in audio_extn_usb_altset_for_service_interval()
1270 (!playback && dev_info->type == USB_CAPTURE)) { in audio_extn_usb_altset_for_service_interval()
1271 if (dev_info->service_interval_us != service_interval) in audio_extn_usb_altset_for_service_interval()
1273 if (dev_info->bit_width > bw) { in audio_extn_usb_altset_for_service_interval()
1274 bw = dev_info->bit_width; in audio_extn_usb_altset_for_service_interval()
1275 ch = dev_info->channel_count; in audio_extn_usb_altset_for_service_interval()
1276 } else if (dev_info->bit_width == bw && in audio_extn_usb_altset_for_service_interval()
1277 dev_info->channel_count > ch) { in audio_extn_usb_altset_for_service_interval()
1278 ch = dev_info->channel_count; in audio_extn_usb_altset_for_service_interval()