Home
last modified time | relevance | path

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

/third_party/alsa-lib/src/control/
Dcontrol_hw.c222 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()
Dcontrol_remap.c662 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()
Dtlv.c60 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()
Dcontrol_ext.c329 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()
Dhcontrol.c853 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()
Dcontrol_local.h41 unsigned int *tlv, unsigned int tlv_size);
Dcontrol.c1038 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/
Dcontrol.h399 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);
Dcontrol_external.h70 unsigned int *tlv, unsigned int tlv_size);
/third_party/alsa-utils/amixer/
Damixer.c459 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/
Dsimple_none.c1114 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()