mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm: share: Pass appl_ptr and hw_ptr in snd_pcm_status()
This one also has the same problem as others; the appl_ptr and hw_ptr of share plugin aren't updated in snd_pcm_status() call. Fix it. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									bcc762f99a
								
							
						
					
					
						commit
						55d59821ff
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -711,6 +711,8 @@ static int snd_pcm_share_status(snd_pcm_t *pcm, snd_pcm_status_t *status)
 | 
				
			||||||
 _notrunning:
 | 
					 _notrunning:
 | 
				
			||||||
	status->delay = sd + d;
 | 
						status->delay = sd + d;
 | 
				
			||||||
	status->state = share->state;
 | 
						status->state = share->state;
 | 
				
			||||||
 | 
						status->appl_ptr = *pcm->appl.ptr;
 | 
				
			||||||
 | 
						status->hw_ptr = *pcm->hw.ptr;
 | 
				
			||||||
	status->trigger_tstamp = share->trigger_tstamp;
 | 
						status->trigger_tstamp = share->trigger_tstamp;
 | 
				
			||||||
 _end:
 | 
					 _end:
 | 
				
			||||||
	Pthread_mutex_unlock(&slave->mutex);
 | 
						Pthread_mutex_unlock(&slave->mutex);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue