From 51354ae3b8fdbeaf96e23ddf787432a38eba31f5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 30 Mar 2007 15:38:39 +0200 Subject: [ALSA] ak4114 - Fix possible Oops with callbacks ak4114 code may trigger Oops when the parameters are changed without call of snd_ak4114_build(). Now it checks the existence of kctl element, and the workq is triggered after building the necessary kcontrols. Also, did some code clean up. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- sound/pci/ice1712/juli.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sound/pci/ice1712') diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c index 6d3c63352b71..dd0da952ce49 100644 --- a/sound/pci/ice1712/juli.c +++ b/sound/pci/ice1712/juli.c @@ -160,13 +160,6 @@ static int __devinit juli_init(struct snd_ice1712 *ice) int err; struct snd_akm4xxx *ak; -#if 0 - for (err = 0; err < 0x20; err++) - juli_ak4114_read(ice, err); - juli_ak4114_write(ice, 0, 0x0f); - juli_ak4114_read(ice, 0); - juli_ak4114_read(ice, 1); -#endif err = snd_ak4114_create(ice->card, juli_ak4114_read, juli_ak4114_write, -- cgit v1.2.3