mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm: Implement timestamp type handling in all plugins
Now all PCM plugins do support the proper timestamp type or pass it over slaves. The internal monotonic flag is dropped and replaced with tstamp_type in all places. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									9b716075de
								
							
						
					
					
						commit
						65ff6fdafb
					
				
					 28 changed files with 73 additions and 58 deletions
				
			
		| 
						 | 
				
			
			@ -840,6 +840,7 @@ static void save_slave_setting(snd_pcm_direct_t *dmix, snd_pcm_t *spcm)
 | 
			
		|||
	COPY_SLAVE(period_time);
 | 
			
		||||
	COPY_SLAVE(periods);
 | 
			
		||||
	COPY_SLAVE(tstamp_mode);
 | 
			
		||||
	COPY_SLAVE(tstamp_type);
 | 
			
		||||
	COPY_SLAVE(period_step);
 | 
			
		||||
	COPY_SLAVE(avail_min);
 | 
			
		||||
	COPY_SLAVE(start_threshold);
 | 
			
		||||
| 
						 | 
				
			
			@ -857,7 +858,6 @@ static void save_slave_setting(snd_pcm_direct_t *dmix, snd_pcm_t *spcm)
 | 
			
		|||
	COPY_SLAVE(buffer_time);
 | 
			
		||||
	COPY_SLAVE(sample_bits);
 | 
			
		||||
	COPY_SLAVE(frame_bits);
 | 
			
		||||
	COPY_SLAVE(monotonic);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#undef COPY_SLAVE
 | 
			
		||||
| 
						 | 
				
			
			@ -1204,6 +1204,7 @@ static void copy_slave_setting(snd_pcm_direct_t *dmix, snd_pcm_t *spcm)
 | 
			
		|||
	COPY_SLAVE(period_time);
 | 
			
		||||
	COPY_SLAVE(periods);
 | 
			
		||||
	COPY_SLAVE(tstamp_mode);
 | 
			
		||||
	COPY_SLAVE(tstamp_type);
 | 
			
		||||
	COPY_SLAVE(period_step);
 | 
			
		||||
	COPY_SLAVE(avail_min);
 | 
			
		||||
	COPY_SLAVE(start_threshold);
 | 
			
		||||
| 
						 | 
				
			
			@ -1221,7 +1222,6 @@ static void copy_slave_setting(snd_pcm_direct_t *dmix, snd_pcm_t *spcm)
 | 
			
		|||
	COPY_SLAVE(buffer_time);
 | 
			
		||||
	COPY_SLAVE(sample_bits);
 | 
			
		||||
	COPY_SLAVE(frame_bits);
 | 
			
		||||
	COPY_SLAVE(monotonic);
 | 
			
		||||
 | 
			
		||||
	spcm->info &= ~SND_PCM_INFO_PAUSE;
 | 
			
		||||
	spcm->boundary = recalc_boundary_size(dmix->shmptr->s.boundary, spcm->buffer_size);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue