Lines Matching refs:ei
194 struct snd_ctl_elem_info *ei = mixer->info + n; in mixer_open() local
195 ei->id.numid = eid[n].numid; in mixer_open()
196 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_INFO, ei) < 0) in mixer_open()
198 mixer->ctl[n].info = ei; in mixer_open()
200 if (ei->type == SNDRV_CTL_ELEM_TYPE_ENUMERATED) { in mixer_open()
201 char **enames = calloc(ei->value.enumerated.items, sizeof(char*)); in mixer_open()
205 for (m = 0; m < ei->value.enumerated.items; m++) { in mixer_open()
207 tmp.id.numid = ei->id.numid; in mixer_open()
238 struct snd_ctl_elem_info *ei = mixer->info + n; in mixer_dump() local
241 ei->id.numid, elem_iface_name(ei->id.iface), in mixer_dump()
242 ei->id.device, ei->id.subdevice, ei->id.index, in mixer_dump()
243 ei->count, in mixer_dump()
244 (ei->access & SNDRV_CTL_ELEM_ACCESS_READ) ? 'r' : ' ', in mixer_dump()
245 (ei->access & SNDRV_CTL_ELEM_ACCESS_WRITE) ? 'w' : ' ', in mixer_dump()
246 (ei->access & SNDRV_CTL_ELEM_ACCESS_VOLATILE) ? 'V' : ' ', in mixer_dump()
247 (ei->access & SNDRV_CTL_ELEM_ACCESS_TIMESTAMP) ? 'T' : ' ', in mixer_dump()
248 (ei->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) ? 'R' : ' ', in mixer_dump()
249 (ei->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) ? 'W' : ' ', in mixer_dump()
250 (ei->access & SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND) ? 'C' : ' ', in mixer_dump()
251 (ei->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE) ? 'I' : ' ', in mixer_dump()
252 (ei->access & SNDRV_CTL_ELEM_ACCESS_LOCK) ? 'L' : ' ', in mixer_dump()
253 elem_type_name(ei->type), in mixer_dump()
254 (is_volume(ei->id.name, &type)) ? 1 : 0, in mixer_dump()
255 ei->id.name); in mixer_dump()
256 switch (ei->type) { in mixer_dump()
258 ALOGV(ei->value.integer.step ? in mixer_dump()
260 ei->value.integer.min, in mixer_dump()
261 ei->value.integer.max, in mixer_dump()
262 ei->value.integer.step); in mixer_dump()
265 ALOGV(ei->value.integer64.step ? in mixer_dump()
267 ei->value.integer64.min, in mixer_dump()
268 ei->value.integer64.max, in mixer_dump()
269 ei->value.integer64.step); in mixer_dump()
274 for (m = 1; m < ei->value.enumerated.items; m++) in mixer_dump()
451 static long scale_int(struct snd_ctl_elem_info *ei, unsigned _percent) in scale_int() argument
460 return (long)percent_to_index(percent, ei->value.integer.min, ei->value.integer.max); in scale_int()
463 static long long scale_int64(struct snd_ctl_elem_info *ei, unsigned _percent) in scale_int64() argument
472 return (long long)percent_to_index(percent, ei->value.integer.min, ei->value.integer.max); in scale_int64()