public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] media: i2c: adv7604: Fix handling of video adjustments
@ 2023-02-10 22:56 Laurent Pinchart
  2023-02-10 22:56 ` [PATCH 1/2] media: i2c: adv7604: Enable video adjustment Laurent Pinchart
  2023-02-10 22:56 ` [PATCH 2/2] media: i2c: adv7604: Fix range of hue control Laurent Pinchart
  0 siblings, 2 replies; 7+ messages in thread
From: Laurent Pinchart @ 2023-02-10 22:56 UTC (permalink / raw)
  To: linux-media; +Cc: linux-renesas-soc, Hans Verkuil

Hello,

This small series fixes two issues with video adjustments (brightness,
contrast, saturation and hue) in the adv7604 driver. Patch 1/2 makes
those controls effective (they currently have no effect), and patch 2/2
fixes the range of the hue control.

I have successfully tested the series with an ADV7612. The ADV7604 and
ADV7611 documentation of the hue control differs from the ADV7612, but I
believe that's because earlier documentation was incorrect. It could
still be useful to test the series with an ADV7604 or ADV7611.

In patch 2/2 I've decided to represent the hue value as an unsigned
8-bit integer, mapping to the [0°, 360°[ range. Using a signed value
would map to the [-180°, 180°[ range instead, without making any other
difference (and without requiring any modification to the patch other
than changing the range). I don't have a strong preference between the
two options, and I'm pretty sure we can freely pick one without any fear
of an impact on existing userspace applications as patch 1/2 shows that
the hue control has currently no effect.

Laurent Pinchart (2):
  media: i2c: adv7604: Enable video adjustment
  media: i2c: adv7604: Fix range of hue control

 drivers/media/i2c/adv7604.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-15 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10 22:56 [PATCH 0/2] media: i2c: adv7604: Fix handling of video adjustments Laurent Pinchart
2023-02-10 22:56 ` [PATCH 1/2] media: i2c: adv7604: Enable video adjustment Laurent Pinchart
2023-02-15 12:49   ` Hans Verkuil
2023-02-10 22:56 ` [PATCH 2/2] media: i2c: adv7604: Fix range of hue control Laurent Pinchart
2023-02-11  9:11   ` Sergei Shtylyov
2023-02-13 11:12     ` Laurent Pinchart
2023-02-15 12:49   ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox