Lines Matching defs:max
73 long min, max;
84 long min, max;
219 if (c->max == c->min)
221 n = (int64_t) (value - c->min) * (s->str[dir].max - s->str[dir].min);
222 return s->str[dir].min + (n + (c->max - c->min) / 2) / (c->max - c->min);
228 if (s->str[dir].max == s->str[dir].min)
230 n = (int64_t) (value - s->str[dir].min) * (c->max - c->min);
231 return c->min + (n + (s->str[dir].max - s->str[dir].min) / 2) / (s->str[dir].max - s->str[dir].min);
693 pmax = cmax = ctl->max;
719 if (pmax < ctl->max)
720 pmax = ctl->max;
725 if (cmax < ctl->max)
726 cmax = ctl->max;
763 if (pmax < ctl->max)
764 pmax = ctl->max;
774 if (cmax < ctl->max)
775 cmax = ctl->max;
878 simple->str[SM_PLAY].max = pmax != LONG_MIN ? pmax : 0;
883 simple->str[SM_CAPT].max = cmax != LONG_MIN ? cmax : 0;
972 if (value < s->str[dir].min || value > s->str[dir].max)
1043 return s->ctls[CTL_GLOBAL_ENUM].max;
1048 return s->ctls[CTL_PLAYBACK_ENUM].max;
1053 return s->ctls[CTL_CAPTURE_ENUM].max;
1062 long *min, long *max)
1066 *max = s->str[dir].max;
1071 long min, long max)
1078 s->str[dir].max = max;
1103 return snd_tlv_convert_to_dB(rec->db_info, rec->min, rec->max,
1170 long *min, long *max)
1175 return snd_tlv_get_dB_range(rec->db_info, rec->min, rec->max, min, max);
1179 long *min, long *max)
1189 return get_dB_range(c->elem, &s->str[dir], min, max);
1198 return snd_tlv_convert_from_dB(rec->db_info, rec->min, rec->max,
1342 if (item >= (unsigned int)s->ctls[type].max)
1396 if (item >= (unsigned int)s->ctls[type].max) {
1573 simple->ctls[type].max = snd_ctl_elem_info_get_items(&info);
1578 simple->ctls[type].max =