Home | History | Annotate | Download | only in tinyalsa

Lines Matching defs:tlv

359         /* check if this is new bytes TLV */
361 struct snd_ctl_tlv *tlv;
364 if (count > SIZE_MAX - sizeof(*tlv))
366 tlv = calloc(1, sizeof(*tlv) + count);
367 if (!tlv)
369 tlv->numid = ctl->info->id.numid;
370 tlv->length = count;
371 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_TLV_READ, tlv);
373 source = tlv->tlv;
376 free(tlv);
460 /* check if this is new bytes TLV */
462 struct snd_ctl_tlv *tlv;
464 if (count > SIZE_MAX - sizeof(*tlv))
466 tlv = calloc(1, sizeof(*tlv) + count);
467 if (!tlv)
469 tlv->numid = ctl->info->id.numid;
470 tlv->length = count;
471 memcpy(tlv->tlv, array, count);
473 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_TLV_WRITE, tlv);
474 free(tlv);