Home | History | Annotate | Download | only in libalsa-intf

Lines Matching refs:xtlv

320         struct snd_ctl_tlv *xtlv;
323 xtlv = calloc(1, sizeof(struct snd_ctl_tlv) + tlv_size);
324 if (xtlv == NULL)
326 xtlv->numid = ctl->info->id.numid;
327 xtlv->length = tlv_size;
328 memcpy(xtlv->tlv, tlv, tlv_size);
329 if (ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_TLV_READ, xtlv) < 0) {
331 free(xtlv);
334 if (xtlv->tlv[1] + 2 * sizeof(unsigned int) > tlv_size) {
335 free(xtlv);
338 memcpy(tlv, xtlv->tlv, xtlv->tlv[1] + 2 * sizeof(unsigned int));
339 free(xtlv);