diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-03-30 15:38:39 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-05-11 16:55:55 +0200 |
commit | 51354ae3b8fdbeaf96e23ddf787432a38eba31f5 (patch) | |
tree | bcc9b700ca83c5e874ce02f206775630b452f047 /sound/pci/ice1712/juli.c | |
parent | [ALSA] snd-usb-caiaq: Make playback work (diff) | |
download | linux-51354ae3b8fdbeaf96e23ddf787432a38eba31f5.tar.xz linux-51354ae3b8fdbeaf96e23ddf787432a38eba31f5.zip |
[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/juli.c')
-rw-r--r-- | sound/pci/ice1712/juli.c | 7 |
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) 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, |