Lines Matching refs:tuple

570 /* get size of a tuple element from its type */
593 struct tplg_tuple *tuple;
642 tuple = &tuple_set->tuple[j];
643 token_val = get_token_value(tuple->token, tokens);
651 memcpy(uuid->uuid, tuple->uuid, 16);
657 snd_strlcpy(string->string, tuple->string,
664 value->value = tuple->value;
790 struct tplg_tuple *tuple;
798 SNDERR("invalid tuple type '%s'", id);
822 tuple = &set->tuple[set->num_tuples];
823 snd_strlcpy(tuple->token, id,
830 if (get_uuid(value, tuple->uuid) < 0)
837 snd_strlcpy(tuple->string, value,
839 tplg_dbg("\t\t%s = %s", tuple->token, tuple->string);
846 tuple->value = ival;
847 tplg_dbg("\t\t%s = %d", tuple->token, tuple->value);
855 SNDERR("tuple %s: %s", id, snd_strerror(ival));
865 SNDERR("tuple %s: invalid value", id);
869 tuple->value = tuple_val;
870 tplg_dbg("\t\t%s = 0x%x", tuple->token, tuple->value);
888 /* save tuple set */
894 struct tplg_tuple *tuple;
921 tuple = &set->tuple[i];
925 set_index, s, tuple->token);
928 tuple->token);
935 tuple->uuid[0], tuple->uuid[1],
936 tuple->uuid[2], tuple->uuid[3],
937 tuple->uuid[4], tuple->uuid[5],
938 tuple->uuid[6], tuple->uuid[7],
939 tuple->uuid[8], tuple->uuid[9],
940 tuple->uuid[10], tuple->uuid[11],
941 tuple->uuid[12], tuple->uuid[13],
942 tuple->uuid[14], tuple->uuid[15]);
946 tuple->string);
951 err = tplg_save_printf(dst, NULL, "%u\n", tuple->value);
954 tplg_nice_value_format(buf, sizeof(buf), tuple->value);
1006 /* overlook empty tuple sets */
1014 /* save tuple sets */
1674 tplg_log(tplg, 'A', pos, "tuple set verify: wrong size %zd", size);
1687 tplg_log(tplg, 'A', pos, "tuple set verify: unknown array type %d", va->type);
1693 tplg_log(tplg, 'A', pos, "tuple set verify: wrong vendor array size %d "
1700 tplg_log(tplg, 'A', pos, "tuple set verify: tuples overflow %d", va->num_elems);
1715 struct tplg_tuple *tuple;
1758 tplg_log(tplg, 'A', pos, "tuple set: type %d (%s) tuples %d size %d", set->type,
1761 tuple = &set->tuple[j];
1765 tuple->token);
1768 memcpy(tuple->uuid, va->uuid[j].uuid,
1773 tuple->token);
1776 snd_strlcpy(tuple->string, va->string[j].string,
1777 sizeof(tuple->string));
1784 tuple->token);
1787 tuple->value = va->value[j].value;
1918 snprintf(id, sizeof(id), "%.30s:tuple%d", parent->id, (block++) & 0xffff);