* [PATCH] media: tda1997: fix get-edid
@ 2019-02-05 16:23 Tim Harvey
2019-02-15 12:16 ` Hans Verkuil
0 siblings, 1 reply; 2+ messages in thread
From: Tim Harvey @ 2019-02-05 16:23 UTC (permalink / raw)
To: linux-media; +Cc: Hans Verkuil, Tim Harvey
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
drivers/media/i2c/tda1997x.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c
index c4c2a6134e1e..73451e9bbc41 100644
--- a/drivers/media/i2c/tda1997x.c
+++ b/drivers/media/i2c/tda1997x.c
@@ -1884,6 +1884,10 @@ static int tda1997x_set_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid)
for (i = 0; i < 128; i++)
io_write(sd, REG_EDID_IN_BYTE128 + i, edid->edid[i+128]);
+ /* store state */
+ memcpy(state->edid.edid, edid->edid, 256);
+ state->edid.blocks = edid->blocks;
+
tda1997x_enable_edid(sd);
return 0;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] media: tda1997: fix get-edid
2019-02-05 16:23 [PATCH] media: tda1997: fix get-edid Tim Harvey
@ 2019-02-15 12:16 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2019-02-15 12:16 UTC (permalink / raw)
To: Tim Harvey, linux-media
Hi Tim,
On 2/5/19 5:23 PM, Tim Harvey wrote:
I merged this patch and added my own commit log message.
Just remember to provide it in the future...
Regards,
Hans
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
> drivers/media/i2c/tda1997x.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c
> index c4c2a6134e1e..73451e9bbc41 100644
> --- a/drivers/media/i2c/tda1997x.c
> +++ b/drivers/media/i2c/tda1997x.c
> @@ -1884,6 +1884,10 @@ static int tda1997x_set_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid)
> for (i = 0; i < 128; i++)
> io_write(sd, REG_EDID_IN_BYTE128 + i, edid->edid[i+128]);
>
> + /* store state */
> + memcpy(state->edid.edid, edid->edid, 256);
> + state->edid.blocks = edid->blocks;
> +
> tda1997x_enable_edid(sd);
>
> return 0;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-15 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05 16:23 [PATCH] media: tda1997: fix get-edid Tim Harvey
2019-02-15 12:16 ` Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).