Commit 827057f5 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent cae51176
...@@ -1288,6 +1288,8 @@ void snd_hda_codec_reset(struct hda_codec *codec) ...@@ -1288,6 +1288,8 @@ void snd_hda_codec_reset(struct hda_codec *codec)
codec->spec = NULL; codec->spec = NULL;
free_hda_cache(&codec->amp_cache); free_hda_cache(&codec->amp_cache);
free_hda_cache(&codec->cmd_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->num_pcms = 0;
codec->pcm_info = NULL; codec->pcm_info = NULL;
codec->preset = NULL; codec->preset = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment