mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	alsa: call prepare again but ignore EBUSY
Not calling _prepare can cause problems on my card. So call it again but ignore -EBUSY.
This commit is contained in:
		
							parent
							
								
									b4e3d546e0
								
							
						
					
					
						commit
						02295c5e2b
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1432,6 +1432,12 @@ int spa_alsa_start(struct state *state) | ||||||
| 	if (SPA_UNLIKELY(spa_log_level_enabled(state->log, SPA_LOG_LEVEL_DEBUG))) | 	if (SPA_UNLIKELY(spa_log_level_enabled(state->log, SPA_LOG_LEVEL_DEBUG))) | ||||||
| 		snd_pcm_dump(state->hndl, state->output); | 		snd_pcm_dump(state->hndl, state->output); | ||||||
| 
 | 
 | ||||||
|  | 	if ((err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) { | ||||||
|  | 		spa_log_error(state->log, NAME" %p: snd_pcm_prepare error: %s", state, | ||||||
|  | 				snd_strerror(err)); | ||||||
|  | 		return err; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	state->source.func = alsa_on_timeout_event; | 	state->source.func = alsa_on_timeout_event; | ||||||
| 	state->source.data = state; | 	state->source.data = state; | ||||||
| 	state->source.fd = state->timerfd; | 	state->source.fd = state->timerfd; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans