mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	dump profiles when listing cards
This commit is contained in:
		
							parent
							
								
									c06e43d7ff
								
							
						
					
					
						commit
						f8ba3a9b07
					
				
					 1 changed files with 15 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -123,9 +123,22 @@ char *pa_card_list_to_string(pa_core *c) {
 | 
			
		|||
        if (card->module)
 | 
			
		||||
            pa_strbuf_printf(s, "\towner module: %u\n", card->module->index);
 | 
			
		||||
 | 
			
		||||
        t = pa_proplist_to_string(card->proplist);
 | 
			
		||||
        pa_strbuf_printf(s, "\tproperties:\n%s", t);
 | 
			
		||||
        t = pa_proplist_to_string_sep(card->proplist, "\n\t\t");
 | 
			
		||||
        pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
 | 
			
		||||
        pa_xfree(t);
 | 
			
		||||
 | 
			
		||||
        if (card->profiles) {
 | 
			
		||||
            pa_card_profile *p;
 | 
			
		||||
            void *state = NULL;
 | 
			
		||||
 | 
			
		||||
            pa_strbuf_puts(
 | 
			
		||||
                    s,
 | 
			
		||||
                    "\tprofiles:\n");
 | 
			
		||||
 | 
			
		||||
            while ((p = pa_hashmap_iterate(card->profiles, &state, NULL)))
 | 
			
		||||
                pa_strbuf_printf(s, "\t\t%s: %s\n", p->name, p->description);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return pa_strbuf_tostring_free(s);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue