提交 6f539a98 编写于 作者: W Wu Fengguang 提交者: Takashi Iwai

ALSA: intelhdmi - fix audio infoframe fill size

Reported-by: NDavid Härdeman <david@hardeman.nu>
Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 c5b5165c
......@@ -509,12 +509,12 @@ static void hdmi_fill_audio_infoframe(struct hda_codec *codec,
hdmi_debug_dip_size(codec, pin_nid);
hdmi_clear_dip_buffers(codec, pin_nid); /* be paranoid */
for (i = 0; i < sizeof(ai); i++)
for (i = 0; i < sizeof(*ai); i++)
sum += params[i];
ai->checksum = - sum;
hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0);
for (i = 0; i < sizeof(ai); i++)
for (i = 0; i < sizeof(*ai); i++)
hdmi_write_dip_byte(codec, pin_nid, params[i]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册