From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 1/3] media: i2c: Add ADV761X support
Date: Wed, 25 Sep 2013 22:04:49 +0000 [thread overview]
Message-ID: <1554521.JFkDCxSPn1@avalon> (raw)
In-Reply-To: <1380029916-10331-2-git-send-email-valentine.barshak@cogentembedded.com>
On Wednesday 25 September 2013 12:21:04 Laurent Pinchart wrote:
> Hi Valentine,
>
> Thank you for the patch.
>
> Please see below for a couple of comments (in addition to Hans' and
> Guennadi's comments).
>
> On Tuesday 24 September 2013 17:38:34 Valentine Barshak wrote:
> > This adds ADV7611/ADV7612 Dual Port Xpressview
> > 225 MHz HDMI Receiver support.
> >
> > The code is based on the ADV7604 driver, and ADV7612 patch
> > by Shinobu Uehara <shinobu.uehara.xc@renesas.com>
> >
> > Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
> > ---
[snip]
> > +static int adv761x_set_edid(struct v4l2_subdev *sd,
> > + struct v4l2_subdev_edid *edid)
> > +{
> > + struct adv761x_state *state = to_state(sd);
> > + int ret;
> > +
> > + if (edid->pad != 0)
> > + return -EINVAL;
> > +
> > + if (edid->start_block != 0)
> > + return -EINVAL;
> > +
> > + if (edid->blocks = 0) {
> > + /* Pull down the hotplug pin */
> > + v4l2_subdev_notify(sd, ADV761X_HOTPLUG, (void *)0);
> > + /* Disables I2C access to internal EDID ram from DDC port */
> > + rep_write(sd, 0x74, 0x0);
> > + state->edid_blocks = 0;
> > + return 0;
> > + }
> > +
> > + if (edid->blocks > 2)
> > + return -E2BIG;
> > +
> > + if (!edid->edid)
> > + return -EINVAL;
> > +
> > + memcpy(state->edid, edid->edid, 128 * edid->blocks);
> > + state->edid_blocks = edid->blocks;
> > +
> > + ret = edid_write_block(sd, 128 * edid->blocks, state->edid);
> > + if (ret < 0)
> > + v4l2_err(sd, "error %d writing edid\n", ret);
>
> Stupid question, what are the use cases for setting EDID on an HDMI receiver
> ? Isn't that something that should just be read from the device ?
My bad, scratch this, I got the chip mixed with an HDMI transmitter.
> > +
> > + return ret;
> > +}
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-09-25 22:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 13:38 [PATCH 1/3] media: i2c: Add ADV761X support Valentine Barshak
2013-09-24 14:17 ` Hans Verkuil
2013-09-24 15:54 ` Guennadi Liakhovetski
2013-09-24 16:19 ` Guennadi Liakhovetski
2013-09-24 17:37 ` Hans Verkuil
2013-09-24 18:09 ` Andy Walls
2013-09-25 9:57 ` Laurent Pinchart
2013-09-25 10:21 ` Laurent Pinchart
2013-09-25 12:33 ` Valentine
2013-09-25 13:02 ` Valentine
2013-09-25 14:08 ` Guennadi Liakhovetski
2013-09-25 15:16 ` Valentine
2013-09-25 16:31 ` Guennadi Liakhovetski
2013-09-25 17:19 ` Valentine
2013-09-25 18:33 ` Guennadi Liakhovetski
2013-09-25 20:36 ` Valentine
2013-09-25 22:04 ` Laurent Pinchart [this message]
2013-09-25 22:57 ` Laurent Pinchart
2013-09-26 6:31 ` Hans Verkuil
2013-09-26 6:45 ` Hans Verkuil
2013-09-26 6:57 ` Hans Verkuil
2013-09-26 9:36 ` Laurent Pinchart
2013-09-26 9:39 ` Laurent Pinchart
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=1554521.JFkDCxSPn1@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-sh@vger.kernel.org \
/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