diff --git a/src/tools/pw-top.c b/src/tools/pw-top.c index 4ad7c28eb..6531903b8 100644 --- a/src/tools/pw-top.c +++ b/src/tools/pw-top.c @@ -180,7 +180,8 @@ 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 %d", - spa_debug_type_find_short_name(spa_type_audio_format, info.format), + spa_debug_type_find_short_name( + spa_type_audio_format, info.format), info.channels, info.rate); } break; @@ -195,6 +196,18 @@ static void node_param(void *data, int seq, } break; } + case SPA_MEDIA_SUBTYPE_iec958: + { + struct spa_audio_info_iec958 info; + if (spa_format_audio_iec958_parse(param, &info) >= 0) { + snprintf(n->format, sizeof(n->format), "IEC958 %s %d", + spa_debug_type_find_short_name( + spa_type_audio_iec958_codec, info.codec), + info.rate); + + } + break; + } } break; case SPA_MEDIA_TYPE_video: