/third_party/alsa-lib/src/control/ |
D | control_hw.c | 222 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_hw_elem_tlv() argument 238 xtlv = malloc(sizeof(struct snd_ctl_tlv) + tlv_size); in snd_ctl_hw_elem_tlv() 242 xtlv->length = tlv_size; in snd_ctl_hw_elem_tlv() 243 memcpy(xtlv->tlv, tlv, tlv_size); in snd_ctl_hw_elem_tlv() 251 if (size > tlv_size) { in snd_ctl_hw_elem_tlv()
|
D | control_remap.c | 662 unsigned int *tlv, unsigned int tlv_size) in remap_map_elem_tlv() argument 680 memset(tlv, 0, tlv_size); in remap_map_elem_tlv() 681 err = priv->child->ops->element_tlv(priv->child, op_flag, mctl->id_child.numid, tlv, tlv_size); in remap_map_elem_tlv() 684 tlv2 = malloc(tlv_size); in remap_map_elem_tlv() 694 memset(tlv2, 0, tlv_size); in remap_map_elem_tlv() 695 err = priv->child->ops->element_tlv(priv->child, op_flag, mctl->id_child.numid, tlv2, tlv_size); in remap_map_elem_tlv() 700 if (memcmp(tlv, tlv2, tlv_size) != 0) { in remap_map_elem_tlv() 711 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_remap_elem_tlv() argument 718 err = remap_map_elem_tlv(priv, op_flag, numid, tlv, tlv_size); in snd_ctl_remap_elem_tlv() 724 return priv->child->ops->element_tlv(priv->child, op_flag, map_numid->numid_child, tlv, tlv_size); in snd_ctl_remap_elem_tlv()
|
D | tlv.c | 60 unsigned int tlv_size, in snd_tlv_parse_dB_info() argument 70 tlv_size -= 2 * sizeof(int); in snd_tlv_parse_dB_info() 71 if (size > tlv_size) { in snd_tlv_parse_dB_info()
|
D | control_ext.c | 329 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_ext_elem_tlv() argument 360 return ext->tlv.c(ext, key, op_flag, numid, tlv, tlv_size); in snd_ctl_ext_elem_tlv() 365 if (tlv_size < len) in snd_ctl_ext_elem_tlv()
|
D | hcontrol.c | 853 int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size) in snd_hctl_elem_tlv_read() argument 857 assert(tlv_size >= 12); in snd_hctl_elem_tlv_read() 858 return snd_ctl_elem_tlv_read(elem->hctl->ctl, &elem->id, tlv, tlv_size); in snd_hctl_elem_tlv_read()
|
D | control_local.h | 41 unsigned int *tlv, unsigned int tlv_size);
|
D | control.c | 1038 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_tlv_do() argument 1057 err = ctl->ops->element_tlv(ctl, op_flag, id->numid, tlv, tlv_size); in snd_ctl_tlv_do() 1080 unsigned int *tlv, unsigned int tlv_size) in snd_ctl_elem_tlv_read() argument 1084 if (tlv_size < 2 * sizeof(int)) in snd_ctl_elem_tlv_read() 1093 err = snd_ctl_tlv_do(ctl, 0, id, tlv, tlv_size); in snd_ctl_elem_tlv_read()
|
/third_party/alsa-lib/include/ |
D | control.h | 399 unsigned int *tlv, unsigned int tlv_size); 672 int snd_tlv_parse_dB_info(unsigned int *tlv, unsigned int tlv_size, 758 int snd_hctl_elem_tlv_read(snd_hctl_elem_t *elem, unsigned int *tlv, unsigned int tlv_size);
|
D | control_external.h | 70 unsigned int *tlv, unsigned int tlv_size);
|
/third_party/alsa-utils/amixer/ |
D | amixer.c | 459 static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_size) in decode_tlv() argument 467 if (tlv_size < 2 * sizeof(unsigned int)) { in decode_tlv() 475 tlv_size -= 2 * sizeof(unsigned int); in decode_tlv() 476 if (size > tlv_size) { in decode_tlv() 477 printf("TLV size error (%u, %u, %u)!\n", type, size, tlv_size); in decode_tlv()
|
/third_party/alsa-lib/src/mixer/ |
D | simple_none.c | 1114 const unsigned int tlv_size = 4096; in init_db_range() local 1127 tlv = malloc(tlv_size); in init_db_range() 1130 if (snd_hctl_elem_tlv_read(ctl, tlv, tlv_size) < 0) in init_db_range() 1132 db_size = snd_tlv_parse_dB_info(tlv, tlv_size, &dbrec); in init_db_range()
|