Lines Matching refs:ev

396     struct snd_ctl_elem_value ev;  in mixer_ctl_get()  local
414 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get()
415 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get()
416 if (ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev)) in mixer_ctl_get()
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()
442 *value = ev.value.enumerated.item[0]; in mixer_ctl_get()
481 struct snd_ctl_elem_value ev; in mixer_ctl_mulvalues() local
492 memset(&ev, 0, sizeof(ev)); in mixer_ctl_mulvalues()
493 ev.id.numid = ctl->info->id.numid; in mixer_ctl_mulvalues()
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()
519 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_mulvalues()
524 struct snd_ctl_elem_value ev; in mixer_ctl_set() local
565 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set()
566 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set()
570 ev.value.integer.value[n] = !!percent; in mixer_ctl_set()
579 ev.value.integer.value[n] = value; 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()
603 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set()
618 struct snd_ctl_elem_value ev; in set_volume_simple() local
656 memset(&ev, 0, sizeof(ev)); in set_volume_simple()
657 ev.id.numid = ctl->info->id.numid; in set_volume_simple()
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()
684 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in set_volume_simple()
723 struct snd_ctl_elem_value ev; in mixer_ctl_select() local
741 memset(&ev, 0, sizeof(ev)); in mixer_ctl_select()
742 ev.value.enumerated.item[0] = n; in mixer_ctl_select()
743 ev.id.numid = ctl->info->id.numid; in mixer_ctl_select()
744 if (ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev) < 0) in mixer_ctl_select()