projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae5117
)
ALSA: hda - Add missing initializations of amp and verb caches
author
Takashi Iwai
<tiwai@suse.de>
Fri, 19 Dec 2008 09:12:02 +0000
(10:12 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 19 Dec 2008 09:12:02 +0000
(10:12 +0100)
The re-initializations of codec amp and verb caches are missing
at reconfig, which may cause Oops occasionally.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index 8459d6ba2055689b92cd58f3fea0cca13fb3379e..625fe5984dd6b9852b8a515890b2ee9219891263 100644
(file)
--- a/
sound/pci/hda/hda_codec.c
+++ b/
sound/pci/hda/hda_codec.c
@@
-1288,6
+1288,8
@@
void snd_hda_codec_reset(struct hda_codec *codec)
codec->spec = NULL;
free_hda_cache(&codec->amp_cache);
free_hda_cache(&codec->cmd_cache);
+ init_hda_cache(&codec->amp_cache, sizeof(struct hda_amp_info));
+ init_hda_cache(&codec->cmd_cache, sizeof(struct hda_cache_head));
codec->num_pcms = 0;
codec->pcm_info = NULL;
codec->preset = NULL;