mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm: hw - correct the comment in snd_pcm_hw_state()
Fixes: c7a939ee ("pcm: hw - fix again snd_pcm_hw_state() when the driver was disconnected")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
			
			
This commit is contained in:
		
							parent
							
								
									c7a939ee31
								
							
						
					
					
						commit
						1e56b1031f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -600,8 +600,8 @@ static int snd_pcm_hw_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
 | 
			
		|||
static snd_pcm_state_t snd_pcm_hw_state(snd_pcm_t *pcm)
 | 
			
		||||
{
 | 
			
		||||
	snd_pcm_hw_t *hw = pcm->private_data;
 | 
			
		||||
	/* the -ENODEV may come from the snd_disconnect_ioctl() in kernel */
 | 
			
		||||
	/* in this case, the mmaped state is no longer updated */
 | 
			
		||||
	/* the -ENODEV may come from the snd_disconnect_ioctl() or
 | 
			
		||||
	   snd_power_wait() in kernel */
 | 
			
		||||
	if (query_status_data(hw) == -ENODEV)
 | 
			
		||||
		return SND_PCM_STATE_DISCONNECTED;
 | 
			
		||||
	return (snd_pcm_state_t) hw->mmap_status->state;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue