From: Thierry Reding <thierry.reding@avionic-design.de>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [RFC v2 2/5] video: Add generic HDMI infoframe helpers
Date: Tue, 11 Dec 2012 08:58:53 +0100 [thread overview]
Message-ID: <20121211075853.GA27084@avionic-0098.adnet.avionic-design.de> (raw)
In-Reply-To: <CA+gsUGQxuHBMVe=eC5-ycq9CKe7v0XZY14ejq-UPwiveE+cGKA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1289 bytes --]
On Fri, Dec 07, 2012 at 12:32:42PM -0200, Paulo Zanoni wrote:
> 2012/12/5 Thierry Reding <thierry.reding@avionic-design.de>:
[...]
> > +ssize_t hdmi_spd_infoframe_pack(struct hdmi_spd_infoframe *frame, void *buffer,
> > + size_t size)
> > +{
> > + u8 *ptr = buffer;
> > + size_t length, i;
> > +
> > + if (!frame || !buffer)
> > + return -EINVAL;
> > +
> > + length = 4 + frame->length;
> > +
> > + if (size < length)
> > + return -ENOSPC;
> > +
> > + memset(buffer, 0, length);
> > +
> > + ptr[0] = frame->type;
> > + ptr[1] = frame->version;
> > + ptr[2] = frame->length;
> > + ptr[3] = 0; /* checksum */
> > +
> > + for (i = 0; i < sizeof(frame->vendor); i++)
> > + ptr[4 + i] = frame->vendor[i];
> > +
> > + for (i = 0; i < sizeof(frame->product); i++)
> > + ptr[12 + i] = frame->product[i];
> > +
> > + ptr[26] = frame->sdi;
>
> Shouldn't this be ptr[28] ?
Yes, you're absolutely right.
By the way, I had to scroll through your reply several times before I
found this single line. If you remove unneeded context when replying
your comments are much easier to locate.
Thierry
[-- Attachment #1.2: Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2012-12-11 7:58 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-05 16:45 [RFC v2 0/5] Add HDMI infoframe helpers Thierry Reding
2012-12-05 16:45 ` [RFC v2 1/5] drm: Add some missing forward declarations Thierry Reding
2012-12-05 16:45 ` [RFC v2 2/5] video: Add generic HDMI infoframe helpers Thierry Reding
2012-12-07 14:32 ` Paulo Zanoni
2012-12-11 7:58 ` Thierry Reding [this message]
2012-12-05 16:45 ` [RFC v2 3/5] drm: Add " Thierry Reding
2012-12-05 17:51 ` Lars-Peter Clausen
2012-12-06 7:28 ` Thierry Reding
2012-12-06 8:28 ` Lars-Peter Clausen
2012-12-06 14:09 ` Daniel Vetter
2012-12-06 14:28 ` Thierry Reding
2012-12-06 15:44 ` Daniel Vetter
2012-12-06 16:02 ` Thierry Reding
2012-12-07 19:00 ` Daniel Vetter
2012-12-05 16:45 ` [RFC v2 4/5] drm: tegra: Use generic " Thierry Reding
2012-12-05 16:45 ` [RFC v2 5/5] drm/i915: " Thierry Reding
2012-12-06 14:16 ` Daniel Vetter
2012-12-06 14:23 ` Thierry Reding
2012-12-06 15:57 ` Daniel Vetter
2012-12-06 16:02 ` Thierry Reding
2012-12-06 16:11 ` Paulo Zanoni
2012-12-06 16:55 ` Paulo Zanoni
2012-12-07 7:28 ` Thierry Reding
2012-12-07 8:30 ` Daniel Vetter
2012-12-07 8:49 ` Thierry Reding
2012-12-07 7:22 ` Thierry Reding
2012-12-07 15:11 ` [RFC] " Paulo Zanoni
2012-12-07 15:32 ` Daniel Vetter
2012-12-11 10:39 ` Daniel Vetter
2012-12-11 8:35 ` Thierry Reding
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=20121211075853.GA27084@avionic-0098.adnet.avionic-design.de \
--to=thierry.reding@avionic-design.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=przanoni@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox