diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-12-19 04:12:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-19 04:12:02 -0500 |
commit | 827057f5c12f5e10dc0279596db940aa6ddf8d9b (patch) | |
tree | 28af738876e9ca6e51be810461b370e43ab6eb8e /sound/pci | |
parent | cae51176c1082ecb59706056910f8a217d433981 (diff) |
ALSA: hda - Add missing initializations of amp and verb caches
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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 8459d6ba2055..625fe5984dd6 100644 --- 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) | |||
1288 | codec->spec = NULL; | 1288 | codec->spec = NULL; |
1289 | free_hda_cache(&codec->amp_cache); | 1289 | free_hda_cache(&codec->amp_cache); |
1290 | free_hda_cache(&codec->cmd_cache); | 1290 | free_hda_cache(&codec->cmd_cache); |
1291 | init_hda_cache(&codec->amp_cache, sizeof(struct hda_amp_info)); | ||
1292 | init_hda_cache(&codec->cmd_cache, sizeof(struct hda_cache_head)); | ||
1291 | codec->num_pcms = 0; | 1293 | codec->num_pcms = 0; |
1292 | codec->pcm_info = NULL; | 1294 | codec->pcm_info = NULL; |
1293 | codec->preset = NULL; | 1295 | codec->preset = NULL; |