From 12cd516a808f2a0a35b300a29c96a061b8c954f4 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 19 Dec 2008 10:12:02 +0100 Subject: [PATCH] --- yaml --- r: 120543 b: refs/heads/master c: 827057f5c12f5e10dc0279596db940aa6ddf8d9b h: refs/heads/master i: 120541: 10862f0a9c6a154797803c50a8b5c96206246037 120539: 02a82c461779c985a533a726a3496fb5718eb244 120535: a34d0d5f18e1265eaa9f20f62ad3453cdf39eba6 120527: 1ed1a43b6cd858efce5d4360028fe12c22346113 120511: edb090a1c57ee5053ab62493e169981cae9a1836 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_codec.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index efde48bc19f9..04cc20994bad 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cae51176c1082ecb59706056910f8a217d433981 +refs/heads/master: 827057f5c12f5e10dc0279596db940aa6ddf8d9b diff --git a/trunk/sound/pci/hda/hda_codec.c b/trunk/sound/pci/hda/hda_codec.c index 8459d6ba2055..625fe5984dd6 100644 --- a/trunk/sound/pci/hda/hda_codec.c +++ b/trunk/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;