Lines Matching defs:rec
1096 static int init_db_range(snd_hctl_elem_t *ctl, struct selem_str *rec);
1098 static int convert_to_dB(snd_hctl_elem_t *ctl, struct selem_str *rec,
1101 if (init_db_range(ctl, rec) < 0)
1103 return snd_tlv_convert_to_dB(rec->db_info, rec->min, rec->max,
1109 static int init_db_range(snd_hctl_elem_t *ctl, struct selem_str *rec)
1117 if (rec->db_init_error)
1119 if (rec->db_initialized)
1134 rec->db_info = malloc(db_size);
1135 if (!rec->db_info)
1137 memcpy(rec->db_info, dbrec, db_size);
1139 rec->db_initialized = 1;
1144 rec->db_init_error = 1;
1169 static int get_dB_range(snd_hctl_elem_t *ctl, struct selem_str *rec,
1172 if (init_db_range(ctl, rec) < 0)
1175 return snd_tlv_get_dB_range(rec->db_info, rec->min, rec->max, min, max);
1192 static int convert_from_dB(snd_hctl_elem_t *ctl, struct selem_str *rec,
1195 if (init_db_range(ctl, rec) < 0)
1198 return snd_tlv_convert_from_dB(rec->db_info, rec->min, rec->max,