mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	When returning from a suspend, pass exactly the same flags as originally when
we opened the device.
This commit is contained in:
		
							parent
							
								
									25b200c087
								
							
						
					
					
						commit
						3a46bbeba5
					
				
					 2 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -565,7 +565,12 @@ static int unsuspend(struct userdata *u) {
 | 
			
		|||
    pa_log_info("Trying resume...");
 | 
			
		||||
 | 
			
		||||
    snd_config_update_free_global();
 | 
			
		||||
    if ((err = snd_pcm_open(&u->pcm_handle, u->device_name, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK)) < 0) {
 | 
			
		||||
 | 
			
		||||
    if ((err = snd_pcm_open(&u->pcm_handle, u->device_name, SND_PCM_STREAM_CAPTURE,
 | 
			
		||||
                            /*SND_PCM_NONBLOCK|*/
 | 
			
		||||
                            SND_PCM_NO_AUTO_RESAMPLE|
 | 
			
		||||
                            SND_PCM_NO_AUTO_CHANNELS|
 | 
			
		||||
                            SND_PCM_NO_AUTO_FORMAT)) < 0) {
 | 
			
		||||
        pa_log("Error opening PCM device %s: %s", u->device_name, snd_strerror(err));
 | 
			
		||||
        goto fail;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue