diff options
| author | Takashi Iwai <tiwai@suse.de> | 2012-06-26 09:01:33 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2012-06-26 09:01:33 -0400 |
| commit | 09a6071bfe0ecf41376ad6a143508c8b2f93f52b (patch) | |
| tree | 7e0d025256deb2572580fa63acd57b567af4f2d2 | |
| parent | 59cad16bc6deb85bd2a464da92bbaae289f0286f (diff) | |
ALSA: hda - Initialize caches at codec reconfiguration
Better to clean up the caches for avoiding inconsistent codec state
after the reconfiguration.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -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 854dd0c25f89..51cb2a2e4fce 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
| @@ -2335,6 +2335,8 @@ int snd_hda_codec_reset(struct hda_codec *codec) | |||
| 2335 | /* free only driver_pins so that init_pins + user_pins are restored */ | 2335 | /* free only driver_pins so that init_pins + user_pins are restored */ |
| 2336 | snd_array_free(&codec->driver_pins); | 2336 | snd_array_free(&codec->driver_pins); |
| 2337 | restore_pincfgs(codec); | 2337 | restore_pincfgs(codec); |
| 2338 | snd_array_free(&codec->cvt_setups); | ||
| 2339 | snd_array_free(&codec->spdif_out); | ||
| 2338 | codec->num_pcms = 0; | 2340 | codec->num_pcms = 0; |
| 2339 | codec->pcm_info = NULL; | 2341 | codec->pcm_info = NULL; |
| 2340 | codec->preset = NULL; | 2342 | codec->preset = NULL; |
