mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	topology: Set manifest size for ABI
The topology kernel driver will check the size of manifest struct, and will stop loading topology info if size mismatch is detected. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									a0acd51d8c
								
							
						
					
					
						commit
						e64334df2b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -414,6 +414,8 @@ snd_tplg_t *snd_tplg_new(void)
 | 
				
			||||||
	if (!tplg)
 | 
						if (!tplg)
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tplg->manifest.size = sizeof(struct snd_soc_tplg_manifest);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	INIT_LIST_HEAD(&tplg->tlv_list);
 | 
						INIT_LIST_HEAD(&tplg->tlv_list);
 | 
				
			||||||
	INIT_LIST_HEAD(&tplg->widget_list);
 | 
						INIT_LIST_HEAD(&tplg->widget_list);
 | 
				
			||||||
	INIT_LIST_HEAD(&tplg->pcm_list);
 | 
						INIT_LIST_HEAD(&tplg->pcm_list);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue