mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: return 0 from successful resume
Don't return the value of the last snd_pcm_resume() call because that might be -ENOSYS when resume is not implemented for the card and then the non-error (because we used drop/prepare later) propagates and logs an error.
This commit is contained in:
		
							parent
							
								
									0da4ea3b30
								
							
						
					
					
						commit
						179fbb51fc
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -2423,7 +2423,7 @@ recover:
 | 
				
			||||||
		if (follower != driver && follower->linked)
 | 
							if (follower != driver && follower->linked)
 | 
				
			||||||
			do_start(follower);
 | 
								do_start(follower);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return res;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline snd_pcm_sframes_t alsa_avail(struct state *state)
 | 
					static inline snd_pcm_sframes_t alsa_avail(struct state *state)
 | 
				
			||||||
| 
						 | 
					@ -2705,7 +2705,7 @@ static int alsa_write_sync(struct state *state, uint64_t current_time)
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
 | 
						if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
 | 
				
			||||||
		spa_log_error(state->log, "get_status error");
 | 
							spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
 | 
				
			||||||
		state->next_time += state->threshold * 1e9 / state->rate;
 | 
							state->next_time += state->threshold * 1e9 / state->rate;
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -2966,7 +2966,7 @@ static int alsa_read_sync(struct state *state, uint64_t current_time)
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
 | 
						if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
 | 
				
			||||||
		spa_log_error(state->log, "get_status error");
 | 
							spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
 | 
				
			||||||
		state->next_time += state->threshold * 1e9 / state->rate;
 | 
							state->next_time += state->threshold * 1e9 / state->rate;
 | 
				
			||||||
		return res;
 | 
							return res;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue