mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-top: also show IEC958 passthrough formats
This commit is contained in:
		
							parent
							
								
									d388c206ef
								
							
						
					
					
						commit
						ec90b575d7
					
				
					 1 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue