Lines Matching refs:ev

303     struct snd_ctl_elem_value ev;  in mixer_ctl_get_value()  local
309 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_value()
310 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_value()
311 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_value()
317 return !!ev.value.integer.value[id]; in mixer_ctl_get_value()
320 return ev.value.integer.value[id]; in mixer_ctl_get_value()
323 return ev.value.enumerated.item[id]; in mixer_ctl_get_value()
326 return ev.value.bytes.data[id]; in mixer_ctl_get_value()
337 struct snd_ctl_elem_value ev; in mixer_ctl_get_array() local
345 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_array()
346 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_array()
351 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_array()
354 size = sizeof(ev.value.integer.value[0]); in mixer_ctl_get_array()
355 source = ev.value.integer.value; in mixer_ctl_get_array()
380 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_array()
383 size = sizeof(ev.value.bytes.data[0]); in mixer_ctl_get_array()
384 source = ev.value.bytes.data; in mixer_ctl_get_array()
389 size = sizeof(ev.value.iec958); in mixer_ctl_get_array()
390 source = &ev.value.iec958; in mixer_ctl_get_array()
404 struct snd_ctl_elem_value ev; in mixer_ctl_set_value() local
410 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_value()
411 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_value()
412 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_set_value()
418 ev.value.integer.value[id] = !!value; in mixer_ctl_set_value()
422 ev.value.integer.value[id] = value; in mixer_ctl_set_value()
426 ev.value.enumerated.item[id] = value; in mixer_ctl_set_value()
430 ev.value.bytes.data[id] = value; in mixer_ctl_set_value()
437 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_value()
442 struct snd_ctl_elem_value ev; in mixer_ctl_set_array() local
449 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_array()
450 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_array()
455 size = sizeof(ev.value.integer.value[0]); in mixer_ctl_set_array()
456 dest = ev.value.integer.value; in mixer_ctl_set_array()
478 size = sizeof(ev.value.bytes.data[0]); in mixer_ctl_set_array()
479 dest = ev.value.bytes.data; in mixer_ctl_set_array()
484 size = sizeof(ev.value.iec958); in mixer_ctl_set_array()
485 dest = &ev.value.iec958; in mixer_ctl_set_array()
494 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_array()
534 struct snd_ctl_elem_value ev; in mixer_ctl_set_enum_by_string() local
543 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_enum_by_string()
544 ev.value.enumerated.item[0] = i; in mixer_ctl_set_enum_by_string()
545 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_enum_by_string()
546 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_enum_by_string()