Lines Matching defs:tlv
12 #include <sound/tlv.h>
31 unsigned int **tlv);
48 * 2011/11/20: bf1d1c9b6179 ("ALSA: tlv: add DECLARE_TLV_DB_RANGE()")
77 unsigned int **tlv)
85 *tlv = malloc(sizeof(range));
86 if (*tlv == NULL)
88 memcpy(*tlv, range, sizeof(range));
128 unsigned int **tlv)
141 *tlv = malloc((2 + count) * sizeof(unsigned int));
142 if (!*tlv)
149 (*tlv)[0] = SNDRV_CTL_TLVT_CONTAINER;
150 (*tlv)[1] = count * sizeof(unsigned int);
154 entry = (struct chmap_entry *)&(*tlv)[pos];
246 unsigned int **tlv)
255 *tlv = malloc(sizeof(range));
256 if (*tlv == NULL)
258 memcpy(*tlv, range, sizeof(range));
331 unsigned int **tlv)
361 *tlv = malloc(sizeof(range));
362 if (*tlv == NULL)
364 memcpy(*tlv, range, sizeof(range));
653 unsigned int *tlv;
660 err = trial->allocate_elem_set_tlv(trial, &tlv);
664 len = tlv[SNDRV_CTL_TLVO_LEN] + sizeof(unsigned int) * 2;
667 free(tlv);
677 (const unsigned int *)tlv);
715 if (memcmp(curr, tlv, len) != 0)
718 free(tlv);