aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-11-17 23:37:59 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-18 01:37:06 -0500
commit6f539a98614a014a7d6b64ab62b0dddb14e2d8cc (patch)
tree89bb50699f5ae69ed08d80982a620e3e828d3c1b /sound
parentc5b5165ce28099484d5fa733abeae48540680440 (diff)
ALSA: intelhdmi - fix audio infoframe fill size
Reported-by: David Härdeman <david@hardeman.nu> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_intelhdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c
index 4f25f08d332b..ad1aa5d87dda 100644
--- a/sound/pci/hda/patch_intelhdmi.c
+++ b/sound/pci/hda/patch_intelhdmi.c
@@ -509,12 +509,12 @@ static void hdmi_fill_audio_infoframe(struct hda_codec *codec,
509 hdmi_debug_dip_size(codec, pin_nid); 509 hdmi_debug_dip_size(codec, pin_nid);
510 hdmi_clear_dip_buffers(codec, pin_nid); /* be paranoid */ 510 hdmi_clear_dip_buffers(codec, pin_nid); /* be paranoid */
511 511
512 for (i = 0; i < sizeof(ai); i++) 512 for (i = 0; i < sizeof(*ai); i++)
513 sum += params[i]; 513 sum += params[i];
514 ai->checksum = - sum; 514 ai->checksum = - sum;
515 515
516 hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0); 516 hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0);
517 for (i = 0; i < sizeof(ai); i++) 517 for (i = 0; i < sizeof(*ai); i++)
518 hdmi_write_dip_byte(codec, pin_nid, params[i]); 518 hdmi_write_dip_byte(codec, pin_nid, params[i]);
519} 519}
520 520