if (err >= 0 && mc->max > 0)
err = tplg_save_printf(dst, pfx, "\tmax %u\n", mc->max);
if (err >= 0 && mc->invert > 0)
- err = tplg_save_printf(dst, pfx, "\tinvert 1\n", mc->max);
+ err = tplg_save_printf(dst, pfx, "\tinvert 1\n");
if (err >= 0 && mc->invert > 0)
- err = tplg_save_printf(dst, pfx, "\tinvert 1\n", mc->max);
+ err = tplg_save_printf(dst, pfx, "\tinvert 1\n");
if (err >= 0)
err = tplg_save_ops(tplg, &mc->hdr, dst, pfx2);
if (err >= 0)
err = tplg_save_printf(dst, pfx, "\t'%s' ",
tuple->token);
}
+ if (err < 0)
+ return err;
switch (set->type) {
case SND_SOC_TPLG_TUPLE_TYPE_UUID:
err = tplg_save_printf(dst, NULL, "'" UUID_FORMAT "'\n",
elem->id, index, ref->id);
} else {
err = tplg_save_printf(dst, pfx, "\t'%s'\n", ref->id);
- if (err < 0)
- return err;
}
+ if (err < 0)
+ return err;
index++;
}
if (count > 1) {
if (!elem)
return -ENOMEM;
- tplg_log(tplg, 'D', pos, "manifest: private size %d", size);
+ tplg_log(tplg, 'D', pos, "manifest: private size %zd", size);
return tplg_add_data(tplg, elem, bin, size);
}
va = bin;
if (size < sizeof(*va) || size < va->size) {
- tplg_log(tplg, 'A', pos, "tuple set verify: wrong size %d", size);
+ tplg_log(tplg, 'A', pos, "tuple set verify: wrong size %zd", size);
return -EINVAL;
}
va = bin;
if (size < sizeof(*va) || size < va->size) {
- SNDERR("tuples: wrong size %d", size);
+ SNDERR("tuples: wrong size %zd", size);
return -EINVAL;
}
int err;
if (size < sizeof(*va)) {
- tplg_log(tplg, 'A', pos, "tuples: small size %d", size);
+ tplg_log(tplg, 'A', pos, "tuples: small size %zd", size);
return -EINVAL;
}
next:
va = bin;
if (size < sizeof(*va)) {
- tplg_log(tplg, 'A', pos, "tuples: unexpected vendor arry size %d", size);
+ tplg_log(tplg, 'A', pos, "tuples: unexpected vendor arry size %zd", size);
return -EINVAL;
}
int err;
if (size < sizeof(*va)) {
- SNDERR("tuples: small size %d", size);
+ SNDERR("tuples: small size %zd", size);
return -EINVAL;
}
next:
va = bin;
if (size < sizeof(*va)) {
- SNDERR("tuples: unexpected vendor arry size %d", size);
+ SNDERR("tuples: unexpected vendor arry size %zd", size);
return -EINVAL;
}
next:
tp = bin;
if (off + size < tp->size) {
- SNDERR("data: unexpected element size %d", size);
+ SNDERR("data: unexpected element size %zd", size);
return -EINVAL;
}