diff --git a/man/pw-top.1.rst.in b/man/pw-top.1.rst.in index d3a42c5c6..afd357347 100644 --- a/man/pw-top.1.rst.in +++ b/man/pw-top.1.rst.in @@ -133,6 +133,12 @@ FORMAT If the stream of driver has a different rate than the graph, resampling will be done. + For raw audio formats, the layout is . + + For DSD formats, the layout is . + + For Video formats, the layout is x. + NAME Name assigned to the device/node, as found in *pw-dump* node.name diff --git a/src/tools/pw-top.c b/src/tools/pw-top.c index 210681ce6..7d941254b 100644 --- a/src/tools/pw-top.c +++ b/src/tools/pw-top.c @@ -179,7 +179,7 @@ static void node_param(void *data, int seq, { struct spa_audio_info_raw info; if (spa_format_audio_raw_parse(param, &info) >= 0) { - snprintf(n->format, sizeof(n->format), "%6.6s/%d %-6d", + snprintf(n->format, sizeof(n->format), "%6.6s %d %d", spa_debug_type_find_short_name(spa_type_audio_format, info.format), info.channels, info.rate); } @@ -189,7 +189,7 @@ static void node_param(void *data, int seq, { struct spa_audio_info_dsd info; if (spa_format_audio_dsd_parse(param, &info) >= 0) { - snprintf(n->format, sizeof(n->format), "DSD%d/%2d ", + snprintf(n->format, sizeof(n->format), "DSD%d %d ", 8 * info.rate / 44100, info.channels); }