diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-03-02 04:35:29 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-02 04:35:29 -0500 |
commit | d1f1af2dbf8207db590853a59bec465c4f68cfdc (patch) | |
tree | 12e30f09988b57189667621ed12f62e9c79434cf /sound/pci/hda/hda_codec.c | |
parent | 4c4531d64dd0442813c7307b860bf40a2aec51bc (diff) |
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.c | 3 |
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) | |||
1519 | codec->num_pcms = 0; | 1519 | codec->num_pcms = 0; |
1520 | codec->pcm_info = NULL; | 1520 | codec->pcm_info = NULL; |
1521 | codec->preset = NULL; | 1521 | codec->preset = NULL; |
1522 | memset(&codec->patch_ops, 0, sizeof(codec->patch_ops)); | ||
1523 | codec->slave_dig_outs = NULL; | ||
1524 | codec->spdif_status_reset = 0; | ||
1522 | module_put(codec->owner); | 1525 | module_put(codec->owner); |
1523 | codec->owner = NULL; | 1526 | codec->owner = NULL; |
1524 | 1527 | ||