mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	alsa: use MONOTONIC clock for tstamp
This commit is contained in:
		
							parent
							
								
									7480d09589
								
							
						
					
					
						commit
						76417fd2a6
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -1516,8 +1516,10 @@ static int set_swparams(struct state *state) | ||||||
| 	/* get the current params */ | 	/* get the current params */ | ||||||
| 	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current"); | 	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current"); | ||||||
| 
 | 
 | ||||||
| 	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE), "sw_params_set_tstamp_mode"); | 	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE), | ||||||
| 
 | 			"sw_params_set_tstamp_mode"); | ||||||
|  | 	CHECK(snd_pcm_sw_params_set_tstamp_type(hndl, params, SND_PCM_TSTAMP_TYPE_MONOTONIC), | ||||||
|  | 			"sw_params_set_tstamp_type"); | ||||||
| #if 0 | #if 0 | ||||||
| 	snd_pcm_uframes_t boundary; | 	snd_pcm_uframes_t boundary; | ||||||
| 	CHECK(snd_pcm_sw_params_get_boundary(params, &boundary), "get_boundary"); | 	CHECK(snd_pcm_sw_params_get_boundary(params, &boundary), "get_boundary"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans