projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1eaaf8
)
ALSA: hda - initialize audio InfoFrame to be all zero
author
Mengdong Lin
<mengdong.lin@intel.com>
Tue, 11 Mar 2014 21:12:52 +0000
(17:12 -0400)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 11 Mar 2014 08:15:39 +0000
(09:15 +0100)
This patch initialized the local audio InfoFrame variable 'ai' to be all zero,
thus the data bytes will indicate "Refer to Stream Header" by default.
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_hdmi.c
b/sound/pci/hda/patch_hdmi.c
index 994713cb07bcd915d1aff839bdabcd25a0bbf50b..4751eab69ab75a09f054547673fd499236aabf05 100644
(file)
--- a/
sound/pci/hda/patch_hdmi.c
+++ b/
sound/pci/hda/patch_hdmi.c
@@
-1064,6
+1064,7
@@
static void hdmi_pin_setup_infoframe(struct hda_codec *codec,
{
union audio_infoframe ai;
+ memset(&ai, 0, sizeof(ai));
if (conn_type == 0) { /* HDMI */
struct hdmi_audio_infoframe *hdmi_ai = &ai.hdmi;