projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4531d
)
ALSA: hda - Intialize more codec fields in snd_hda_codec_reset()
author
Takashi Iwai
<tiwai@suse.de>
Mon, 2 Mar 2009 09:35:29 +0000
(10:35 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 2 Mar 2009 09:35:29 +0000
(10:35 +0100)
Initiailize forgotten fields in snd_hda_codec_reset().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index 5dceee8a113bc4288a87ad70cb16cae3be356c69..3b44c789f23b71c09e31d69894d90df816834e75 100644
(file)
--- 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;