mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	[ALSA] no templated index for si3036 modem controls
AC97 Codec No index is templated for si3036 modem controls. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									0444e2aca9
								
							
						
					
					
						commit
						27bcaa693c
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -2752,7 +2752,11 @@ AC97_DOUBLE("Modem Speaker Volume", 0x5c, 14, 12, 3, 1) | |||
| 
 | ||||
| static int patch_si3036_specific(ac97_t * ac97) | ||||
| { | ||||
| 	return patch_build_controls(ac97, snd_ac97_controls_si3036, ARRAY_SIZE(snd_ac97_controls_si3036)); | ||||
| 	int idx, err; | ||||
| 	for (idx = 0; idx < ARRAY_SIZE(snd_ac97_controls_si3036); idx++) | ||||
| 		if ((err = snd_ctl_add(ac97->bus->card, snd_ctl_new1(&snd_ac97_controls_si3036[idx], ac97))) < 0) | ||||
| 			return err; | ||||
| 	return 0; | ||||
| } | ||||
| 
 | ||||
| static struct snd_ac97_build_ops patch_si3036_ops = { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sasha Khapyorsky
						Sasha Khapyorsky