Home
last modified time | relevance | path

Searched refs:elist (Results 1 – 1 of 1) sorted by relevance

/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c154 struct snd_ctl_elem_list elist; in mixer_open() local
167 memset(&elist, 0, sizeof(elist)); in mixer_open()
168 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0) { in mixer_open()
177 mixer->ctl = calloc(elist.count, sizeof(struct mixer_ctl)); in mixer_open()
178 mixer->info = calloc(elist.count, sizeof(struct snd_ctl_elem_info)); in mixer_open()
182 eid = calloc(elist.count, sizeof(struct snd_ctl_elem_id)); in mixer_open()
186 mixer->count = elist.count; in mixer_open()
188 elist.space = mixer->count; in mixer_open()
189 elist.pids = eid; in mixer_open()
190 if (ioctl(fd, SNDRV_CTL_IOCTL_ELEM_LIST, &elist) < 0) in mixer_open()