Lines Matching refs:ev

302     struct snd_ctl_elem_value ev;  in mixer_ctl_get_value()  local
308 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_value()
309 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_value()
310 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_value()
316 return !!ev.value.integer.value[id]; in mixer_ctl_get_value()
319 return ev.value.integer.value[id]; in mixer_ctl_get_value()
322 return ev.value.enumerated.item[id]; in mixer_ctl_get_value()
325 return ev.value.bytes.data[id]; in mixer_ctl_get_value()
336 struct snd_ctl_elem_value ev; in mixer_ctl_get_array() local
344 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_array()
345 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_array()
347 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()
359 size = sizeof(ev.value.bytes.data[0]); in mixer_ctl_get_array()
360 source = ev.value.bytes.data; in mixer_ctl_get_array()
364 size = sizeof(ev.value.iec958); in mixer_ctl_get_array()
365 source = &ev.value.iec958; in mixer_ctl_get_array()
379 struct snd_ctl_elem_value ev; in mixer_ctl_set_value() local
385 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_value()
386 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_value()
387 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_set_value()
393 ev.value.integer.value[id] = !!value; in mixer_ctl_set_value()
397 ev.value.integer.value[id] = value; in mixer_ctl_set_value()
401 ev.value.enumerated.item[id] = value; in mixer_ctl_set_value()
408 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_value()
413 struct snd_ctl_elem_value ev; in mixer_ctl_set_array() local
420 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_array()
421 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_array()
426 size = sizeof(ev.value.integer.value[0]); in mixer_ctl_set_array()
427 dest = ev.value.integer.value; in mixer_ctl_set_array()
431 size = sizeof(ev.value.bytes.data[0]); in mixer_ctl_set_array()
432 dest = ev.value.bytes.data; in mixer_ctl_set_array()
436 size = sizeof(ev.value.iec958); in mixer_ctl_set_array()
437 dest = &ev.value.iec958; in mixer_ctl_set_array()
446 return ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_array()
486 struct snd_ctl_elem_value ev; in mixer_ctl_set_enum_by_string() local
495 memset(&ev, 0, sizeof(ev)); in mixer_ctl_set_enum_by_string()
496 ev.value.enumerated.item[0] = i; in mixer_ctl_set_enum_by_string()
497 ev.id.numid = ctl->info->id.numid; in mixer_ctl_set_enum_by_string()
498 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_WRITE, &ev); in mixer_ctl_set_enum_by_string()