• Home
  • Raw
  • Download

Lines Matching refs:fp

98 	const struct audioformat *fp;  in find_format()  local
103 list_for_each_entry(fp, fmt_list_head, list) { in find_format()
105 if (!(fp->formats & pcm_format_to_bits(format))) in find_format()
107 if (fp->channels != channels) in find_format()
110 if (rate < fp->rate_min || rate > fp->rate_max) in find_format()
112 if (!(fp->rates & SNDRV_PCM_RATE_CONTINUOUS)) { in find_format()
114 for (i = 0; i < fp->nr_rates; i++) in find_format()
115 if (fp->rate_table[i] == rate) in find_format()
117 if (i >= fp->nr_rates) in find_format()
120 attr = fp->ep_attr & USB_ENDPOINT_SYNCTYPE; in find_format()
127 found = fp; in find_format()
146 found = fp; in find_format()
152 if (fp->maxpacksize > found->maxpacksize) { in find_format()
153 found = fp; in find_format()
700 const struct audioformat *fp) in hw_check_valid_format() argument
711 check_fmts.bits[0] = (u32)fp->formats; in hw_check_valid_format()
712 check_fmts.bits[1] = (u32)(fp->formats >> 32); in hw_check_valid_format()
715 hwc_debug(" > check: no supported format 0x%llx\n", fp->formats); in hw_check_valid_format()
719 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format()
720 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format()
724 if (fp->rate_min > it->max || (fp->rate_min == it->max && it->openmax)) { in hw_check_valid_format()
725 hwc_debug(" > check: rate_min %d > max %d\n", fp->rate_min, it->max); in hw_check_valid_format()
728 if (fp->rate_max < it->min || (fp->rate_max == it->min && it->openmin)) { in hw_check_valid_format()
729 hwc_debug(" > check: rate_max %d < min %d\n", fp->rate_max, it->min); in hw_check_valid_format()
734 ptime = 125 * (1 << fp->datainterval); in hw_check_valid_format()
778 const struct audioformat *fp; in hw_rule_rate() local
786 list_for_each_entry(fp, &subs->fmt_list, list) { in hw_rule_rate()
787 if (!hw_check_valid_format(subs, params, fp)) in hw_rule_rate()
789 r = snd_usb_endpoint_get_clock_rate(chip, fp->clock); in hw_rule_rate()
797 if (fp->rate_table && fp->nr_rates) { in hw_rule_rate()
798 for (i = 0; i < fp->nr_rates; i++) { in hw_rule_rate()
799 r = fp->rate_table[i]; in hw_rule_rate()
806 rmin = min(rmin, fp->rate_min); in hw_rule_rate()
807 rmax = max(rmax, fp->rate_max); in hw_rule_rate()
819 const struct audioformat *fp; in hw_rule_channels() local
826 list_for_each_entry(fp, &subs->fmt_list, list) { in hw_rule_channels()
827 if (!hw_check_valid_format(subs, params, fp)) in hw_rule_channels()
829 rmin = min(rmin, fp->channels); in hw_rule_channels()
830 rmax = max(rmax, fp->channels); in hw_rule_channels()
858 const struct audioformat *fp; in hw_rule_format() local
864 list_for_each_entry(fp, &subs->fmt_list, list) { in hw_rule_format()
865 if (!hw_check_valid_format(subs, params, fp)) in hw_rule_format()
867 fbits |= fp->formats; in hw_rule_format()
876 const struct audioformat *fp; in hw_rule_period_time() local
884 list_for_each_entry(fp, &subs->fmt_list, list) { in hw_rule_period_time()
885 if (!hw_check_valid_format(subs, params, fp)) in hw_rule_period_time()
887 min_datainterval = min(min_datainterval, fp->datainterval); in hw_rule_period_time()
904 const struct audioformat *fp; in get_sync_ep_from_substream() local
907 list_for_each_entry(fp, &subs->fmt_list, list) { in get_sync_ep_from_substream()
908 ep = snd_usb_get_endpoint(chip, fp->endpoint); in get_sync_ep_from_substream()
917 if (!fp->implicit_fb) in get_sync_ep_from_substream()
920 ep = snd_usb_get_endpoint(chip, fp->sync_ep); in get_sync_ep_from_substream()
1004 const struct audioformat *fp; in setup_hw_info() local
1018 list_for_each_entry(fp, &subs->fmt_list, list) { in setup_hw_info()
1019 runtime->hw.rates |= fp->rates; in setup_hw_info()
1020 if (runtime->hw.rate_min > fp->rate_min) in setup_hw_info()
1021 runtime->hw.rate_min = fp->rate_min; in setup_hw_info()
1022 if (runtime->hw.rate_max < fp->rate_max) in setup_hw_info()
1023 runtime->hw.rate_max = fp->rate_max; in setup_hw_info()
1024 if (runtime->hw.channels_min > fp->channels) in setup_hw_info()
1025 runtime->hw.channels_min = fp->channels; in setup_hw_info()
1026 if (runtime->hw.channels_max < fp->channels) in setup_hw_info()
1027 runtime->hw.channels_max = fp->channels; in setup_hw_info()
1028 if (fp->fmt_type == UAC_FORMAT_TYPE_II && fp->frame_size > 0) { in setup_hw_info()
1031 fp->frame_size; in setup_hw_info()
1033 pt = 125 * (1 << fp->datainterval); in setup_hw_info()