aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-03-30 09:38:39 -0400
committerJaroslav Kysela <perex@suse.cz>2007-05-11 10:55:55 -0400
commit51354ae3b8fdbeaf96e23ddf787432a38eba31f5 (patch)
treebcc9b700ca83c5e874ce02f206775630b452f047 /sound/pci/ice1712
parenta971c3d42524afc5619fa271d59d29be3c1661e3 (diff)
[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 <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ice1712')
-rw-r--r--sound/pci/ice1712/juli.c7
1 files changed, 0 insertions, 7 deletions
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)
160 int err; 160 int err;
161 struct snd_akm4xxx *ak; 161 struct snd_akm4xxx *ak;
162 162
163#if 0
164 for (err = 0; err < 0x20; err++)
165 juli_ak4114_read(ice, err);
166 juli_ak4114_write(ice, 0, 0x0f);
167 juli_ak4114_read(ice, 0);
168 juli_ak4114_read(ice, 1);
169#endif
170 err = snd_ak4114_create(ice->card, 163 err = snd_ak4114_create(ice->card,
171 juli_ak4114_read, 164 juli_ak4114_read,
172 juli_ak4114_write, 165 juli_ak4114_write,