mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm_hw plugin: preserve monotonic flag also after snd_pcm_hw_params() call
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									0fe807dedd
								
							
						
					
					
						commit
						fb12b89453
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -326,6 +326,8 @@ static int snd_pcm_hw_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
 | 
				
			||||||
		SYSMSG("SNDRV_PCM_IOCTL_HW_PARAMS failed");
 | 
							SYSMSG("SNDRV_PCM_IOCTL_HW_PARAMS failed");
 | 
				
			||||||
		return err;
 | 
							return err;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						params->info &= ~0xf0000000;
 | 
				
			||||||
 | 
						params->info |= (pcm->monotonic ? SND_PCM_INFO_MONOTONIC : 0);
 | 
				
			||||||
	err = sync_ptr(hw, 0);
 | 
						err = sync_ptr(hw, 0);
 | 
				
			||||||
	if (err < 0)
 | 
						if (err < 0)
 | 
				
			||||||
		return err;
 | 
							return err;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue