Lines Matching refs:tlv
33 #include <sound/tlv.h>
312 unsigned int *tlv,
321 tlv[0] = -1;
322 tlv[1] = 0;
328 memcpy(xtlv->tlv, tlv, tlv_size);
334 if (xtlv->tlv[1] + 2 * sizeof(unsigned int) > tlv_size) {
338 memcpy(tlv, xtlv->tlv, xtlv->tlv[1] + 2 * sizeof(unsigned int));
341 type = tlv[0];
343 size = tlv[1];
351 ALOGV("0x%08x,", tlv[idx++]);
356 print_dB((int)tlv[2]);
357 *min = (long)tlv[2];
359 step = (tlv[3] & 0xffff);
360 print_dB(tlv[3] & 0xffff);
364 ALOGV(" mute=%i\n", (tlv[3] >> 16) & 1);
373 ALOGV("0x%08x,", tlv[idx++]);
378 *min = tlv[2];
379 print_dB(tlv[2]);
381 *max = tlv[3];
382 print_dB(tlv[3]);
398 unsigned int *tlv = NULL;
405 tlv = calloc(1, DEFAULT_TLV_SIZE);
406 if (tlv == NULL) {
409 mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
410 free(tlv);
527 unsigned int *tlv = NULL;
539 tlv
540 if (tlv == NULL) {
542 } else if (!mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type)) {
545 ALOGV("tlv db linear: b4 %d\n", percent);
552 ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
563 free(tlv);
696 unsigned int *tlv = NULL;
703 tlv = calloc(1, DEFAULT_TLV_SIZE);
704 if (tlv == NULL) {
706 } else if (!mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type)) {
712 free(tlv);