mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix the binary compatibility of ext-ctl plugin with protocol 1.0.0
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									e8923f2e75
								
							
						
					
					
						commit
						52160de21e
					
				
					 2 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -706,7 +706,8 @@ int snd_ctl_ext_create(snd_ctl_ext_t *ext, const char *name, int mode)
 | 
			
		|||
	snd_ctl_t *ctl;
 | 
			
		||||
	int err;
 | 
			
		||||
 | 
			
		||||
	if (ext->version != SND_CTL_EXT_VERSION) {
 | 
			
		||||
	if (ext->version < SNDRV_PROTOCOL_VERSION(1, 0, 0) ||
 | 
			
		||||
	    ext->version > SND_CTL_EXT_VERSION) {
 | 
			
		||||
		SNDERR("ctl_ext: Plugin version mismatch\n");
 | 
			
		||||
		return -ENXIO;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue