[alsa-devel] [PATCH] alsa-lib: topology: improve verbose output for block output.
Liam Girdwood
liam.r.girdwood at linux.intel.com
Fri Jun 30 15:14:56 CEST 2017
Show index and full DAPm route in verbose output.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/topology/builder.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/topology/builder.c b/src/topology/builder.c
index ca5cbe1a..997df0c7 100644
--- a/src/topology/builder.c
+++ b/src/topology/builder.c
@@ -67,9 +67,10 @@ static int write_block_header(snd_tplg_t *tplg, unsigned int type,
exit(-EINVAL);
}
- verbose(tplg, " header type %d size 0x%lx/%ld vendor %d "
- "version %d\n", type, (long unsigned int)payload_size,
- (long int)payload_size, vendor_type, version);
+ verbose(tplg, " header index %d type %d count %d size 0x%lx/%ld vendor %d "
+ "version %d\n", index, type, count,
+ (long unsigned int)payload_size, (long int)payload_size,
+ vendor_type, version);
tplg->next_hdr_pos += hdr.payload_size + sizeof(hdr);
@@ -119,8 +120,10 @@ static int write_elem_block(snd_tplg_t *tplg,
verbose(tplg, " %s '%s': write %d bytes\n",
obj_name, elem->id, elem->size);
else
- verbose(tplg, " %s '%s': write %d bytes\n",
- obj_name, elem->route->source, elem->size);
+ verbose(tplg, " %s '%s -> %s -> %s': write %d bytes\n",
+ obj_name, elem->route->source,
+ elem->route->control,
+ elem->route->sink, elem->size);
wsize = write(tplg->out_fd, elem->obj, elem->size);
if (wsize < 0) {
--
2.11.0
More information about the Alsa-devel
mailing list