mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	Fixed compilation problem for dmix (donot_close)
This commit is contained in:
		
							parent
							
								
									13b79dcd56
								
							
						
					
					
						commit
						b5316c86cc
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -659,7 +659,7 @@ int snd_pcm_close(snd_pcm_t *pcm) | |||
| { | ||||
| 	int err; | ||||
| 	assert(pcm); | ||||
| 	if (pcm->setup) { | ||||
| 	if (pcm->setup && !pcm->donot_close) { | ||||
| 		snd_pcm_drop(pcm); | ||||
| 		err = snd_pcm_hw_free(pcm); | ||||
| 		if (err < 0) | ||||
|  |  | |||
|  | @ -200,6 +200,7 @@ struct _snd_pcm { | |||
| 	snd_pcm_rbptr_t hw; | ||||
| 	snd_pcm_uframes_t min_align; | ||||
| 	int mmap_rw; | ||||
| 	int donot_close; | ||||
| 	snd_pcm_channel_info_t *mmap_channels; | ||||
| 	snd_pcm_channel_area_t *running_areas; | ||||
| 	snd_pcm_channel_area_t *stopped_areas; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaroslav Kysela
						Jaroslav Kysela