Lines Matching refs:candidate

685     unsigned int candidate = 0;  in usb_get_best_bit_width()  local
692 stream_bit_width, candidate); in usb_get_best_bit_width()
693 if (candidate == 0) { 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()
704 __func__, candidate); in usb_get_best_bit_width()
705 *bit_width = candidate; in usb_get_best_bit_width()
718 unsigned int candidate = 0; in usb_get_best_match_for_channels() local
725 stream_ch, bit_width, candidate); in usb_get_best_match_for_channels()
733 } else if (candidate == 0) in usb_get_best_match_for_channels()
734 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
740 ABS_SUB(stream_ch, candidate)) { in usb_get_best_match_for_channels()
741 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
743 ABS_SUB(stream_ch, candidate)) && 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()
749 __func__, candidate); in usb_get_best_match_for_channels()
750 *channel_count = candidate; in usb_get_best_match_for_channels()
811 unsigned int candidate = 48000; in usb_get_best_match_for_sample_rate() local
824 channel_count, bit_width, stream_sample_rate, candidate); in usb_get_best_match_for_sample_rate()
831 candidate = 0; in usb_get_best_match_for_sample_rate()
837 channel_count, bit_width, stream_sample_rate, candidate); in usb_get_best_match_for_sample_rate()
843 } else if (candidate == 0) { in usb_get_best_match_for_sample_rate()
844 candidate = dev_info->rates[i]; in usb_get_best_match_for_sample_rate()
854 candidate, in usb_get_best_match_for_sample_rate()
855 &candidate); in usb_get_best_match_for_sample_rate()
860 candidate, in usb_get_best_match_for_sample_rate()
861 &candidate); in usb_get_best_match_for_sample_rate()
866 __func__, candidate); in usb_get_best_match_for_sample_rate()
867 *sr = candidate; in usb_get_best_match_for_sample_rate()