mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: acp: be more noisy when UCM profiles fail to be supported
Generally ALSA UCM profiles should all work as they're supposed to be device-specific, so be more noisy when the profile fails to be supported due to the PCM device failing to open. Some logging on the probe outcome in failure case also makes spa-acp-tool etc. log output easier to read.
This commit is contained in:
		
							parent
							
								
									78981a8d9b
								
							
						
					
					
						commit
						ae16463c3c
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2548,7 +2548,7 @@ static void ucm_probe_profile_set(pa_alsa_ucm_config *ucm, pa_alsa_profile_set *
 | 
			
		|||
        pa_log_info("Set ucm verb to %s", verb_name);
 | 
			
		||||
 | 
			
		||||
        if ((snd_use_case_set(ucm->ucm_mgr, "_verb", verb_name)) < 0) {
 | 
			
		||||
            pa_log("Failed to set verb %s", verb_name);
 | 
			
		||||
            pa_log("Profile '%s': failed to set verb %s", p->name, verb_name);
 | 
			
		||||
            p->supported = false;
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -2565,6 +2565,8 @@ static void ucm_probe_profile_set(pa_alsa_ucm_config *ucm, pa_alsa_profile_set *
 | 
			
		|||
 | 
			
		||||
            m->output_pcm = mapping_open_pcm(ucm, m, SND_PCM_STREAM_PLAYBACK, false);
 | 
			
		||||
            if (!m->output_pcm) {
 | 
			
		||||
                pa_log_info("Profile '%s' mapping '%s': output PCM open failed",
 | 
			
		||||
                            p->name, m->name);
 | 
			
		||||
                p->supported = false;
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -2583,6 +2585,8 @@ static void ucm_probe_profile_set(pa_alsa_ucm_config *ucm, pa_alsa_profile_set *
 | 
			
		|||
 | 
			
		||||
                m->input_pcm = mapping_open_pcm(ucm, m, SND_PCM_STREAM_CAPTURE, false);
 | 
			
		||||
                if (!m->input_pcm) {
 | 
			
		||||
                    pa_log_info("Profile '%s' mapping '%s': input PCM open failed",
 | 
			
		||||
                                p->name, m->name);
 | 
			
		||||
                    p->supported = false;
 | 
			
		||||
                    break;
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			@ -2591,6 +2595,7 @@ static void ucm_probe_profile_set(pa_alsa_ucm_config *ucm, pa_alsa_profile_set *
 | 
			
		|||
 | 
			
		||||
        if (!p->supported) {
 | 
			
		||||
            profile_finalize_probing(p);
 | 
			
		||||
            pa_log_info("Profile %s not supported", p->name);
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue