• Home
  • Raw
  • Download

Lines Matching refs:value

137                 unsigned max = mixer->ctl[n].info->value.enumerated.items;  in mixer_close()
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()
208 tmp.value.enumerated.item = m; in mixer_open()
211 enames[m] = strdup(tmp.value.enumerated.name); in mixer_open()
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()
362 *max = (ctl->info->value.integer.max); in mixer_ctl_read_tlv()
363 print_dB((long)ctl->info->value.integer.max); in mixer_ctl_read_tlv()
394 void mixer_ctl_get(struct mixer_ctl *ctl, unsigned *value) in mixer_ctl_get() argument
423 ALOGV(" %s", ev.value.integer.value[n] ? "on" : "off"); in mixer_ctl_get()
424 *value = ev.value.integer.value[0]; in mixer_ctl_get()
428 ALOGV(" %ld", ev.value.integer.value[n]); in mixer_ctl_get()
429 *value = ev.value.integer.value[0]; in mixer_ctl_get()
434 ALOGV(" %lld", ev.value.integer64.value[n]); in mixer_ctl_get()
435 *value = ev.value.integer64.value[0]; in mixer_ctl_get()
439 unsigned v = ev.value.enumerated.item[n]; in mixer_ctl_get()
441 (v < ctl->info->value.enumerated.items) ? ctl->ename[v] : "???"); in mixer_ctl_get()
442 *value = ev.value.enumerated.item[0]; in mixer_ctl_get()
460 return (long)percent_to_index(percent, ei->value.integer.min, ei->value.integer.max); in scale_int()
472 return (long long)percent_to_index(percent, ei->value.integer.min, ei->value.integer.max); in scale_int64()
497 ev.value.integer.value[n] = !!atoi(argv[n]); in mixer_ctl_mulvalues()
502 ev.value.integer.value[n] = atoi(argv[n]); in mixer_ctl_mulvalues()
510 ev.value.integer64.value[n] = value_ll; in mixer_ctl_mulvalues()
570 ev.value.integer.value[n] = !!percent; in mixer_ctl_set()
573 int value; in mixer_ctl_set() local
575 value = scale_int(ctl->info, percent); in mixer_ctl_set()
577 value = (int) percent; in mixer_ctl_set()
579 ev.value.integer.value[n] = value; in mixer_ctl_set()
583 long long value; in mixer_ctl_set() local
585 value = scale_int64(ctl->info, percent); in mixer_ctl_set()
587 value = (long long)percent; in mixer_ctl_set()
589 ev.value.integer64.value[n] = value; in mixer_ctl_set()
595 memcpy(ev.value.iec958.status,iec958->status,SPDIF_CHANNEL_STATUS_SIZE); in mixer_ctl_set()
661 ev.value.integer.value[n] = !!val; in set_volume_simple()
666 ev.value.integer.value[n] = val; in set_volume_simple()
674 ev.value.integer64.value[n] = value_ll; in set_volume_simple()
720 int mixer_ctl_select(struct mixer_ctl *ctl, const char *value) in mixer_ctl_select() argument
731 input_str_len = strnlen(value,64); in mixer_ctl_select()
733 max = ctl->info->value.enumerated.items; in mixer_ctl_select()
740 if (!strncmp(value, ctl->ename[n], str_len)) { in mixer_ctl_select()
742 ev.value.enumerated.item[0] = n; in mixer_ctl_select()