mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	topology: fix unused-const-variable warning
Last year, unused static const variable was added, then compiler generates
a below warning.
dapm.c:43:30: warning: ‘widget_control_map’ defined but not used [-Wunused-const-variable=]
 static const struct map_elem widget_control_map[] = {
                              ^~~~~~~~~~~~~~~~~~
This commit removes it.
Fixes: 01a0e1a1c2 ("topology: Add DAPM object parser")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
			
			
This commit is contained in:
		
							parent
							
								
									ff1f669df4
								
							
						
					
					
						commit
						6f7eaf92e7
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
					@ -39,14 +39,6 @@ static const struct map_elem widget_map[] = {
 | 
				
			||||||
	{"dai_link", SND_SOC_TPLG_DAPM_DAI_LINK},
 | 
						{"dai_link", SND_SOC_TPLG_DAPM_DAI_LINK},
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* mapping of widget kcontrol text names to types */
 | 
					 | 
				
			||||||
static const struct map_elem widget_control_map[] = {
 | 
					 | 
				
			||||||
	{"volsw", SND_SOC_TPLG_DAPM_CTL_VOLSW},
 | 
					 | 
				
			||||||
	{"enum_double", SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE},
 | 
					 | 
				
			||||||
	{"enum_virt", SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT},
 | 
					 | 
				
			||||||
	{"enum_value", SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE},
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int lookup_widget(const char *w)
 | 
					static int lookup_widget(const char *w)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	unsigned int i;
 | 
						unsigned int i;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue