From: Wu Fengguang <fengguang.wu@intel.com>
To: Takashi Iwai <tiwai@suse.de>, Shane W <shane-alsa@csy.ca>
Cc: alsa-devel@alsa-project.org, Wu Fengguang <fengguang.wu@intel.com>
Subject: [PATCH 3/4] hda - compute checksum in HDMI audio infoframe
Date: Wed, 11 Feb 2009 15:22:30 +0800 [thread overview]
Message-ID: <20090211073402.792210199@intel.com> (raw)
In-Reply-To: 20090211072227.760779741@intel.com
[-- Attachment #1: alsa-intel-hdmi-checksum.patch --]
[-- Type: text/plain, Size: 679 bytes --]
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
sound/pci/hda/patch_intelhdmi.c | 5 +++++
1 file changed, 5 insertions(+)
--- mm.orig/sound/pci/hda/patch_intelhdmi.c
+++ mm/sound/pci/hda/patch_intelhdmi.c
@@ -366,11 +366,16 @@ static void hdmi_fill_audio_infoframe(st
struct hdmi_audio_infoframe *ai)
{
u8 *params = (u8 *)ai;
+ u8 sum = 0;
int i;
hdmi_debug_dip_size(codec);
hdmi_clear_dip_buffers(codec); /* be paranoid */
+ 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++)
hdmi_write_dip_byte(codec, PIN_NID, params[i]);
--
next prev parent reply other threads:[~2009-02-11 7:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-11 7:22 [PATCH 0/4] Intel HDMI audio fixes Wu Fengguang
2009-02-11 7:22 ` [PATCH 1/4] hda - allow multi-channel HDMI audio playback when ELD is not present Wu Fengguang
2009-02-11 7:22 ` [PATCH 2/4] hda - enable HDMI audio pin out at module loading time Wu Fengguang
2009-02-11 7:22 ` Wu Fengguang [this message]
2009-02-11 7:22 ` [PATCH 4/4] hda - add id for Intel IbexPeak integrated HDMI codec Wu Fengguang
2009-02-11 8:10 ` [PATCH 0/4] Intel HDMI audio fixes Takashi Iwai
2009-02-11 8:20 ` Wu Fengguang
[not found] ` <20090211223241.GA31322@csy.ca>
2009-02-11 22:42 ` Takashi Iwai
[not found] ` <20090211225448.GA32203@csy.ca>
2009-02-11 23:02 ` Takashi Iwai
2009-02-12 4:41 ` Wu Fengguang
[not found] ` <20090213172821.GA843@csy.ca>
2009-02-14 10:28 ` Takashi Iwai
2009-02-12 1:25 ` Wu Fengguang
2009-02-12 7:54 ` Takashi Iwai
2009-02-12 7:58 ` Wu Fengguang
2009-02-20 13:05 ` [PATCH] speaker-test.c - add readability comments to speaker channels Wu Fengguang
2009-02-20 17:07 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090211073402.792210199@intel.com \
--to=fengguang.wu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=shane-alsa@csy.ca \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.