summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-03-02 10:35:29 +0100
committerTakashi Iwai <tiwai@suse.de>2009-03-02 10:35:29 +0100
commitd1f1af2dbf8207db590853a59bec465c4f68cfdc (patch)
tree12e30f09988b57189667621ed12f62e9c79434cf /sound/pci/hda/hda_codec.c
parentALSA: hda - Remove Toshiba probe_mask quirk (diff)
downloadlinux-d1f1af2dbf8207db590853a59bec465c4f68cfdc.tar.xz
linux-d1f1af2dbf8207db590853a59bec465c4f68cfdc.zip
ALSA: hda - Intialize more codec fields in snd_hda_codec_reset()
Initiailize forgotten fields in snd_hda_codec_reset(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 5dceee8a113b..3b44c789f23b 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1519,6 +1519,9 @@ int snd_hda_codec_reset(struct hda_codec *codec)
codec->num_pcms = 0;
codec->pcm_info = NULL;
codec->preset = NULL;
+ memset(&codec->patch_ops, 0, sizeof(codec->patch_ops));
+ codec->slave_dig_outs = NULL;
+ codec->spdif_status_reset = 0;
module_put(codec->owner);
codec->owner = NULL;