Commit 09a6071b authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Initialize caches at codec reconfiguration

Better to clean up the caches for avoiding inconsistent codec state
after the reconfiguration.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 59cad16b
...@@ -2335,6 +2335,8 @@ int snd_hda_codec_reset(struct hda_codec *codec) ...@@ -2335,6 +2335,8 @@ int snd_hda_codec_reset(struct hda_codec *codec)
/* free only driver_pins so that init_pins + user_pins are restored */ /* free only driver_pins so that init_pins + user_pins are restored */
snd_array_free(&codec->driver_pins); snd_array_free(&codec->driver_pins);
restore_pincfgs(codec); restore_pincfgs(codec);
snd_array_free(&codec->cvt_setups);
snd_array_free(&codec->spdif_out);
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