Lines Matching refs:rats
812 unsigned int rats_count, const struct snd_ratnum *rats, in snd_interval_ratnum() argument
825 unsigned int num = rats[k].num; in snd_interval_ratnum()
832 if (den < rats[k].den_min) in snd_interval_ratnum()
834 if (den > rats[k].den_max) in snd_interval_ratnum()
835 den = rats[k].den_max; in snd_interval_ratnum()
838 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
864 unsigned int num = rats[k].num; in snd_interval_ratnum()
873 if (den > rats[k].den_max) in snd_interval_ratnum()
875 if (den < rats[k].den_min) in snd_interval_ratnum()
876 den = rats[k].den_min; in snd_interval_ratnum()
879 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
881 den += rats[k].den_step - r; in snd_interval_ratnum()
932 const struct snd_ratden *rats, in snd_interval_ratden() argument
943 unsigned int den = rats[k].den; in snd_interval_ratden()
947 if (num > rats[k].num_max) in snd_interval_ratden()
949 if (num < rats[k].num_min) in snd_interval_ratden()
950 num = rats[k].num_max; in snd_interval_ratden()
953 r = (num - rats[k].num_min) % rats[k].num_step; in snd_interval_ratden()
955 num += rats[k].num_step - r; in snd_interval_ratden()
975 unsigned int den = rats[k].den; in snd_interval_ratden()
979 if (num < rats[k].num_min) in snd_interval_ratden()
981 if (num > rats[k].num_max) in snd_interval_ratden()
982 num = rats[k].num_max; in snd_interval_ratden()
985 r = (num - rats[k].num_min) % rats[k].num_step; in snd_interval_ratden()
1355 r->nrats, r->rats, &num, &den); in snd_pcm_hw_rule_ratnums()
1390 r->nrats, r->rats, &num, &den); in snd_pcm_hw_rule_ratdens()